Skip to content

Instantly share code, notes, and snippets.

@ingowennemaring
Created April 18, 2013 14:27
Show Gist options
  • Save ingowennemaring/5413149 to your computer and use it in GitHub Desktop.
Save ingowennemaring/5413149 to your computer and use it in GitHub Desktop.
Adds a class to the <html> element if javascript is enabled
<script>document.documentElement.className = (document.documentElement.className !== "") ? "has-js " + document.documentElement.className : "has-js";</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment