PageSourceSearch

https://www.scbaseball.org/js/script.local.outbound-links.pageview-props.tagged-events.js

js scbaseball.org collected 2026-10-02 02:08:54 UTC 4,253 bytes, 1 lines download raw bytes

1!function(){var e,t,n,i,a=document.currentScript,o={};function r(e,t,n){window.fetch&&fetch(e,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(t)}).then(function(e){n&&n.callback&&n.callback({status:e.status})}).catch(function(e){n&&n.callback&&n.callback({error:e})})}var c=!1,u={},s=-1,l=0,d=0;function p(){var a=v();if(!e&&(s<i||a>=3e3)){s=i;var c={n:"engagement",sd:Math.round(i/n*100),d:o.domain,u:t,p:u,e:a,v:36};l=0,d=0,r(o.endpoint,c)}}function f(){"visible"===document.visibilityState&&document.hasFocus()&&0===l?l=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(d=v(),l=0,p())}function v(){return l?d+(Date.now()-l):d}function m(){var e=document.body||{},t=document.documentElement||{};return Math.max(e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0,t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0)}function g(){var e,t;return e=window.innerHeight,t=window.scrollY,n<=e?n:t+e}function h(v,h){var w,b="pageview"===v;b&&c&&(p(),n=m(),i=g());try{if("true"===window.localStorage.plausible_ignore)return void(o.logging&&console.warn("Ignoring Event: localStorage flag"),h&&h.callback&&h.callback(),"pageview"===v&&(e=!0))}catch(e){}var y={};y.n=v,y.v=36,y.u=location.href,y.d=o.domain,y.r=document.referrer||null,h&&h.meta&&(y.m=JSON.stringify(h.meta)),h&&h.props&&(y.p=h.props),h&&!1===h.interactive&&(y.i=!1);var L=a.getAttributeNames().filter(function(e){return"event-"===e.substring(0,6)}),w=y.p||{};L.forEach(function(e){var t=e.replace("event-",""),n=a.getAttribute(e);w[t]=w[t]||n}),y.p=w,b&&(e=!1,t=y.u,u=y.p,s=-1,d=0,l=Date.now(),c||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),c=!0)),r(o.endpoint,y,h)}function w(e){return e&&e.tagName&&"a"===e.tagName.toLowerCase()}function b(e){if("auxclick"!==e.type||1===e.button){var t,n=function(e){for(;e&&(void 0===e.tagName||!w(e)||!e.href);)e=e.parentNode;return e}(e.target);if(n&&"string"==typeof n.href&&n.href.split("?")[0],!function e(t,n){return!!t&&!(n>3)&&(!!L(t)||e(t.parentNode,n+1))}(n,0)&&(t=n)&&"string"==typeof t.href&&t.host&&t.host!==location.host)return y(e,n,{name:"Outbound Link: Click",props:{url:n.href}})}}function y(e,t,n){var i;i={props:n.props},h(n.name,i)}function L(e){var t=e&&e.classList;if(t){for(var n=0;n<t.length;n++)if(t.item(n).match(/plausible-event-name(=|--)(.+)/))return!0}return!1}function E(e){var t=L(e)?e:e&&e.parentNode,n={name:null,props:{}},i=t&&t.classList;if(!i)return n;for(var a=0;a<i.length;a++){var o,r,c=i.item(a).match(/plausible-event-(.+)(=|--)(.+)/);c&&(o=c[1],r=c[3].replace(/\+/g," "),"name"==o.toLowerCase()?n.name=r:n.props[o]=r)}return n}!function e(t){o.endpoint=a.getAttribute("data-api")||new URL(a.src).origin+"/api/event",o.domain=a.getAttribute("data-domain"),o.logging=!0,n=m(),i=g(),new ResizeObserver(function(){n=m()}).observe(document.documentElement),document.addEventListener("scroll",function(){var e=g();e>i&&(i=e)}),function(e){function t(t){t&&n===location.pathname||(n=location.pathname,e("pageview"))}var n,i=function(){t(!0)},a=window.history;if(a.pushState){var o=a.pushState;a.pushState=function(){o.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){n||"visible"!==document.visibilityState||t()}):t(),window.addEventListener("pageshow",function(e){e.persisted&&t()})}(h),function(){function e(e){if("auxclick"!==e.type||1===e.button){for(var t,n,i,a=e.target,o=0;o<=3&&a;o++){if((t=a)&&t.tagName&&"form"===t.tagName.toLowerCase())return;w(a)&&(n=a),L(a)&&(i=a),a=a.parentNode}if(i){var r=E(i);if(n)r.props.url=n.href,y(e,n,r);else{var c={};c.props=r.props,h(r.name,c)}}}}document.addEventListener("click",b),document.addEventListener("auxclick",b),document.addEventListener("submit",function(e){var t,n=E(e.target);n.name&&(t={props:n.props},h(n.name,t))}),document.addEventListener("click",e),document.addEventListener("auxclick",e)}();for(var r=window.plausible&&window.plausible.q||[],c=0;c<r.length;c++)h.apply(this,r[c]);window.plausible=h,window.plausible.init=e,window.plausible.v=36,window.plausible.l=!0}()}();

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.