PageSourceSearch

https://www.restosducoeur.org/wp-content/themes/pittheme/build/fea…/view.js?ver=530412c6ef9503c3e1ea

js restosducoeur.org collected 2026-09-24 08:32:00 UTC 2,744 bytes, 1 lines download raw bytes

1(()=>{"use strict";document.addEventListener("click",function(t){const e=t.target.closest(".page-numbers");if(!e||!e.closest(".js-pit-pagination"))return;t.preventDefault();const n=e.getAttribute("href"),i=function(t){if(!t)return 1;const e=t.split("?")[0].split("/page/");let n=1;return e[1]&&(n=parseInt(e[1].split("/")[0],10)||1),n}(n),s=e.closest(".js-pit-content-list");if(!s)return void(window.location.href=n);if(!function(t,e){const n=t.dataset.listType;if(!n)return!1;let i={};if(t.dataset.attributes)try{i=JSON.parse(t.dataset.attributes)}catch(t){i={}}let s={};if(t.dataset.filters)try{s=JSON.parse(t.dataset.filters)}catch(t){s={}}return t.dataset.paged=String(e),async function(t){return(await fetch("/wp-json/pit/v1/content-list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}({listType:n,paged:e,filters:s,attributes:i}).then(e=>{e&&e.success&&e.html&&function(t,e){const n=t.querySelector(".js-pit-content-list")||t,i=document.createElement("div");i.innerHTML=e;const s=n.querySelector(".js-pit-content-list-message-result"),o=i.querySelector(".js-pit-content-list-message-result");s&&o&&s.replaceWith(o);const c=Array.from(n.querySelectorAll(".js-pit-content-list-pagination")),a=Array.from(i.querySelectorAll(".js-pit-content-list-pagination")),r=c.find(t=>t.classList.contains("pit-content-list-pagination-top")),l=c.find(t=>t.classList.contains("pit-content-list-pagination-bottom")),p=a.find(t=>t.classList.contains("pit-content-list-pagination-top")),d=a.find(t=>t.classList.contains("pit-content-list-pagination-bottom"));if(r)p?r.replaceWith(p):r.remove();else if(p){const t=n.querySelector(".js-pit-content-list-message-result");t?t.insertAdjacentElement("afterend",p):n.insertBefore(p,n.firstChild)}if(l)d?l.replaceWith(d):l.remove();else if(d){const t=n.querySelector(".js-pit-content-list-items");t?t.insertAdjacentElement("afterend",d):n.appendChild(d)}const u=n.querySelector(".js-pit-content-list-items"),f=i.querySelector(".js-pit-content-list-items");u&&f&&u.replaceWith(f),window.dispatchEvent(new CustomEvent("pit:dom:updated",{detail:{container:t}}))}(t,e.html)}),!0}(s,i))return void(window.location.href=n);const o=e.closest(".pit-content-list-pagination");if(!o||!o.classList.contains("js-pit-pagination-back-top"))return;const c=(s.querySelector(".js-pit-content-list-items")||s).getBoundingClientRect().top+window.scrollY;window.scrollTo({top:c,behavior:"smooth"})}),function(){function t(){window.pitRunAnimation&&window.pitRunAnimation(".wp-block-pit-actions-promote .pit-content-list-items.js-animate .actions-promote-item")}"complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t)}()})();

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.