Line 5: | Line 5: | ||
} | } | ||
setTimeout(sample, 100); | setTimeout(sample, 100); | ||
+ | |||
+ | if(window.location.href.indexOf("Index") > -1) { | ||
+ | alert("Alert: Index!"); | ||
+ | } |
Revision as of 14:26, 3 November 2021
/* Any JavaScript here will be loaded for all users on every page load. */ function sample() { mapsLeafletList[0].map.setBearing(180); } setTimeout(sample, 100); if(window.location.href.indexOf("Index") > -1) { alert("Alert: Index!"); }