PageSourceSearch

https://www.codastory.com/wp-content/themes/coda-2025/build/front.js?ver=1065ef47c0e04dd9bf96

js codastory.com collected 2026-09-24 08:26:49 UTC 11,157 bytes, 1 lines download raw bytes

1(()=>{var e={1488(){function e(e){const t=document.createElement("div");t.className="captionwrap",e.parentNode.insertBefore(t,e),t.appendChild(e);const n=document.createElement("span");for(;e.firstChild;)n.appendChild(e.firstChild);e.appendChild(n)}var t;t=function(){document.querySelectorAll(".wp-block-gallery.columns-1 .wp-block-image figcaption").forEach((t=>e(t))),document.querySelectorAll(".wp-block-group.alignfull").forEach((t=>{const n=Array.from(t.children);n.length>0&&n.every((e=>e.classList.contains("wp-block-video")))&&t.querySelectorAll(".wp-block-video figcaption").forEach((t=>e(t)))}));const t=document.querySelector(".article"),n=t&&t.firstElementChild;if(n&&n.matches(".wp-block-cover, .wp-block-gallery")){const r=document.querySelectorAll(".page-header");r.forEach((e=>e.classList.add("hidden")));let i=document.documentElement.clientHeight,c=document.documentElement.clientWidth;const l=".is-position-bottom-left .wp-block-cover__image-background, .is-position-bottom-right .wp-block-cover__image-background";function o(){const e=document.querySelectorAll(l);c<670&&i>c?e.forEach((e=>{const t=e.nextElementSibling;if(t&&t.matches(".wp-block-cover__inner-container")){const n=getComputedStyle(t),o=t.clientHeight-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom);e.style.height="calc(100% - "+o+"px)"}})):e.forEach((e=>{e.style.height=""}))}window.addEventListener("resize",(function(){i=document.documentElement.clientHeight,c=document.documentElement.clientWidth,o()})),window.addEventListener("scroll",(function(){const e=document.querySelector(".article-body");if(!e)return;const t=window.scrollY,n=e.getBoundingClientRect().top+window.scrollY,o=[...r].some((e=>e.classList.contains("hidden")));t+i/2>n&&o?r.forEach((e=>e.classList.remove("hidden"))):t+i/2<=n&&!o&&r.forEach((e=>e.classList.add("hidden")))})),o()}},"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".wp-block-video video");if(!e.length)return;const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?e.target.dataset.wasVisible="":"wasVisible"in e.target.dataset&&e.target.pause()}))}),{threshold:.25});e.forEach((e=>t.observe(e)))})),function(){const e=document.querySelector(".article"),t=document.querySelector(".header-progressbar__track");let n,o;if(!e||!t)return;const r=window.innerHeight,i=()=>e.clientHeight+r/2-r;let c=i();const l=()=>{n=(window.scrollY-e.offsetTop)/c*100,o=n<0?0:n,t.style.width=o+"%"};window.addEventListener("scroll",(e=>{let t=!1;return()=>{t||(e(),t=!0,setTimeout((()=>{t=!1}),100))}})(l)),window.addEventListener("scroll",(e=>{let t;return()=>{clearTimeout(t),t=setTimeout((()=>{e()}),200)}})(l)),window.addEventListener("resize",(()=>{l(),c=i()}),!0)}()},4890(e,t,n){const o=(e,{Navigation:t,Pagination:n})=>({modules:[t,n],createElements:!0,loop:!0,spaceBetween:100,slideClass:"wp-block-image",pagination:{enabled:!0,clickable:!0},navigation:{enabled:!0,addIcons:!1}}),r=(e,t)=>{const n=e.classList.contains("swiper--nav"),o={centeredSlides:e.classList.contains("swiper--full-width"),spaceBetween:20,slidesPerView:"auto",loop:e.classList.contains("swiper--loop")};return n&&(o.modules=[t.Navigation],o.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev",addIcons:!1}),o};document.addEventListener("DOMContentLoaded",(async()=>{const e=document.querySelectorAll(".swiper.swiper--carousel, .wp-block-gallery.is-style-carousel");if(!e||e.length<=0)return;const[{default:t},i]=await Promise.all([Promise.all([n.e(463),n.e(76)]).then(n.bind(n,3889)),Promise.all([n.e(13),n.e(189)]).then(n.bind(n,5189)),n.e(108).then(n.bind(n,9108)),n.e(716).then(n.bind(n,716)),n.e(922).then(n.bind(n,5922))]);for(const n of e){const e=n.classList.contains("is-style-carousel")?o:r;new t(n,e(n,i))}}))},3071(){var e;window.onkeydown=function(e){27===e.keyCode&&(document.body.classList.remove("page--menu-active","page--shutter-active"),document.querySelectorAll(".js-menu, .header-shutter").forEach((e=>e.classList.remove("is-active"))))},e=function(){document.body.classList.toggle("page--menu-active"),void 0!==this&&this.classList.toggle("is-active"),document.querySelectorAll(".header-shutter--menu").forEach((e=>e.classList.toggle("is-active"))),document.body.classList.toggle("page--shutter-active")},document.addEventListener("click",(function(t){const n=t.target.closest(".
1js-menu");n&&e.call(n,t)})),document.addEventListener("DOMContentLoaded",(()=>{if([...document.links].forEach((e=>e.target=e.hostname===window.location.hostname?e.target:"_blank")),"function"!=typeof gtag)return;const e=Array.from(document.querySelectorAll(".read-next__posts a"));if(0===e.length)return;const t=(n=e,e=>{const t=n.indexOf(e.target.closest("a"));t<0||gtag("event","select_content",{content_type:"section_read-next_story",content_id:t})});var n;for(const n of e)n.addEventListener("click",t)}))},1223(){function e(e){const t=e.querySelector(".wp-block-buttons");if(!t)return;const n=Array.from(t.querySelectorAll(".wp-block-button"));if(!n.length)return;const o=n[n.length-1],r=o?o.querySelector(".wp-block-button__link"):null;r&&"#"===(r.getAttribute("href")||"").trim()&&r.addEventListener("click",(e=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})}));const i=n.slice(0,Math.max(0,n.length-1)).map((e=>e.querySelector(".wp-block-button__link"))).filter(Boolean).map((e=>{const t=e.getAttribute("href")||"";if(!t.startsWith("#"))return null;const n=t.slice(1),o=document.getElementById(n)||document.querySelector(`[id="${CSS.escape(n)}"]`);return o?{link:e,target:o,top:0}:null})).filter(Boolean);if(!i.length)return;const c=i.length>1;let l=!1,s=null;function a(){c&&i.forEach((e=>{const t=e.target.getBoundingClientRect();e.top=t.top+window.scrollY}))}function d(){const t=parseFloat(getComputedStyle(e).top)||0,n=e.offsetHeight||0,o=getComputedStyle(document.documentElement),r=t+n+(parseFloat(o.getPropertyValue("--wp-admin-bar-height"))||0),l=Math.max(0,window.scrollY+r+48);if(document.documentElement.style.setProperty("--subnav-height",`${n}px`),c){let e=-1;for(let t=0;t<i.length;t++){const n=i[t];n.top<=l&&(-1===e||n.top>i[e].top)&&(e=t)}if(i.forEach((({link:e})=>e.classList.remove("is-active"))),e>=0){const t=i[e],n=i[e+1];(!n||n.top>t.top)&&t.link.classList.add("is-active")}}null===s&&(s=e.getBoundingClientRect().top+window.scrollY);const a=window.scrollY>=Math.max(0,s-t);e.classList.toggle("has-scrolled",a)}function u(){l||(l=!0,requestAnimationFrame((()=>{d(),l=!1})))}a(),s=e.getBoundingClientRect().top+window.scrollY,d(),window.addEventListener("scroll",u,{passive:!0});let p=window.innerWidth;window.addEventListener("resize",(()=>{const e=window.innerWidth;e!==p&&(p=e,a(),u())}),{passive:!0}),window.addEventListener("orientationchange",u,{passive:!0}),window.addEventListener("load",(()=>{a(),s=e.getBoundingClientRect().top+window.scrollY,u()}))}document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-group.is-style-subnav").forEach(e)}))}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.m=e,n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],i=t[o++];n.o(e,r)?0===i&&o++:0===i?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:i})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,o)=>(n.f[o](e,t),t)),[])),n.u=e=>e+".js?ver="+{13:"a15eb9822faa5900c747",76:"63c635a6042d1f7a08e6",108:"3bb0932fc5ce0bd34ca4",189:"cefaa823c8345e118cb4",463:"fdadf1b0de77e87a8c92",716:"e0989913485cb69827cc",922:"39c664633c0aa28ddda1"}[e],n.miniCssF=e=>e+".css",n.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="coda:";n.l=(o,r,i,c)=>{if(e[o])return void e[o].push(r);let l,s;if(void 0!==i){const e=document.getElementsByTagName("script");for(var a=0;a<e.length;a++){const n=e[a];if(n.getAttribute("src")==o||n.getAttribute("data-webpack")==t+i){l=n;break}}}l||(s=!0,l=document.createElement("script"),l.charset="utf-8",n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=o),e[o]=[r];const d=(t,n)=>{l.onerror=l.onload=null,clearTimeout(u);const r=e[o];if(delete e[o],l.parentNode?.removeChild(l),r?.forEach((e=>e(n))),t)return t(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{if("undefined"!=typeof document){var e={440:0};n.f.miniCss=(t,o)=>{e[t]?o.push(e[t]):0!==e[t]&&{108:1,716:1,922:1}[t]&&o.push(e[t]=(e=>new Promise(((t,o)=>{var r=n.miniCssF(e),i=n.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o<n.length;o++){var r=(c=n[o]).getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(r===e||r===t))return c}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var c;if((r=(c=i[o]).getAttribute("data-href"))===e||r===t)return c}})(r,i))return t();((e,t,o,r,i)=>{var c=document.createElement("link");c.rel="stylesheet",c.type="text/css",n.nc&&(c.nonce=n.nc),c.onerror=c.onload=n=>{if(c.onerror=c.onload=null,"load"===n.type)r();else{var o=n&&n.type,l=n&&n.target&&n.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+l+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=o,s.request=l,c.parentNode&&c.parentNode.removeChild(c),i(s)}},c.href=t,document.head.appendChild(c)})(e,i,0,t,o)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{const e={440:0};n.f.j=(t,o)=>{let r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{const i=new Promise(((n,o)=>r=e[t]=[n,o]));o.push(r[2]=i);const c=n.p+n.u(t),l=new Error,s=o=>{if(n.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",l.name="ChunkLoadError",l.type=e,l.request=n,r[1](l)}};n.l(c,s,"chunk-"+t,t)}};const t=(t,o)=>{let[r,i,c]=o;var l,s,a=0;if(r.some((t=>0!==e[t]))){for(l in i)n.o(i,l)&&(n.m[l]=i[l]);c&&c(n)}for(t&&t(o);a<r.length;a++)s=r[a],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},o=globalThis.webpackChunkcoda||=[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),(()=>{"use strict";n(3071),n(1488),n(1223),n(4890)})()})();

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.