芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/ycreate.jp/wp-content/themes/snow-monkey/assets/js/footer-sticky-nav.js
(()=>{"use strict";const e=function(e,t){var n;try{n=new CustomEvent(t)}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,null)}e.dispatchEvent(n)};var t,n=window.innerWidth,i=window.innerHeight;t="inc2734/dispatch-custom-resize-event/dispatch",Boolean(sessionStorage.getItem(t))||window.addEventListener("resize",(function(){window.innerWidth!==n?(e(window,"resize:width"),n=window.innerWidth,i=window.innerHeight):function(){if(e(window,"resize:height"),window.innerHeight===i)e(window,"resize:height:undo");else{e(window,"resize:height:update");var t=/iP(hone|(o|a)d)/.test(navigator.userAgent);49
2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];try{n=new CustomEvent(t,{bubbles:o,cancelable:r,detail:i})}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent(t,o,r,i)}e.dispatchEvent(n)},r={},a=e=>o(e,"initFooterStickyNav");document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("footer-sticky-nav");if(!e)return;const t=e.getElementsByTagName("a");var n,i;i=e=>{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e.hostname)return;const n=window.location;t.home_url=t.home_url||`${n.protocol}//${n.host}`;const i=(e=>{if(r[e])return r[e];const t=document.createElement("a");return t.setAttribute("href",e),r[e]=t,t})(t.home_url),o=e.pathname.replace(/\/$/,""),a=e.href.replace(/\/$/,"")+"/",s=n.href.replace(/\/$/,"")+"/",d=n.pathname.replace(/\/$/,""),c=o.replace(new RegExp(`^${i.pathname}`),""),h=s===a,u=0===s.indexOf(a)&&1
a(e)),!1);const s=document.getElementById("page-end");if(s&&"undefined"!=typeof IntersectionObserver){const t=()=>{a(e);let t=!1;new IntersectionObserver((n=>{n.forEach((n=>{const i=e.getAttribute("aria-hidden");n.isIntersecting?(t=!0,"true"!==i&&(e.setAttribute("aria-hidden","true"),o(e,"initFooterStickyNav"))):t&&"false"!==i&&(e.setAttribute("aria-hidden","false"),o(e,"initFooterStickyNav"))}))}),{root:null,rootMargin:"0px",threshold:0}).observe(s)};window.addEventListener("load",t,!1)}}),!1)})();