PageSourceSearch

https://www.ennia.com/assets/assets/pagination-CGuUziJ5.js

js ennia.com collected 2026-09-24 10:16:18 UTC 1,234 bytes, 1 lines download raw bytes

1const m=()=>{const r=document.querySelector(".js-paging-container");if(r){const c=r.dataset.totalPages,a=r.querySelector(".js-pagination-next"),n=r.querySelector(".js-pagination-prev"),o=r.querySelectorAll(".js-pagination-button"),s=()=>new URLSearchParams(window.location.search).get("page"),i=e=>{const t=new URLSearchParams(window.location.search);t.set("page",e),window.location.search=t.toString()},l=()=>{n&&n.setAttribute("disabled",!0)},p=()=>{n&&n.removeAttribute("disabled")},d=()=>{a&&a.setAttribute("disabled",!0)},g=()=>{a&&a.removeAttribute("disabled")},u=()=>{c===s()?d():g(),s()==="1"?l():p()};s()===null?o.forEach(e=>{if(e.dataset.page==="1"){e.parentElement.classList.add("cta-primary"),e.parentElement.classList.remove("cta-transparant");const t=new URL(window.location);t.searchParams.set("page","1"),window.history.pushState({},"",t)}}):o.forEach(e=>{e.dataset.page===s()&&(e.parentElement.classList.add("cta-primary"),e.parentElement.classList.remove("cta-transparant"))}),u(),o.forEach(e=>{e.addEventListener("click",()=>{i(e.dataset.page)})}),a&&a.addEventListener("click",()=>{const e=s(),t=parseInt(e)+1;i(t)}),n&&n.addEventListener("click",()=>{const e=s(),t=parseInt(e)-1;i(t)})}};export{m as pagination};

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.