Skip to content

Instantly share code, notes, and snippets.

@jem-computer
Created May 30, 2012 11:59
Show Gist options
  • Save jem-computer/2835811 to your computer and use it in GitHub Desktop.
Save jem-computer/2835811 to your computer and use it in GitHub Desktop.
Add 'Win' or 'Mac' to html tag
$('html').addClass(navigator.platform.substring(0,3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment