Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 453 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 453 Bytes

osAndBrowserDetection

Detects OS and browser and writes CSS class to html element

Browser classes:

  • mozilla
  • msie
  • opera
  • webkit

OS classes:

  • win
  • mac
  • x11 for UNIX
  • linux

#Installation

$ bower install os-and-browser-detection --save

Usage

Just specify the file as dependency to your RequireJS module which need brower or OS detection in CSS. Be sure you have underscore, jquery and jquery.browser in your shim for RequireJS