https://godam.io/wp-content/themes/ollie-child/assets/build/blocks…/view.js?ver=146ee02bb6047a9d92ba
1document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll('.pricing-table-block__footer a[href*="account-creation"]'),t=document.getElementById("godam-plan-monthly"),n=document.getElementById("godam-plan-yearly"),o=document.querySelectorAll(".godam-price-monthly"),c=document.querySelectorAll(".godam-price-yearly"),r=document.querySelectorAll(".godam-links-monthly"),a=document.querySelectorAll(".godam-links-yearly");if(!t||!n||0===c.length)return void console.warn("Missing pricing toggle or yearly price elements.");const i=o.length>0?Array.from(o):Array.from(c).map(e=>e.previousElementSibling).filter(Boolean);function l(e,t){e.forEach(e=>e.classList.toggle("godam-price-hide",!t))}const s=e=>{l(i,!e),l(c,e),l(r,!e),l(a,e),n.checked=e,t.checked=!e};function d(e){s(e),window.location.hash=e?"#yearly":"#monthly"}window.addEventListener("hashchange",()=>{d("#yearly"===window.location.hash)}),function e(t,n=10){(()=>{const{ref:o,visit_id:c}=function(){const e=document.cookie.match(/(?:^|;\s*)affwp_ref=([^;]+)/),t=document.cookie.match(/(?:^|;\s*)affwp_ref_visit_id=([^;]+)/);let n=e?e[1]:null,o=t?t[1]:null;if(n||(n=new URLSearchParams(window.location.search).get("ref")),!n){const e=window.location.pathname.match(/\/ref\/(\d+)(?:\/|$)/);e&&(n=e[1])}return{ref:n,visit_id:o}}();o&&c?t(o,c):n>0?setTimeout(()=>e(t,n-1),300):o&&t(o,null)})()}(function(t,n){t&&0!==e.length&&e.forEach(e=>{try{const o=new URL(e.href);o.searchParams.set("ref",t),n&&o.searchParams.set("visit_id",n),e.href=o.toString(),e.hasAttribute("target")||(e.target="_blank")}catch(t){console.error("Invalid CTA button URL:",e.href,t)}})}),(()=>{if(i.length===c.length)for(let e=0;e<i.length;e++){const t=i[e].textContent.trim().match(/\d+(\.\d{1,2})?/);if(!t)continue;const n=parseFloat(t[0]);if(isNaN(n)||n<=0)continue;const o=12*n,r=Number.isInteger(o)?o:o.toFixed(2);c[e].dataset.savingsOff=`$${r}/yr`}else console.log("Mismatch in monthly and yearly price counts.")})(),(()=>{const e=window.location.hash;let t=!0;t="#monthly"!==e&&("#yearly"===e||n.checked),s(t)})(),t.addEventListener("change",()=>{t.checked&&d(!1)}),n.addEventListener("change",()=>{n.checked&&d(!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.