PageSourceSearch

https://nimbus.ca/wp-content/plugins/accessibility-plus/lite/frontend/assets/js/script.min.js?ver=2.2.1

js nimbus.ca collected 2026-10-02 03:09:30 UTC 6,930 bytes, 1 lines download raw bytes

1const langAndDirFixes=(()=>{const t=window._wyA11yConfig?.fixes?.langDir||{status:!1};if(!t.status)return;const e=document.querySelector("html"),i=e.getAttribute("lang"),n=e.getAttribute("dir");t.language&&!i&&e.setAttribute("lang",t.language),t.direction&&!n&&e.setAttribute("dir",t.direction)})(),metaViewportScalableFixes=(()=>{if(!(window._wyA11yConfig?.fixes?.metaViewportScale||{status:!1}).status)return;const t=document.querySelectorAll('meta[name="viewport"]');if(t.length>1)for(let e=1;e<t.length;e++)t[e].remove();const e=t[0];if(e){const t=e.getAttribute("content")||"";if((t=>!(!t||!t.match(/user\-scalable\s*=\s*(no|0)\b/i)&&!t.match(/maximum\-scale\s*=\s*1\.?0*\b/i)))(t)){const i=(t=>{if(!t)return"width=device-width, initial-scale=1";const e=t.split(",").map(t=>t.trim()).filter(t=>!t.match(/user\-scalable\s*=\s*(no|0)\b/i)&&!t.match(/maximum\-scale\s*=\s*1\.?0*\b/i));return e.some(t=>t.startsWith("width="))||e.push("width=device-width"),e.some(t=>t.startsWith("initial-scale="))||e.push("initial-scale=1"),e.join(", ")})(t);i!==t&&e.setAttribute("content",i)}}else{const t=document.createElement("meta");t.name="viewport",t.content="width=device-width, initial-scale=1",document.head.firstChild?document.head.insertBefore(t,document.head.firstChild):document.head.appendChild(t)}})(),preventLinksOpeningNewWindows=void((window._wyA11yConfig?.fixes?.removeTargetBlank||{status:!1}).status&&document.querySelectorAll('a[target="_blank"]:not(.wya11y-allow-open-new-tab)').forEach(t=>{t.closest(".wya11y-allow-open-new-tab")||(t.removeAttribute("target"),t.classList.add("wya11y-target-blank-removed"))})),newWindowWarning=(()=>{if(!(window._wyA11yConfig?.fixes?.addTargetBlankLabel||{status:!1}).status)return;document.querySelectorAll("a[target='_blank']").forEach(t=>{t.classList.add("wya11y-allow-open-new-tab"),(t=>{t.querySelector(".wya11y-nww-external-link-icon")||(t.insertAdjacentHTML("beforeend",'<span class="wya11y-nww-external-link-icon" aria-hidden="true"> ↗️</span>'),t.setAttribute("aria-label",`${t.getAttribute("aria-label")||""} opens a new window`))})(t)})})(),removeTitleIfPreferredAccessibleName=(()=>{if(!(window._wyA11yConfig?.fixes?.removeTitleIfAccessibleName||{status:!1}).status)return;const t=t=>{t.classList.add("wya11y-title-removed"),t.removeAttribute("title")},e=t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("aria-labelledby");return!(!e||""===e.trim())||!(!i||""===i.trim())};document.querySelectorAll("img[title], a[title], input[title], textarea[title], select[title], button[title]").forEach(i=>{const n=i.getAttribute("title");if(null==n)return;if("true"===i.getAttribute("aria-hidden"))return void t(i);const r=i.tagName.toLowerCase();"img"===r?(e=>{const i=e.getAttribute("alt"),n=e.getAttribute("title");i&&""!==i.trim()||null!=n&&e.setAttribute("alt",n.trim()||""),t(e)})(i):["a","button"].includes(r)?(i=>{const n=i.innerText,r=i.getAttribute("title");n&&""!==n.trim()||e(i)||null!=r&&i.setAttribute("aria-label",r.trim()||""),t(i)})(i):["input","textarea","select"].includes(r)&&(i=>{if(e(i))return void t(i);const n=i.labels?.[0]?.innerText,r=i.closest("label")?.innerText,o=i.getAttribute("title");n&&""!==n.trim()||r&&""!==r.trim()||null!=o&&i.setAttribute("aria-label",o.trim()||""),t(i)})(i)})})(),skipLink=(()=>{if(!(window._wyA11yConfig?.fixes?.enableSkipLink||{status:!1}).status)return;const t=document.getElementById("wya11y-skip-link-template");if(!t)return;if(!window._wyA11yConfig?.fixes?.enableSkipLink?.targets)return;const e=(()=>{const t=document.querySelector('a#wp-skip-link.skip-link[href="#wp--skip-link--target"]:not(.ab-item)')||document.querySelector('a.skip-link[href^="#"]:not(.ab-item)');if(t){const e=t.getAttribute("href");if(e&&e.startsWith("#")){const t=e.slice(1).trim();return!!t&&!!document.getElementById(t)}}return!1})();if(e)return void t.remove();const i=window._wyA11yConfig.fixes.enableSkipLink.targets.split(",").map(t=>t.startsWith("#")?t:`#${t}`);let n=!1,r=!1;for(const t of i){const e=document.querySelector(t);if(e){n=e,r=t;break}}const o=t.content.cloneNode(!0);if(r){o.querySelector(".wya11y-skip-link-content").href=r;const t=document.querySelector(r);t&&(-1===t.tabIndex&&t.setAttribute("tabindex","0"),o.querySelector(".wya11y-skip-link-content")?.addEventListener("click",()=>{try{history.pushState({},"",r)}catch(t){console.error("Error updating history for skip link.")}t.focus()},{once:!0}))}else o.querySelector(".wya11y-skip-link-content").remove();document.body.prepend(o)})(),observeThemeSkipLink=(()=>
1{if(!(window._wyA11yConfig?.fixes?.enableSkipLink||{status:!1}).status)return;const t=()=>{const t=document.querySelector('a#wp-skip-link.skip-link[href="#wp--skip-link--target"]:not(.ab-item)')||document.querySelector('a.skip-link[href^="#"]:not(.ab-item)');if(!t)return!1;const e=t.getAttribute("href");if(!e||!e.startsWith("#"))return!1;const i=e.slice(1).trim();return!!i&&!!document.getElementById(i)},e=()=>{document.querySelectorAll("a.wya11y-skip-link-content").forEach(t=>{const e=t.parentElement;t.remove(),e&&0===e.childElementCount&&""===e.textContent.trim()&&e.remove()})};if(t())return void e();const i=new MutationObserver(()=>{t()&&(e(),i.disconnect())});i.observe(document.body,{childList:!0,subtree:!0})})(),tabIndexFixes=void((window._wyA11yConfig?.fixes?.removeTabIndex||{status:!1}).status&&(document.querySelectorAll("[tabindex]").forEach(t=>{"A"!==t.tagName||t.hasAttribute("href")&&"button"!==t.getAttribute("role")?"-1"!==t.getAttribute("tabindex")&&t.getAttribute("tabindex")>0&&(t.setAttribute("tabindex","0"),t.classList.add("wya11y-modified-focusable")):t.setAttribute("tabindex","0")}),document.querySelectorAll('div[role="button"]:not([tabindex]), a[role="button"]:not([tabindex]):not([href])').forEach(t=>{t.hasAttribute("tabindex")&&"-1"===t.getAttribute("tabindex")||(t.setAttribute("tabindex","0"),t.classList.add("wya11y-focusable-added"))}))),underlineLinks=(()=>{const t=window._wyA11yConfig?.fixes?.forceUnderlineOnLinks||{status:!1};t.status&&document.querySelectorAll(t.target).forEach(function(t){if(t.closest("nav")||t.closest('[role="navigation"]'))return;t.style.textDecoration="underline",t.setAttribute("data-original-outline",t.style.outlineWidth),t.setAttribute("data-original-offset",t.style.outlineOffset),t.setAttribute("data-original-color",t.style.outlineColor);const e=t.style.color;t.addEventListener("mouseenter",function(){t.style.textDecoration="none"}),t.addEventListener("mouseleave",function(){t.style.textDecoration="underline"}),t.addEventListener("focusin",function(){let i="2px";"2px"===t.style.outlineWidth&&(i="4px"),t.style.outlineWidth=i,t.style.outlineColor=e,t.style.outlineOffset="2px"}),t.addEventListener("focusout",function(){t.style.outlineWidth=t.getAttribute("data-original-outline"),t.style.outlineColor=t.getAttribute("data-original-color"),t.style.outlineOffset=t.getAttribute("data-original-offset")})})})();

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.