PageSourceSearch

https://novema.jp/build/assets/beforeunload-confirm-B6FbGHh7.js

js novema.jp collected 2026-10-02 07:26:52 UTC 946 bytes, 1 lines download raw bytes

1(()=>{if(window.beforeunloadConfirm)return;let a=!1;const t="beforeunload-confirm",d="ページを離れると編集中の内容が失われます。よろしいですか?",i=()=>a,s=()=>{a=!0},o=()=>{a=!1},r=e=>{e.target.matches(".".concat(t," input, .").concat(t," select, .").concat(t," textarea"))&&s()};document.addEventListener("keyup",r),document.addEventListener("change",r),document.addEventListener("paste",r),document.addEventListener("click",e=>{const n=e.target;n.tagName==="A"&&n.hasAttribute("href")&&n.getAttribute("href")!=="#"&&n.getAttribute("target")!=="_blank"&&i()&&!confirm(d)&&e.preventDefault()}),document.addEventListener("submit",e=>{e.target.tagName==="FORM"&&i()&&!confirm(d)&&e.preventDefault()}),document.addEventListener("click",e=>{e.target.matches(".".concat(t," input[type=submit], .").concat(t," button[type=submit]"))&&o()}),window.beforeunloadConfirm={isChanged:i,setChangedFlag:s,resetChangedFlag:o}})();

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.