Skip to content

Instantly share code, notes, and snippets.

@jemgold
Created May 30, 2012 11:59
Show Gist options
  • Save jemgold/2835811 to your computer and use it in GitHub Desktop.
Save jemgold/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