Created
July 16, 2011 00:27
-
-
Save kevinthompson/1085836 to your computer and use it in GitHub Desktop.
Hiding JavaScript-Dependent Content
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hiding JavaScript-Dependent Content</title> | |
<script type="text/javascript"> | |
var html = document.getElementsByTagName('html')[0]; | |
html.className = (html.className != '' ? html.className + ' ' : '') + 'js'; | |
</script> | |
</head> |
This file contains hidden or 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
.js .slide { display:none; } | |
.js .slide:first-child { display:block; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment