Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var s1hash = window.location.hash;
- var hash = s1hash.split("&",1);
- if(hash == "#home"){
- $("#content-wrapper").load("./pages/index.php");
- }else if(hash == "#contact"){
- $("#content-wrapper").load("./pages/contact.php");
- }
- $(document).ready( function() {
- $("#home").on("click", function() {
- $("#content-wrapper").load("./pages/index.php");
- });
- $("#contact").on("click", function() {
- $("#content-wrapper").load("./pages/contact.php");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement