1
function documentReady(e){document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)}
2
documentReady(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&&document.querySelectorAll(t).forEach(e=>e.classList.add("os-current")),e&&document.querySelectorAll(e).forEach(e=>e.classList.add("dev-current")),n&&document.querySelectorAll(n).forEach(e=>e.classList.add("ua-current"))}
3
),document.querySelectorAll("form[action^='https://try.powermapper.com/Demo']").forEach(e=>e.addEventListener("submit",function(t){return e.classList.contains("is-submitting")&&t.preventDefault(),e.classList.add("is-submitting"),!0}
4
));function speak(e){if(window.speechSynthesis){var t=new SpeechSynthesisUtterance(e);t.lang="en-US",window.speechSynthesis.speak(t)}
5
}
6
document.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
)),documentReady(function(){if(document.cookie.indexOf("MapResultsId=")!=-1){var e=document.querySelector("#mapResultsLink");e&&e.classList.remove("d-none")}
10
document.cookie.indexOf("ScanResultsId=")!=-1&&(e=document.querySelector("#scanResultsLink"),e&&e.classList.remove("d-none")),bindEventHandlers()}
11
);function bindEventHandlers(){var e=document.querySelector("#mapStyle");e&&mapStyle.addEventListener("change",function(){var n=e.val(),s=document.querySelector("#thumbLink").getAttribute("data-href"),o=document.querySelector("#thumbImage").getAttribute("data-src"),t="";switch(n){case"3dbuttons":t="This map displays a graphical button for each page on the site.";break;default:case"electrum":t="This map displays thumbnails of each web page of the top 3 levels of the site arranged on a 2D grid.";break;case"isometric":t="This map displays thumbnails of each web page of the top 3 levels of the site arranged on a 3D grid.";break;case"pagecloud":t="This map displays thumbnails of each web page arranged in clusters.";break;case"skyscraper":t="This map displays a tower for each page on the site - the tallest tower is the home page.";break;case"slickmap":t="This map displays boxes for each web page arranged like an organizational chart.";break;case"tablemap":t="This text-only map displays page titles in a table grid.";break;case"thumbtree":t="This map displays thumbnails for each web page arranged like an organizational chart.";break;case"treeview20":t="This map displays an expanding table of contents.";break}
12
document.querySelector("#thumbImage").setAttribute("src",o.replace("electrum",n)),document.querySelector("#thumbLink").setAttribute("href",s.replace("electrum",n)),document.querySelector("#viewLink").setAttribute("href",s.replace("electrum",n)),document.querySelector("#mapDesc").innerText=t}
13
)}