PageSourceSearch

https://www.gamesradar.com/vite/assets/Slice/PopularBox/PopularBox.ts-cu3W1cjf.js

js gamesradar.com collected 2026-09-24 08:26:46 UTC 1,012 bytes, 1 lines download raw bytes

1const e=".popular-box__label",t="popular-box__label__tab--active",l=t=>Array.from(t.querySelectorAll(`${e} button.popular-box__label__tab`)),o=(e,o)=>{const a=l(e),r=(e=>Array.from(e.querySelectorAll(".popular-box__articles-list")))(e);0===a.length||o<0||o>=a.length||(a.forEach(((e,l)=>{const a=l===o;e.classList.toggle(t,a),e.disabled=a})),r.forEach(((e,t)=>{e.classList.toggle("popular-box__articles-list--active",t===o)})))},a=a=>{if("true"===a.dataset.popularBoxInitialized)return;a.dataset.popularBoxInitialized="true";const r=l(a),n=a.querySelector(e);0!==r.length&&null!==n&&(r.forEach(((e,t)=>{e.addEventListener("click",(()=>o(a,t)))})),n.addEventListener("keydown",(e=>{const n=(e=>{const o=l(e).findIndex((e=>e.disabled||e.classList.contains(t)));return o>=0?o:0})(a);"ArrowRight"===e.key&&n<r.length-1&&o(a,n+1),"ArrowLeft"===e.key&&n>0&&o(a,n-1)})))},r=()=>{document.querySelectorAll(".popular-box").forEach(a)};window.reliableDOMContentLoaded?window.reliableDOMContentLoaded.then(r).catch(r):r();

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.