Created
October 15, 2012 00:25
-
-
Save rodrigo-x/3890270 to your computer and use it in GitHub Desktop.
snippet - hash na url...
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
(function (win) { | |
win.hashchange(function () { | |
var page = location.hash + '_c'; | |
var $self = $(page); | |
if (page == '_c') { | |
page = '#home_c'; | |
} | |
$self.show(); | |
$self.hide(); | |
}); | |
win.hashchange(); | |
}(window)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment