Created
May 20, 2014 19:42
-
-
Save WhoSayIn/07f650a8b86d80fa07d4 to your computer and use it in GitHub Desktop.
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></title> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
</head> | |
<script> | |
$(window).on('hashchange', function() { | |
var hash = location.hash; | |
switch (hash) { | |
case '#calismalarimiz': | |
alert('calismalarimiz sayfasi'); | |
break; | |
case '#hakkimizda': | |
alert('hakkimizda sayfasi') | |
break; | |
} | |
}); | |
</script> | |
<body> | |
<a href="#calismalarimiz">calismalar</a> | <a href="#hakkimizda">hakki</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment