PageSourceSearch

https://junkbuyer-mac.com/js/openclose.js

js junkbuyer-mac.com collected 2026-10-05 11:16:18 UTC 1,965 bytes, 1 lines download raw bytes

1function classList(a){if(a.classList){return a.classList}else{return new CSSClassList(a)}}function CSSClassList(a){this.e=a}CSSClassList.prototype.contains=function(b){if(b.length===0||b.indexOf(" ")!=-1){throw new Error("Invalid class name: '"+b+"'")}var a=this.e.className;if(!a){return false}if(a===b){return true}return a.search("\\b"+b+"\\b")!=-1};CSSClassList.prototype.add=function(b){if(this.contains(b)){return}var a=this.e.className;if(a&&a[a.length-1]!=" "){b=" "+b}this.e.className+=b};CSSClassList.prototype.remove=function(b){if(b.length===0||b.indexOf(" ")!=-1){throw new Error("Invalid class name: '"+b+"'")}var a=new RegExp("\\b"+b+"\\b\\s*","g");this.e.className=this.e.className.replace(a,"")};CSSClassList.prototype.toggle=function(a){if(this.contains(a)){this.remove(a);return false}else{this.add(a);return true}};CSSClassList.prototype.toString=function(){return this.e.className};CSSClassList.prototype.toArray=function(){return this.e.className.match(/\b\w+\b/g)||[]};function do_onoff(d,a){var c=document.getElementById(d);var b=document.getElementById(a);if(b.style.display=="none"){b.style.display="block";classList(c).remove("close");classList(c).add("open")}else{b.style.display="none";classList(c).remove("open");classList(c).add("close")}}function open_close(d,a){var c=document.getElementById(d);var b=document.getElementById(a);c.addEventListener("click",function(){do_onoff(d,a)},false);classList(c).remove("open");classList(c).add("close");if(classList(c).contains("open")){b.style.display=""}if(classList(c).contains("close")){b.style.display="none"}}function OCisSmartPhone(){return((navigator.userAgent.indexOf("iPhone")>0&&navigator.userAgent.indexOf("iPad")==-1)||navigator.userAgent.indexOf("iPod")>0||navigator.userAgent.indexOf("Android")>0)}function OCdisplayWidth(){return window.parent.screen.width}function OCwindowWidth(){if(window.screen.width<window.innerWidth){return window.screen.width}return window.innerWidth};

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.