https://www.beginningboutique.com/cdn/shop/t/36/assets/nosto-colle…?v=156090581450039930741751606790
1document.addEventListener("DOMContentLoaded",function(){let checkInterval,retries=0;const maxRetries=20;let totalPages=0;function createPaginationLinks(totalPages2){const head=document.querySelector("head");function getCurrentPage(){const urlParams=new URLSearchParams(window.location.search);return parseInt(urlParams.get("page"))||1}function updatePaginationLinks(){const currentPage=getCurrentPage();if(document.querySelectorAll('link[rel="prev"], link[rel="next"]').forEach(link=>link.remove()),currentPage>1){const prevLink=document.createElement("link");prevLink.rel="prev",prevLink.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?page=${currentPage-1}`,head.appendChild(prevLink)}if(currentPage<totalPages2){const nextLink=document.createElement("link");nextLink.rel="next",nextLink.href=`${window.location.protocol}//${window.location.host}${window.location.pathname}?page=${currentPage+1}`,head.appendChild(nextLink)}}updatePaginationLinks(),window.addEventListener("popstate",updatePaginationLinks);const originalPushState=history.pushState;history.pushState=function(state,title,url){originalPushState.call(history,state,title,url),updatePaginationLinks()};const originalReplaceState=history.replaceState;history.replaceState=function(state,title,url){originalReplaceState.call(history,state,title,url),updatePaginationLinks()}}checkInterval=setInterval(function(){if(retries++,retries>maxRetries){clearInterval(checkInterval);return}const showingItemsElement=document.querySelector(".ns-viewed");if(!showingItemsElement)return;const match=showingItemsElement.textContent.trim().match(/of\s+(\d+)\s+products/i);if(!match){clearInterval(checkInterval);return}const totalResults=parseInt(match[1]);if(!totalResults||isNaN(totalResults)){clearInterval(checkInterval);return}const pageSize=document.querySelectorAll("#ns-product-grid .ns-product").length;pageSize!==0&&(totalPages===0&&(totalPages=Math.ceil(totalResults/pageSize)),totalPages>0&&(createPaginationLinks(totalPages),clearInterval(checkInterval)))},500)}); 2//# sourceMappingURL=/cdn/shop/t/36/assets/nosto-collection-next-prev.js.map?v=156090581450039930741751606790
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.