Device.js is a tiny JavaScript library that simplifies writing conditional CSS or JavaScript that is based on the platform, operating system or browser. The library detects and adds specific classes to the html element.
Device.js has JavaScript methods to detect them too. And there is support for all the major operating systems + browsers.
[button color=”green” size=”medium” link=”http://matthewhudson.me/projects/device.js/” target=”blank” ]Device.JS [/button]