PageSourceSearch

https://suvargazeta.ru/build/assets/Vote-a16994d1.js

js suvargazeta.ru collected 2026-10-02 20:23:05 UTC 1,353 bytes, 1 lines download raw bytes

1const b=document.querySelectorAll("#voteItem"),h=r=>(r.ok,r.json());if(b.length)for(var e=0,s;s=b[e];e++){s.setAttribute("id","voteItem-"+e),s.querySelector("#voteChoice").setAttribute("id","voteChoice-"+e);const i=document.querySelector("#voteItem-"+e);i.setAttribute("group","voteRadioGroup-"+e);const a=s.querySelector("#voteBtn");a&&a.setAttribute("id","voteBtn-"+e),i.addEventListener("change",t=>{const d=t.currentTarget.getAttribute("group").split("-").slice(-1)[0],o=document.querySelector("#voteBtn-"+d),n=t.target.closest(".vote__radio-container");t.target.closest(".vote__list").querySelectorAll(".radio").forEach(m=>{m.classList.contains("radio_visible")&&m.classList.remove("radio_visible")}),o.disabled&&o.removeAttribute("disabled"),n.querySelector(".radio").classList.add("radio_visible")});const u=document.querySelector("#voteItem-"+e+" #voteForm");u.setAttribute("id","voteForm-"+e),u.addEventListener("submit",t=>{t.preventDefault();const c=t.currentTarget,o=c.getAttribute("id").split("-").slice(-1)[0],n=document.querySelector("#voteBtn-"+o);let l=new FormData(c);document.querySelector("#voteChoice-"+o),n.setAttribute("disabled",!0),fetch(c.action,{method:"POST",body:l,credentials:"same-origin",headers:new Headers({Accept:"application/json"})}).then(h).then(v=>{document.querySelector("#voteChoice-"+o).innerHTML=v.render})})}

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.