PageSourceSearch

https://www.infiniteenergy.com.au/wp-content/themes/infinite2015/js/common-min.js

js infiniteenergy.com.au collected 2026-09-29 08:06:44 UTC 5,224 bytes, 1 lines download raw bytes

1jQuery(document).ready(function(){jQuery(window).on("resize scroll",function(){var e=$(window).width(),t=$(window).scrollTop();767<e&&10<t?$("BODY").addClass("sticky"):($("BODY").removeClass("sticky"),$("BODY").css("margin-top","0"))})}),document.addEventListener("DOMContentLoaded",function(e){var t=document.getElementById("enquiryDialog");t&&(t=new uiDialog(t),[].forEach.call(document.body.querySelectorAll('[href="/enquiry/"]'),function(e){e.addEventListener("click",function(e){e.preventDefault(),t.show()})}));var o=navigator.userAgent.toLowerCase();(!hasFormValidation()||-1!=o.indexOf("safari")&&-1==o.indexOf("chrome"))&&addFormValidation(document.getElementsByTagName("form"));var n=document.getElementById("mapWA"),a=document.getElementById("mapQLD");window.initializeGoogleMaps=function(){},window.initializeGoogleMapsOLD=function(){if(console.log("initialising google maps"),n){n=new google.maps.Map(n,{center:new google.maps.LatLng(-31.9530044,115.8574693),zoom:11,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:!1,scrollwheel:!1});var e=new google.maps.FusionTablesLayer({query:{select:"'Geocodable address'",from:"1A4OwGh7t1qhwDOrk8sSs4Z7_hBin4hlI0VBalSOU"}});e.setMap(n),google.maps.event.addListener(n,"zoom_changed",function(){12<n.getZoom()?e.setOptions({styles:[{markerOptions:{iconName:"large_red"}}]}):e.setOptions({styles:[{markerOptions:{iconName:"small_red"}}]})})}if(a){a=new google.maps.Map(a,{center:new google.maps.LatLng(-27.4710107,153.02344889),zoom:9,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:!1,scrollwheel:!1});var t=new google.maps.FusionTablesLayer({query:{select:"Geocodable address",from:"1A4OwGh7t1qhwDOrk8sSs4Z7_hBin4hlI0VBalSOU"}});t.setMap(a),google.maps.event.addListener(a,"zoom_changed",function(){12<a.getZoom()?t.setOptions({styles:[{markerOptions:{iconName:"large_red"}}]}):t.setOptions({styles:[{markerOptions:{iconName:"small_red"}}]})})}},loadGoogleMapsScript()}),Element.prototype.matches=function(e){var t;return t=document.documentElement,(t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector).call(this,e)};var uiDialog=function(e,t){var o=e.querySelector(".ui-dialog-body"),n={cancel:function(e,t){a()}};t&&extend(n,t);var a=function(){e.style.display="none",i("hidden")};if(r=e.querySelector("FOOTER .toolbar"))var r=new tqc_toolbar(r,n);var i=function(e,t,o){return!(!n[e]||"function"!=typeof n[e])&&n[e](t,o)};return e.addEventListener("click",function(e){e.target&&(e.target.matches(".ui-dialog")||e.target.matches(".close"))&&(a(),i("cancel"))},!1),{body:o,show:function(){e.style.display="flex",i("shown")},hide:a}},SliderPanels=function(e,t){var o,n=e.querySelectorAll(".sliderControl"),a=(t=t||5e3,function(){o=setInterval(function(){for(var e=0,t=n.length;e<t;e++)if(1==n[e].checked){n[e+1]?n[e+1].checked=!0:n[0].checked=!0;break}},t)}),r=function(){clearInterval(o)};return e.addEventListener("mouseover",r,!1),e.addEventListener("mouseout",a,!1),a(),{start:a,stop:r}},loadGoogleMapsScript=function(){var e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?v=quarterly&key=AIzaSyCn8wF1SnsT2PnP1KLiY44mmnqnUutwuoM&libraries=places&callback=window.initializeGoogleMaps",document.body.appendChild(e)},hasFormValidation=function(){return"function"==typeof document.createElement("input").checkValidity},addFormValidation=function(e){for(var t=0;t<e.length;t++)e[t].addEventListener?e[t].addEventListener("submit",HTML5FormValidation,!1):e[t].attachEvent("onsubmit",HTML5FormValidation)},HTML5FormValidation=function(e){"function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation();for(var t=e.target||e.srcElement,o=["input","select","textarea"],n=function(e,t){var o=document.createElement("label");return o.className="form-validation-error form-validation-"+t,o.innerHTML=e.getAttribute("title"),o.style.left=e.offsetLeft+"px",o.style.top=e.offsetTop+e.offsetHeight+"px",o},a=0;a<o.length;a++)for(var r=t.getElementsByTagName(o[a]),i=0;i<r.length;i++){var l=r[i];if(null!==l.getAttribute("required")){if(""==l.value||l.value==l.getAttribute("placeholder")){var s=n(l,"required");return l.parentNode.appendChild(s),l.focus(),setTimeout(function(){s.parentNode.removeChild(s)},2e3),!1}if(null!==l.getAttribute("pattern")&&!RegExp(l.getAttribute("pattern")).test(l.value)&&l.getAttribute("placeholder")!==l.value){s=n(l,"format");return l.parentNode.appendChild(s),l.focus(),setTimeout(function(){s.parentNode.removeChild(s)},2e3),!1}}else if(l.getAttribute("pattern")&&!RegExp(l.getAttribute("pattern")).test(l.value)&&l.getAttribute("placeholder")!==l.value&&""!==l.value){s=n(l,"format");return l.parentNode.appendChild(s),l.focus(),setTimeout(function(){s.parentNode.removeChild(s)},2e3),!1}}return t.submit(),!0},ajax=function(e,t){var o;if("undefined"!=typeof XMLHttpRequest)o=new XMLHttpRequest;else for(var n=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"],a=0,r=n.length;a<r;a++)try{o=new ActiveXObject(n[a]);break}catch(e){}o.onreadystatechange=function(){o.readyState<4||200===o.status&&4===o.readyState&&t(o)},o.open("GET",e,!0),o.send("")};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.