PageSourceSearch

https://wpaccessibility.day/2026/wp-content/plugins/accessibility-…bility-new-window-warnings-min.js?ver=1.3.1

js wpaccessibility.day collected 2026-10-02 03:22:16 UTC 3,450 bytes, 1 lines download raw bytes

1(()=>{"use strict";const e=window.edac_frontend_fixes?.new_window_warning?.classPrefix||window.anww_localized?.classPrefix||"edac-nww",t=window.edac_frontend_fixes?.new_window_warning?.localizedString||window.anww_localized?.localizedString||"opens a new window",n=`${e}-external-link-icon`;let o,i;const d=()=>{o=document.createElement("div"),o.setAttribute("role","tooltip"),o.classList.add(`${e}-tooltip`),Object.assign(o.style,{position:"absolute",background:"white",color:"#1e1e1e",fontSize:"16px",border:"1px solid black",padding:"5px 10px",zIndex:9999,display:"none",pointerEvents:"auto",boxShadow:"0px 4px 6px rgba(0,0,0,0.1)",maxWidth:"200px",whiteSpace:"normal"}),document.body.appendChild(o),document.addEventListener("click",t=>{t.target.closest(`.${e}-tooltip, a[target='_blank']`)||u()}),document.addEventListener("keydown",e=>{"Escape"===e.key&&u()}),o.addEventListener("mouseenter",()=>{clearTimeout(i)}),o.addEventListener("mouseleave",()=>{u()})},a=()=>{document.querySelectorAll("a:not([data-nww-processed])").forEach(e=>{const t=e.getAttribute("onclick");if("_blank"===e.getAttribute("target"))return e.closest(".anww-no-icon, .edac-nww-no-icon")||r(e),s(e),e.closest(".anww-no-tooltip, .edac-nww-no-tooltip")||l(e),void e.setAttribute("data-nww-processed","true");if(t&&t.includes("window.open")){const n=t.match(/window\.open\([^,]+,\s*['"]([^'"]+)['"]/),o=n?n[1]:"";"_blank"!==o&&""!==o||(e.closest(".anww-no-icon, .edac-nww-no-icon")||r(e),s(e),e.closest(".anww-no-tooltip, .edac-nww-no-tooltip")||l(e),e.setAttribute("data-nww-processed","true"))}})},r=e=>{const t=e.querySelector("h1, h2, h3, h4, h5, h6");if(t)return void t.insertAdjacentHTML("beforeend",`<i class="${n}" aria-hidden="true"></i>`);const o=e.querySelector(".elementor-button-content-wrapper");o?o.insertAdjacentHTML("beforeend",`<i class="${n} elementor-button-link-content" aria-hidden="true"></i>`):e.insertAdjacentHTML("beforeend",`<i class="${n}" aria-hidden="true"></i>`)},s=e=>{let n="";n=e.hasAttribute("aria-label")?e.getAttribute("aria-label"):(e=>{const t=[],n=e=>{if(e.nodeType===Node.TEXT_NODE){const n=e.textContent.trim();n&&t.push(n)}else if(e.nodeType===Node.ELEMENT_NODE){if("true"===e.getAttribute("aria-hidden"))return;if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label").trim();return void(n&&t.push(n))}if("IMG"===e.nodeName){const n=e.getAttribute("role");if(!n||!n.split(/\s+/).includes("presentation")&&!n.split(/\s+/).includes("none")){const n=(e.getAttribute("alt")||"").trim();n&&t.push(n)}}else e.childNodes.forEach(n)}};return e.childNodes.forEach(n),t.join(" ").replace(/\s+/g," ").trim()})(e),n=n?`${n}, ${t}`:t,e.setAttribute("aria-label",n)},l=e=>{e.addEventListener("mouseenter",t=>{c(e,t.pageX,t.pageY)}),e.addEventListener("focusin",()=>{const t=e.getBoundingClientRect();c(e,t.left+window.scrollX,t.top+t.height+window.scrollY)}),e.addEventListener("mouseleave",w),e.addEventListener("focusout",w)},c=(e,n,d)=>{clearTimeout(i),o.textContent=t,o.style.display="block";const a=o.offsetWidth,r=o.offsetHeight;n+a+10>window.innerWidth&&(n-=a+20),d+r+10>window.innerHeight+window.scrollY&&(d-=r+20),o.style.top=`${d+10}px`,o.style.left=`${n+10}px`},w=()=>{i=setTimeout(u,300)},u=()=>{o.style.display="none"},p=()=>{d(),a(),document.addEventListener("facetwp-loaded",a),document.addEventListener("edbs:table-rendered",a),document.addEventListener("gform/post_render",a)};window.addEventListener("load",p)})();

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.