mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
2
html/phpmyad/js/update-location.js
Normal file
2
html/phpmyad/js/update-location.js
Normal file
@ -0,0 +1,2 @@
|
||||
var hash_to_set="",hash_init_done=0;function setURLHash(a){if(!jQuery.browser.webkit)if(window.parent!=window&&window.parent.setURLHash)window.parent.setURLHash(a);else{var b=window.location.pathname;if(b.substring(b.length-9,b.length)=="index.php")if(hash_init_done){window.location.hash="PMAURL:"+a;fix_favicon()}else hash_to_set="PMAURL:"+a}}function fix_favicon(){jQuery.browser.mozilla&&$("head > link[href=\\.\\/favicon\\.ico]").appendTo("head")}
|
||||
$(document).ready(function(){if(!(window.parent!=window&&window.parent.setURLHash))if(window.location.hash.substring(0,8)=="#PMAURL:")window.location="index.php?"+window.location.hash.substring(8);else{if(hash_to_set!=""){window.location.hash=hash_to_set;hash_to_set="";fix_favicon()}hash_init_done=1}});
|
Reference in New Issue
Block a user