Created
January 11, 2012 18:37
-
-
Save Serubin/1596085 to your computer and use it in GitHub Desktop.
JavaScript check hash
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
$(document).ready(function(){ | |
var hash = location.hash; | |
$('#title').slideDown('slow'); | |
if(hash == 'rules'){ | |
$('#rules').fadeIn('slow'); | |
$('#content').hide(); | |
} | |
else{ | |
$('#content').fadeIn('slow'); | |
$('#rules').hide(); | |
document.write(hash) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment