PageSourceSearch

https://ilmoesano.ch/build/assets/comments-BL3svd6u.js

js ilmoesano.ch collected 2026-10-02 22:17:43 UTC 1,383 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{const n=(e,o)=>{e.classList.toggle("hidden",!o)},c=(e,o)=>{const r=e.querySelector('[type="submit"]');r&&(r.disabled=o,r.setAttribute("aria-busy",o?"true":"false"))},m=async(e,o=!1,r=!1)=>{var d;const t=e.querySelector(".submit-info"),i=e.querySelector(".submit-success"),s=e.querySelector('textarea[name="comment"]');if(!t||!i)return;n(t,!1),n(i,!1),t.textContent="Qualcosa è andato storto. Riprova fra qualche minuto.";const l=(s==null?void 0:s.value.trim())??"";if(l===""){t.textContent="Inserisci un commento prima di inviare.",n(t,!0),s==null||s.focus();return}if(l.length<5){t.textContent="Il commento deve contenere almeno 5 caratteri.",n(t,!0),s==null||s.focus();return}c(e,!0);try{const a=await(await fetch(MeerkatReply.Endpoints.SubmitComment,{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:new FormData(e)})).json();if(a.success){n(i,!0),r&&(e.reset(),window.dispatchEvent(new CustomEvent("comment-form:reset"))),setTimeout(o?()=>e.remove():()=>n(i,!1),5e3);return}(d=a.errors)!=null&&d.length&&(t.innerHTML=a.errors.join("<br />")),n(t,!0)}catch{n(t,!0)}finally{c(e,!1),o||setTimeout(()=>n(t,!1),5e3)}},u=document.querySelector('[data-meerkat-form="comment-form"]');u&&u.addEventListener("submit",e=>{e.preventDefault(),m(u,!1,!0)}),MeerkatReply.submit=e=>{e.preventDefault(),m(e.currentTarget,!0)}});

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.