PageSourceSearch

https://www.golfmagic.com/sites/default/files/js/js_ZAo3tO8MguaKN_…aZZd85934gKb7KfQqeIyl4D_QW-Jc9lQ232e-pQU-rg

js golfmagic.com collected 2026-10-02 04:38:44 UTC 11,194 bytes, 1 lines download raw bytes

1window.dataLayer=window.dataLayer||[],(function(a,o,l){a.behaviors.datalayer={attach:function(a2,t){o("datalayer","html").forEach(function(){if(l.datalayer){let a3=Object.keys(l.datalayer),o2={};a3.forEach(function(a4){let t2=l.datalayer[a4];t2!=null&&t2!==""&&(o2[a4]=t2)}),window.location.href.includes("datalayer")&&(console.log("%c DATALAYER %c ","background-color:orange;color:#ffff99;","background-color:inital;color:inital;"),console.log({...o2})),dataLayer.push(o2)}})}}})(Drupal,once,drupalSettings);(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,(function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}})())})(this,(function(){"use strict";function e(e2){for(var t2=1;t2<arguments.length;t2++){var n=arguments[t2];for(var o in n)e2[o]=n[o]}return e2}var t=(function t2(n,o){function r(t3,r2,i){if(typeof document!="undefined"){typeof(i=e({},o,i)).expires=="number"&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t3=encodeURIComponent(t3).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,i[u]!==!0&&(c+="="+i[u].split(";")[0]));return document.cookie=t3+"="+n.write(r2,t3)+c}}return Object.create({set:r,get:function(e2){if(typeof document!="undefined"&&(!arguments.length||e2)){for(var t3=document.cookie?document.cookie.split("; "):[],o2={},r2=0;r2<t3.length;r2++){var i=t3[r2].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o2[u]=n.read(c,u),e2===u)break}catch(e3){}}return e2?o2[e2]:o2}},remove:function(t3,n2){r(t3,"",e({},n2,{expires:-1}))},withAttributes:function(n2){return t2(this.converter,e({},this.attributes,n2))},withConverter:function(n2){return t2(e({},this.converter,n2),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})})({read:function(e2){return e2[0]==='"'&&(e2=e2.slice(1,-1)),e2.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e2){return encodeURIComponent(e2).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));Drupal.behaviors.register_prompt={attach:function(context,settings){once("register_prompt","html",context).forEach(function(){let savedScroll=0,mouseInteraction=!1,height=document.getElementsByTagName("html")[0].scrollHeight;const popup={root:{tag:"div",listener:["click",function(e){e.target.getAttribute("id")==="prompt-register-wrapper"&&promptClose("prompt-register-wrapper")}],attrs:[["id","prompt-register-wrapper"]],content:{tag:"div",attrs:[["id","prompt-register"],["class",drupalSettings.register_prompt.theme]],content:[{tag:"div",attrs:[["class","prompt-close"]],content:{tag:"img",listener:["click",function(e){e.stopPropagation(),promptClose("prompt-register-wrapper")}],attrs:[["src","/themes/custom/base_theme/images/icons/close.svg"],["alt",Drupal.t("Close")],["title",Drupal.t("Close")],["loading","lazy"]]}},{tag:"h2",content:Drupal.t("Join Our Community!")},{tag:"div",attrs:[["class","prompt-text"]],content:Drupal.t("Unlock exclusive content, connect with fellow fans, and stay ahead with the latest news and updates")},{tag:"a",attrs:[["class","social"],["data-mrf-conversion","register-prompt-facebook"],["href","/user/login/facebook"]],content:[{tag:"img",attrs:[["src","/themes/custom/base_theme/images/icons/facebook.svg"],["alt","Facebook"],["loading","lazy"]]},{tag:"span",content:Drupal.t("Register with Facebook")}]},{tag:"a",attrs:[["class","social"],["data-mrf-conversion","register-prompt-google"],["href","/user/login/google"]],content:[{tag:"img",attrs:[["src","/themes/custom/base_theme/images/icons/google.svg"],["alt","Google"],["loading","lazy"]]},{tag:"span",content:Drupal.t("Register with Google")}]},{tag:"div",attrs:[["class","bar"]],content:{tag:"span",content:Drupal.t("or")}},{tag:"a",attrs:[["class","email"],["data-mrf-conversion","register-prompt-email"],["href","/user/register"]],content:[{tag:"img",attrs:[["class","email"],["src","/themes/custom/base_theme/images/icons/email.svg"],["alt","Email"],["loading","lazy"]]},{tag:"span",content:Drupal.t("Register with Email")}]}]}}};setTimeout(function(){validConditions()&&window.addEventListener("scroll",testScroll,{passive:!0})},2500);function testScroll(){(window.scrollY>height/3||window.scrollY>1500)&&(window.removeEventListener("scroll",testScroll,{passive:!0}),show())}function show(){const prompt=createElement(popup.root);document.getElementsByTagName("body")[0].appendChild(prompt),window.addEventListener("resize",resizeProcess,{passive:!0}),placePrompt(document.getElementById("prompt-register")),setTimeout(function(){prompt.classList.add("activate"),Cookies.set("regPrompt","1000")},25)}function validConditions(){const cookieValue=parseInt("0"+Cookies.get("regPrompt"));return cookieValue>=1e3?!1:cookieValue<2?(Cookies.set("regPrompt",cookieValue+1),!1):document.getElementsByTagName("body")[0].classList.contains("user-logged-in")?(Cookie
1s.set("regPrompt","1000"),!1):!window.location.href.match(/\/user(\/|$)/)}function resizeProcess(){height=document.getElementsByTagName("html")[0].scrollHeight;const prompt=document.getElementById("prompt-register");prompt&&placePrompt(prompt)}function placePrompt(item){const winWidth=window.innerWidth;if(winWidth<=item.scrollWidth)item.style.left=0;else{const offset=(winWidth-item.scrollWidth)/2;item.style.left=offset+"px"}const winHeight=window.innerHeight;if(winHeight<=item.scrollHeight)item.style.top=0;else{const offset=(winHeight-item.scrollHeight)/2;item.style.top=offset+"px"}}function promptClose(id){const element=document.getElementById(id);return element&&(element.classList.add("deactivate"),window.removeEventListener("resize",resizeProcess,{passive:!0}),setTimeout(function(){element.parentElement.removeChild(element)},750)),!0}function ensureArray(item){return Object.prototype.toString.call(item)!=="[object Array]"?[item]:item}function createElement(config){let element={};return typeof config.tag!="undefined"&&(element=document.createElement(config.tag),typeof config.listener!="undefined"&&element.addEventListener(config.listener[0],config.listener[1]),typeof config.attrs!="undefined"&&ensureArray(config.attrs).forEach(function(item){element.setAttribute(item[0],item[1])}),config.content!==void 0&&ensureArray(config.content).forEach(function(item){typeof item.tag!="undefined"?element.appendChild(createElement(item)):element.innerText=item})),element}})}};function TimeAgo(r){function u(e){return("00"+e).slice(-2)}var c=r.getAttribute("data-timestamp");c&&(function e(){var t=Math.round(new Date),a=parseInt(1e3*c),n="",t=(t-a)/1e3,o=t/60,i=o/60;t<=0||(24<=i&&(n=(n=u((theDate=new Date(a)).getDate())+"/")+u(theDate.getMonth()+1)+"/",n+=String(theDate.getFullYear()).slice(-2)),1<i&&n===""&&(n=Math.floor(i)+"h ago",setTimeout(e,18e4)),120<t&&n===""&&(n=Math.floor(o)+"m ago",setTimeout(e,6e4)),t<120&&(n="about now",setTimeout(e,6e4)),r.innerHTML=r.innerHTML.replace(/(<svg.*?svg>)([^<]*)(.*)/i,"$1"+n+"$3"))})()}((e,a)=>{e.behaviors.card={attach:function(e2,t){a("card",".card .time").forEach(function(e3){new TimeAgo(e3)})}}})(Drupal,once,drupalSettings),window.vfQ=window.vfQ||[];function triggerPopulateViaFoura(){var state=document.readyState;state==="interactive"||state==="complete"?populateViaFoura().then(result=>{console.log(result)}):setTimeout(triggerPopulateViaFoura,100)}async function populateViaFoura(){const vf_ids=[];if(document.querySelectorAll("vf-conversations-count-custom").forEach(element=>{const id=element.getAttribute("vf-container-id");id&&vf_ids.push(id)}),vf_ids.length>0){const url="https://livecomments.viafoura.co/v4/livecomments/"+drupalSettings.viafoura.section_uuid+"/content-containers/comment-count-and-status/by-container-ids",request=new Request(url,{method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:"["+vf_ids.toString()+"]"}),response=await fetch(request);response.status>=200&&response.status<300&&(await response.json()).forEach(item=>{let commentCounts=document.querySelectorAll('vf-conversations-count-custom[vf-container-id="'+item.containerId+'"]');Array.from(commentCounts).forEach(elem=>{if(item.commentCount>0||elem.closest(".article-actions")){const commentSpan=document.createElement("span");commentSpan.classList.add("vf-comments-count"),commentSpan.innerText=item.commentCount;let spans=elem.getElementsByTagName("span");Array.from(spans).forEach(span=>{elem.removeChild(span)}),elem.appendChild(commentSpan)}})})}return"PopulateViaFoura"}Drupal.behaviors.viaFoura={attach:function(context,settings){once("viaFoura","html",context).forEach(function(element){window.vfQ=window.vfQ||[],window.vfQ.push(()=>{settings.user.vfsid?window.vf.session.login.cookie(settings.user.vfsid):window.vf.session.logout(),window.vf.$prepublish((channel,event,...args)=>channel==="authentication"&&event==="required"?(window.vf.$publish("tray","close"),window.location.replace("/user/login"),!1):{channel,event,args}),window.vf.$subscribe("authentication","logout",()=>{let logoutLink=document.querySelector('#header #action-bar a[href^="/user/logout"]');logoutLink.href&&window.location.replace(logoutLink.href)})})}),once("vf-jump",".article-actions .block-viafoura",context).forEach(function(element){window.location.href.includes("/admin/")||element.addEventListener("click",function(){document.querySelector(".first-column .block-viafoura").scrollIntoView({behavior:"smooth"})})})}};function generateCommentAd(slot){cmgAdQueuePush(function(){AccelerateAdManager.displayAd("mpu",!1,slot,"*")})}window.vfQ=window.vfQ||[],window.vfQ.push(function(){window.vf.$subscribe("vf-ads","requestCommentAd",generateCommentAd)}),__tcfapi("addEventListener",2,function(tcData,success){function loadAsyncScript(src,id,type="text/javascript"){if(!document.getElementById(id)){var e=document.createElement("script");e.async=1,e.src=src,e.id=id,e.type=type;var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(e,f)}}if(tcData.gdprApplies){if(!tcData||!success||tcData.eventStatus!=="useractioncomplete"&&tcData.eventStatus!=="tcloaded"||!tcData.vendor||!tcData.vendor.consents)return;tcData.vendor.consents[1138]&&(loadAsyncScript("https://cdn.viafoura.net/entry/index.js"),triggerPopulateViaFoura(),console.log("Loading ViaFoura"))}else console.log("GDPR doesnt apply. Loading Viafoura..."),loadAsyncScript("https://cdn.viafoura.net/entry/index.js"),triggerPopulateViaFoura(),console.log("Loading ViaFoura");tcData.listenerId&&__tcfapi("removeEventListener",2,function(){},tcData.listenerId)}),(function(w,d,s,id){if(typeof w.webpushr=="undefined"){w.webpushr=w.webpushr||function(){(w.webpushr.q=w.webpushr.q||[]).push(arguments)};var js,fjs=d.getElementsByTagName(s)[0];js=d.createElement(s),js.id=id,js.async=1,js.src="https://cdn.webpushr.com/app.min.js",fjs.parentNode.appendChild(js)}})(window,document,"script","webpushr-jssdk"),webpushr("setup",{key:"BHYNYALWnv0IjW92NK_OsPl-5xjI6Aiqph9Zp8wK5abyUgeUFZ5UhLbJ3DHR0IBRiRIZI_S6bnNgXo3sXl1t-D8"});

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.