Skip to Content

JavaScript File

URL: https://www-powermapper-com.azureedge.net/js/site-bundle-min-20240402.js
HTTP Status: 200 OK
MIME Type: application/x-javascript
Last Modified: Fri, 05 Apr 2024 17:23:49 GMT
Download Time: Less than a second
Cookies: None
Size: 3 KB
HTTP Headers:  15 headers
Links In:  52 pages
OK Issues: No issues found

1function documentReady(e){document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)}

2documentReady(function(){var e,t,n,s;navigator.userAgent.indexOf("Windows")!==-1&&(t=".os-win",e=".dev-desktop"),navigator.userAgent.indexOf("Macintosh")!==-1&&(t=".os-mac",e=".dev-desktop"),navigator.userAgent.indexOf("Android")!==-1&&(t=".os-android",e=".dev-mobile"),navigator.userAgent.indexOf("iPad")!==-1&&(t=".os-ios",e=".dev-mobile"),navigator.userAgent.indexOf("iPhone")!==-1&&(t=".os-ios",e=".dev-mobile"),navigator.userAgent.indexOf("Windows Phone")!==-1&&(t=".os-win",e=".dev-mobile"),navigator.userAgent.indexOf("Firefox/")!==-1&&(n=".ua-firefox"),navigator.userAgent.indexOf("Safari/")!==-1&&(n=".ua-safari"),navigator.userAgent.indexOf("Chrome/")!==-1&&(n=".ua-chrome"),navigator.userAgent.indexOf("Trident/")!==-1&&(n=".ua-trident"),navigator.userAgent.indexOf("OPR/")!==-1&&(n=".ua-opera"),navigator.userAgent.indexOf("Edge/")!==-1&&(n=".ua-edge"),t&&(s=document.querySelector(t))&&s.classList.add("os-current"),e&&(s=document.querySelector(e))&&s.classList.add("dev-current"),n&&(s=document.querySelector(n))&&s.classList.add("ua-current")}

3),document.querySelectorAll("#landing-scan-form").forEach(e=>e.addEventListener("submit",function(){var e=document.querySelector("#landing-scan-url").value.trim().toLowerCase();return e===""?(document.querySelector("#scan-form-validation").textContent="Please enter a URL to scan",!1):e.indexOf("www.")===0||e.indexOf("http")===0||(document.querySelector("#scan-form-validation").textContent="URLs must start with www or http or https",!1)}

4));function speak(e){if(window.speechSynthesis){var t=new SpeechSynthesisUtterance(e);t.lang="en-US",window.speechSynthesis.speak(t)}

5}

6document.querySelectorAll("button.speak-example").forEach(function(e){window.speechSynthesis?e.addEventListener("click",function(){var e=this.dataset.speakId,t=document.getElementById(e).textContent;speak(t)}

7):e.style.display="none"}

8),document.querySelectorAll("select.ua-filter").forEach(e=>e.addEventListener("change",function(){var e=document.querySelectorAll(".test-all");for(const t of e)t.style.display="none";e=document.querySelectorAll(this.value);for(const t of e)t.style.display=""}

9))