Created
December 16, 2011 16:17
-
-
Save piscis/1486675 to your computer and use it in GitHub Desktop.
Removes a class from html tag via javascript, this is usefull if you enhance user experiance via JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
/* CSS to JS style detector */ | |
document.getElementsByTagName("html")[0].className = document.getElementsByTagName("html")[0].className.replace( /(?:^|\s)no\-js(?!\S)/ , '' ) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment