Skip to content

Instantly share code, notes, and snippets.

@jesgundy
Created March 20, 2013 20:02
Show Gist options
  • Save jesgundy/5207955 to your computer and use it in GitHub Desktop.
Save jesgundy/5207955 to your computer and use it in GitHub Desktop.
Replace html class 'no-js' with 'js'.
var docElement = document.documentElement;
docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + ' js ';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment