Detect Platform, OS & Orientation – Device.js
Sometimes, we need to take environment-specific actions while working on web projects.
The library detects them and adds specific classes to the
<html> element, just like
<html lang="en" class="android tablet landscape">.