HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/tarski/app/js/tarski.js
Function.prototype.bind=function(b){var a=this;return function(){return a.apply(b,arguments)}};function addEvent(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false);EventCache.add(b,a,c)}else if(b.attachEvent){b["e"+a+c]=c;b[a+c]=function(){b["e"+a+c](window.event)};b.attachEvent("on"+a,b[a+c]);EventCache.add(b,a,c)}else{b["on"+a]=b["e"+a+c]}};var EventCache=function(){var d=[];return{listEvents:d,add:function(b,a,c){d.push(arguments)},flush:function(){var b,a;for(b=d.length-1;b>=0;b=b-1){a=d[b];if(a[0].removeEventListener){a[0].removeEventListener(a[1],a[2],a[3])};if(a[1].substring(0,2)!=="on"){a[1]="on"+a[1]};if(a[0].detachEvent){a[0].detachEvent(a[1],a[2])};a[0][a[1]]=null}}}}();addEvent(window,'unload',EventCache.flush);function replaceEmpty(b,a){if((/^\s*$/).test(b.value)){b.value=a.firstChild.nodeValue}};Searchbox={init:function(){this.sBox=document.getElementById('s');this.sLabel=document.getElementById('searchlabel');if(this.sBox&&this.sLabel){this.sLabel.style.display='none';if('placeholder'in document.createElement('input')&&this.sBox.placeholder.length>1)return;replaceEmpty(this.sBox,this.sLabel);addEvent(this.sBox,'focus',this.reset_text.bind(this));addEvent(this.sBox,'blur',this.add_text.bind(this))}},reset_text:function(){if(this.sBox.value==this.sLabel.firstChild.nodeValue){this.sBox.value=''}},add_text:function(){replaceEmpty(this.sBox,this.sLabel)}};addEvent(window,'load',function(){var b=document.getElementsByTagName('body')[0];b.className+=" js"});addEvent(window,'load',Searchbox.init.bind(Searchbox));