Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var hash = window.location.hash.substr(1);
  2. var href = $('#nav li a').each(function(){
  3. var href = $(this).attr('href');
  4. if(hash==href.substr(0,href.length-5)){
  5. var toLoad = hash+'.php #content'; <--- .php (was: .html)
  6. $('#content').load(toLoad)
  7. }
  8. });
  9.  
  10. href.substr(0,href.length-5)
  11.  
  12. href.substr(0,href.length-4)
  13.  
  14. if(hash==href.substr(0,href.length-4)){
  15. var toLoad = hash+'.php #content'; <--- .php (was: .html)
  16. $('#content').load(toLoad)
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement