PageSourceSearch

https://www.ohmymag.com/modules/custom/websites_mod/dist/js/libs-trackings-gallery-js.js

js ohmymag.com collected 2026-10-02 05:43:18 UTC 1,276 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsites_base=self.webpackChunkwebsites_base||[]).push([[3588,6913],{4870(e,t,s){s.d(t,{default:()=>a});const r=[];class a{static add(e,t){r.push({qr:e,fn:t})}static one(e,t,s){document.querySelector(t).addEventListener(e,e=>(e.target.removeEventListener(e.type,s),s(e,e.target)))}static clickOnce(e,t){document.querySelector(e).addEventListener("click",t,{once:!0})}static addClick(e){if(0===r.length)return!1;if(e.target){let t=e.target,s=!1;const a=r=>!(!t.classList||!t.classList.contains(r.qr)||(s=r.fn(e,t),0));if(!r.some(a))for(;t.parentNode;)if(t=t.parentNode,r.some(a))return!1;return s}return!1}static attach(){document.body.addEventListener("click",e=>this.addClick(e))}}},8824(e,t,s){s.d(t,{default:()=>a});var r=s(4870);const a=class{constructor(){this.pictures=Array.from(document.querySelectorAll(".gallery--tracking")),r.default.add("affiliate--trigger",(e,t)=>{e.preventDefault(),t.querySelector(".affiliate--cta").click()}),0!==this.pictures.length&&(this.observer=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.intersectionRatio<=.25||e.target.classList.contains("viewed")||(e.target.classList.add("viewed"),t.unobserve(e.target))})},{threshold:[0,.25,.5,.75,1]}),this.pictures.forEach(e=>{this.observer.observe(e)}))}}}}]);

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.