PageSourceSearch

https://forgeandform.co//js/site.js

js forgeandform.co collected 2026-10-02 15:13:11 UTC 5,005 bytes, 1 lines download raw bytes

1!function(){var e=null,t=0,o=0,n=!0;function a(e,t){if(t){var o=document.createElement("div");o.classList.add("verticalCenter"),e.append(o),e=o}var n=document.createElement("img");return n.src="images/spinner.png",n.classList.add("spinner"),e.append(n),n}function r(e){e.onclick=function(){var t;if(e.onclick=null,t=e.getAttribute("data-src")){var o=document.createElement("iframe");o.src=t;var n=/player_id=(.*)$/g.exec(o.src);n&&n.length>1&&(n=n[1]),o.id=n,o.setAttribute("allowFullScreen",""),o.setAttribute("webkitallowfullscreen",""),o.setAttribute("frameborder","0"),o.onload=function(){if(e.parentNode.remove(),!Browser.isMobile&&-1!=o.src.search("vimeo")){var t=$f(o);t.addEvent("ready",(function(){t.api("play")}))}},e.parentNode.parentNode.insertBefore(o,e.parentNode);for(var r=0;r<e.parentNode.childNodes.length;r++)"verticalCenter"==e.parentNode.childNodes[r].className&&(e.parentNode.childNodes[r].firstChild.remove(),a(e.parentNode.childNodes[r]))}},Browser.isMobile&&MKjTools.addVisibilityTrigger(e,(function(){e.onclick()}))}function i(){console.log("do load 3");var e=document.createElement("script");function t(){dataLayer.push(arguments)}e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=G-F965ZJX3RC",document.getElementsByTagName("head")[0].appendChild(e,document.getElementsByTagName("head")[0]),window.dataLayer=window.dataLayer||[],t("js",new Date),t("config","G-F965ZJX3RC"),window.gtag=t,console.log("did load"),t("event","testEvent",{parameter_name1:"testValue"})}window.addEventListener("scroll",(function(){if(Browser.isMobile){if(!e){var n=window.document.body.getElementsByClassName("navbar")[0];(e=new MKjAnimate.DynamicAnimation(n,{property:"translateY"})).currentValue=[0],e.momentumRetentionFactor=.6,e.targetConvergenceFactor=.07}var a=document.body.scrollTop;o+=a-t,t=a,o<-30||a<=1?(e.targetValue=[0],o=0):o>30&&(o=0,e.targetValue=[-100])}})),window.addEventListener("load",(function(){var e,t;!function(){for(var e=window.document.getElementsByClassName("lazyLoad"),t=0;t<e.length;t++)!function(e){MKjTools.addVisibilityTrigger(e,(function(){var t=null;"IFRAME"==e.nodeName&&(t=a(e.parentNode,!0)),e.onload=function(){e.classList.remove("lazyLoad"),t&&t.remove()},e.setAttribute("src",e.attributes["data-src"].value)}))}(e[t])}(),function(){for(var e=window.document.getElementsByClassName("lazyButton"),t=0,o=e.length;t<o;t++)r(e[t])}(),function(){for(var e=document.getElementById("logoSVG"),t=window.document.body.getElementsByClassName("topBarColorChange"),o=function(t){var o=function(){if(e){var o=e.getBoundingClientRect(),a=t.getBoundingClientRect();if(a.top<o.bottom&&a.bottom>o.bottom||n){var r=t.getAttribute("topbarColor");n=!1;var i,l=null;Browser.isMobile&&((i=t.getAttribute("topbarColorMobile"))&&(r=i),l=t.getAttribute("navMobile")||l),Logo.lerpToColor(r,l)}}};window.addEventListener("scroll",o),o()},a=0,r=t.length;a<r;a++)o(t[a])}(),e=window.document.getElementsByClassName("managedVideo"),t=function(){window.pageYOffset||document.documentElement.scrollTop;for(var t=[],o=0,n=e.length;o<n;o++)MKjMath.visibilityPercentage(e[o])>=.6?(t.push(e[o]),e[o].play()):e[o].pause()},window.addEventListener("scroll",t),setTimeout((()=>{t()}),100),function(){var e=document.getElementById("experimentsTitle");if(e){var t=[];tweetsToLoad.forEach((e=>{var o=document.querySelector("#twitterExperiment"),n=e,a=document.importNode(o.content.cloneNode(!0),!0);a.querySelector(".tweetLink").setAttribute("href",n),t.push(a)}));for(let a=0;a<t.length;a+=3){var o=[t[a]];a+1<t.length&&o.push(t[a+1]),a+2<t.length&&o.push(t[a+2]);var n=document.createElement("div");n.className="row",o.forEach((e=>{n.appendChild(e)})),e.parentNode.insertBefore(n,e)}Browser.isMobile||document.addEventListener("tembeds_tweets_processed",(()=>{const e=document.querySelectorAll(".twitter-tweet");for(let o=0;o<e.length;o++){var t=e[o].querySelector("video");null!=t&&(t.muted=!0,t.classList.add("managedVideo"))}})),window.processTweets()}}(),function(){for(var e=window.document.getElementsByClassName("soundToggle"),t=0;t<e.length;t++){var o=e[t];!function(e){console.log("add"),e.onclick=()=>{e.classList.toggle("soundOff"),o.previousElementSibling.muted=!o.previousElementSibling.muted}}(o)}}(),console.log("cookie setup"),window.cookieconsent.initialise({palette:{popup:{background:"#3937a3"},button:{background:"#e62576"}},revokable:!1,theme:"edgeless",type:"opt-in",location:!0,onInitialise:function(e){var t=this.options.type,o=this.hasConsented();
1"opt-in"==t&&o&&i()},onRevokeChoice:function(){this.options.type},onStatusChange:function(e,t){this.options.type,this.hasConsented()&&i()},content:{allow:"Alright!",href:"https://www.forgeandform.co/privacyPolicy"}}),function(){for(var e=window.document.getElementsByClassName("asyncLoad"),t=0;t<e.length;t++)!function(e){var t=null;"IFRAME"==e.nodeName&&(t=a(e.parentNode,!0)),e.onload=function(){e.classList.remove("asyncLoad"),t&&t.remove()},e.setAttribute("src",e.attributes["data-src"].value)}(e[t])}()}))}();

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.