PageSourceSearch

https://www.la-thierache.fr/wp-content/themes/cmc_commun/assets/js/pwa.min.js?v=8.6.0

js la-thierache.fr collected 2026-09-24 23:42:48 UTC 1,123 bytes, 1 lines download raw bytes

1let deferredPrompt;function affichePWAApresScroll(){200<window.scrollY&&(CMC.base.getCookie("pwa_fermee")||document.getElementById("pwa-install").classList.add("pwa-install_scroll"),window.removeEventListener("scroll",affichePWAApresScroll))}function fermePWA(){document.getElementById("pwa-install").style.display="none",CMC.base.setCookie("pwa_fermee","1",24)}window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),deferredPrompt=e,document.getElementById("pwa-install").classList.add("pwa-install_active")}),window.addEventListener("load",()=>{var e=document.getElementsByClassName("pwa-install_btn"),t=(Array.from(e).forEach(function(e){e.onclick=function(){deferredPrompt.prompt(),deferredPrompt.userChoice.then(e=>{"accepted"===e.outcome?(document.getElementById("pwa-install").classList.remove("pwa-install_active"),console.log("User accepted the install prompt")):console.log("User dismissed the install prompt")})}}),window.addEventListener("scroll",affichePWAApresScroll),document.getElementsByClassName("pwa-install_fermer"));for(let e=0;e<t.length;e++)t[e].addEventListener("click",fermePWA)},!1);

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.