PageSourceSearch

https://rotail.es/wp-content/themes/trinity-core/dist/script-page.min.js?ver=1790856902

js rotail.es collected 2026-10-06 09:51:20 UTC 15,970 bytes, 2 lines download raw bytes

1!function(){"use strict";function e(e){let t,n=e[0],l=1;for(;l<e.length;){const o=e[l],i=e[l+1];if(l+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}const t=(e,t=!0,n=null,l="afterbegin")=>{const o=n||'<svg class="menu-item-has-children__subnav-arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 24" height="20"><path d="m0,0h24v24H0V0Z" fill="none"/><path d="M6.2,16.7l5.8-5.8l5.8,5.8l1.8-1.8L12,7.3l-7.6,7.6L6.2,16.7z"/></svg>',i=document.querySelectorAll(e);for(const a of i)a.insertAdjacentHTML(l,o),t&&a.firstElementChild.addEventListener("click",(function(){this.parentElement.classList.toggle("sub-nav--open")}))};function n(){let e=function(e){let t,n=e[0],l=1;for(;l<e.length;){const o=e[l],i=e[l+1];if(l+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}([document,"access",e=>e.querySelector,"call",e=>e(".cm4all-theme-header"),"optionalAccess",e=>e.offsetHeight]);const t=document.querySelector(".cm4all-theme-navigation-mobile-drawer"),n=document.querySelector(".cm4all-theme-navigation-mobile-drawer__menu");document.body.classList.contains("admin-bar")&&(e+=32),t&&(t.style.paddingTop=`${e}px`),n&&(n.style.height=`calc(100vh - ${e}px)`)}function l(e){let t,n=e[0],l=1;for(;l<e.length;){const o=e[l],i=e[l+1];if(l+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function o(e){const t=e||i(),n=window.getComputedStyle(document.body),o=n.getPropertyValue("--cm4all-theme-header-position").trim()||"absolute",c=n.getPropertyValue("--cm4all-theme-logo-size").trim()||100,s=n.getPropertyValue("--cm4all-theme-desktop-navigation-width").trim()||"full-width",r=n.getPropertyValue("--cm4all-theme-navigation-hamburger-display").trim()||"none",m=n.getPropertyValue("--cm4all-theme-navigation-visibility").trim()||"visible",d=n.getPropertyValue("--cm4all-theme-navigation-visible").trim()||"none",u=n.getPropertyValue("--cm4all-theme-navigation-scrolling").trim()||"sticky",g=n.getPropertyValue("--cm4all-theme-group-logo-and-navigation").trim()||"yes",h=document.querySelector(".cm4all-theme-header"),p=n.getPropertyValue(`--cm4all-theme-${t}-logo-navigation-presets`).trim()||"logo-left-navigation-right",v=document.querySelectorAll(".cm4all-theme-navigation-main__menu > ul"),f=document.querySelectorAll(".cm4all-theme-navigation-main__menu > ul > li"),y=document.querySelector(".cm4all-theme-header-container .custom-logo");if(y&&y.src){if("logo-center-navigtaion-split"!==p&&"logo-center-navigtaion-split-ote"!==p||1!==v.length){if("logo-center-navigtaion-split"!==p&&"logo-center-navigtaion-split-ote"!==p&&v.length>1){const e=document.createElement("div"),t=document.createElement("ul"),n=document.querySelectorAll(".cm4all-theme-navigation-main > nav > ul"),l=document.querySelector(".split-menu-logo > a"),o=document.querySelector(".split-menu-logo"),i=document.querySelector(".cm4all-theme-logo-navigation-group"),a=["split-menu-first","split-menu-second"];for(const c of a)for(const e of document.querySelectorAll("."+c+" > li"))t.innerHTML+=e.outerHTML;e.classList.add("cm4all-theme-logo-main"),e.appendChild(l),i.insertBefore(e,i.firstChild),t.setAttribute("id","menu-main-menu");for(const c of n)c.parentNode.removeChild(c);o.parentNode.removeChild(o),document.querySelector(".cm4all-theme-navigation-main > nav").appendChild(t)}}else if(f.length){const e=document.createElement("ul"),t=document.createElement("div"),n=document.createElement("ul"),l=[...v];e.classList.add("split-menu-first"),t.classList.add("split-menu-logo"),n.classList.add("split-menu-second"),l[0].parentNode.removeChild(l[0]);for(let c=0;c<Math.ceil(f.length/2);c++)e.innerHTML+=f[c].outerHTML;for(let c=Math.ceil(f.length/2);c<f.length;c++)n.innerHTML+=f[c].outerHTML;const o=document.querySelector(".cm4all-theme-logo-navigation-group > .cm4all-theme-logo-main");t.innerHTML=o.innerHTML,o.parentNode.removeChild(o);const i=[e,t,n],a=document.querySelector(".cm4all-theme-navigation-main > nav");for(const c of i)a.appendChild(c)}const e=document.querySelector(".cm4all-theme-header-container .cm4all-theme-logo-main"),t=document.querySelector(".cm4all-theme-header-container .split-menu-logo");e&&(e.style.width=c/100*parseInt(y.attributes.width.value)+"px",e.style.maxHeight=c/100*parseInt(y.attributes.height.value)+"px"),t&&(t.style.width=c/100*parseInt(y.attributes.width.value)+"px",t.style.maxHeight=c/100*parseInt(y.attributes.height.value)+"px")}const w=document.querySelectorAll(".cm4all-theme-header ul > li.current-menu-item");if(w&&w.length>2){const e=[];for(const t of w)for(const n of t.children)"A"===n.tagName&&(n.hash?t.classList.remove("current-menu-item"):(e.push(n),n.addEventListener("click",(function(e){e.preventDefault();const t=window.location.toString();if(t.indexOf("#")>0){const e=t.substring(0,t.indexOf("#"));window.history.replaceState({},document.title,e)}window.scrollTo(0,0)}))));b=e,window.addEventListener("scroll",(function(){if(0===(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop))for(const e of b){for(const t of e.parentElement.parentElement.children)t.classList.remove("current-menu-item");e.parentElement.classList.add("current-menu-item")}}))}var b;if(document.querySelectorAll(".cm4all-theme-navigation-mobile-drawer--open")){const e=document.querySelectorAll(".cm4all-theme-navigation-mobile-drawer__menu li > a");for(const t of e)t.addEventListener("click",(function(){document.querySelectorAll(".cm4all-theme-hamburger.cm4all-theme-js-hamburger.cm4all-theme-hamburger--collapse.cm4all-theme-hamburger--active")[0].click()}))}const L=document.querySelectorAll("nav > ul > li a"),S=new IntersectionObserver((e=>{for(const t of e)if(t.isIntersecting){const e=[...L];for(const t of L)t.parentElement.classList.contains("current-menu-item")&&t.parentElement.classList.remove("current-menu-item");const n=e.filter((e=>l([e,"optionalAccess",e=>e.hash,"access",e=>e.replaceAll,"call",e=>
1e("#","")])===l([t,"optionalAccess",e=>e.target,"optionalAccess",e=>e.id])));for(const t of n)t.parentElement.classList.add("current-menu-item")}}),{root:null,rootMargin:"0px",threshold:.7});for(const i of L)if(l([i,"optionalAccess",e=>e.hash])){let e;try{e=document.querySelector(i.hash)}catch(C){}e&&S.observe(e)}const x=document.querySelectorAll("header:first-child")[0],A=document.getElementsByClassName("cm4all-theme-content")[0],q=x.offsetHeight,E=q<=104?80:q;if("flex"===d&&"sticky"===u&&"sticky"===o?A.style.marginTop=E+"px":(A.style.marginTop="0",window.onscroll=function(){!function(e,t){window.scrollY>=e?t.classList.add("scrolltrigger"):t.classList.remove("scrolltrigger")}(E,x)}),a(),void 0===window.parent.wpWidgets)h.classList.replace("cm4all-theme-header-position--"+("absolute"===o?"sticky":"absolute"),`cm4all-theme-header-position--${o}`),h.classList.replace("cm4all-theme-header--"+("full-width"===s?"wide-width":"full-width"),`cm4all-theme-header--${s}`),h.classList.replace("cm4all-theme-navigation-hamburger-display--"+("none"===r?"flex":"none"),`cm4all-theme-navigation-hamburger-display--${r}`),h.classList.replace("cm4all-theme-navigation-visibility--"+("visible"===m?"hidden":"visible"),`cm4all-theme-navigation-visibility--${m}`),h.classList.replace("cm4all-theme-navigation-scrolling--"+("sticky"===u?"scroll":"sticky"),`cm4all-theme-navigation-scrolling--${u}`),h.classList.replace("cm4all-theme-group-logo-and-navigation--"+("yes"===g?"no":"yes"),`cm4all-theme-group-logo-and-navigation--${g}`)}function i(){const e=[{name:"desktop",viewportMin:1025,viewportMax:6e3},{name:"tablet-landscape",viewportMin:768,viewportMax:1024},{name:"tablet",viewportMin:576,viewportMax:767},{name:"mobile",viewportMin:1,viewportMax:575}],t=window.innerWidth;for(const n of e)if(t>=n.viewportMin&&t<=n.viewportMax)return n.name}function a(){const e=document.querySelectorAll(".cm4all-theme-navigation-main__menu > ul > li > .sub-menu");for(const n of e)n.classList.remove("cm4all-theme-navigation__sub-menu--left"),console.log(n.querySelector("li > a").textContent+": "+n.getBoundingClientRect().right),window.innerWidth-(n.getBoundingClientRect().right+16)<0&&n.classList.add("cm4all-theme-navigation__sub-menu--left");const t=document.querySelectorAll(".cm4all-theme-navigation-main__menu > ul > li > .sub-menu .sub-menu");for(const n of t)window.innerWidth-n.getBoundingClientRect().right<0&&n.classList.add("float-left")}let c;function s(){const e=[{selector:"navigation-position-horizontal",regex:/cm4all-navigation-position-horizontal[^\s]+/,default:"flex-start"},{selector:"navigation-position-vertical",regex:/cm4all-navigation-position-vertical[^\s]+/,default:"flex-start"},{selector:"logo-position-horizontal",regex:/cm4all-navigation-logo-horizontal[^\s]+/,default:"left"},{selector:"logo-position-vertical",regex:/cm4all-navigation-logo-vertical[^\s]+/,default:"top"}],t=window.getComputedStyle(document.body),n=document.querySelector(".cm4all-theme-header");for(const l of e)m(t,n,l,l.selector,"cm4all")}function r(e){const t=[{selector:"desktop-logo-navigation-presets",regex:/cm4all-theme-[^\s]+-logo-navigation-presets[\S]+[^"]/g,default:"logo-left-navigation-right"},{selector:"tablet-landscape-logo-navigation-presets",regex:/cm4all-theme-[^\s]+-logo-navigation-presets[\S]+[^"]/g,default:"logo-left-navigation-right"},{selector:"tablet-logo-navigation-presets",regex:/cm4all-theme-[^\s]+-logo-navigation-presets[\S]+[^"]/g,default:"logo-left-navigation-right"},{selector:"mobile-logo-navigation-presets",regex:/cm4all-theme-[^\s]+-logo-navigation-presets[\S]+[^"]/g,default:"logo-left-navigation-right"}],n=window.getComputedStyle(document.body),l=document.querySelector(".cm4all-theme-header"),a=e||i(),c=`${a}-logo-navigation-presets`,s=new RegExp(c);for(const o of t)o.selector.match(s)&&m(n,l,o,c,"cm4all-theme");o(a),l.classList.remove("cm4all-theme-header-hidden")}function m(e,t,n,l,o){const i=e.getPropertyValue(`--cm4all-theme-${n.selector}`).trim().replace(/['"]+/g,"");t.className=t.className.replace(n.regex,""),t.classList.add(`${o}-${l}--${i||n.default}`)}function d(){const e=window.getComputedStyle(document.body).getPropertyValue("--cm4all-theme-navigation-transition").trim(),t=document.querySelector(".cm4all-theme-header");if(t){const n=t.className.match(/cm4all-navigation-transition[^\s]+/);if(n&&1===n.length&&t.classList.remove(n),t.classList.add(`cm4all-navigation-transition--${e}`),"box"===e){const e=document.querySelectorAll(".cm4all-theme-navigation-main__menu > ul");for(const t of e){const e=t.childNodes,n=document.createElement("div");n.classList.add("cm4all-theme-navigation__background-slider"),t.appendChild(n);for(const l of e)l.addEventListener("mouseenter",(()=>{n.style.width=`${l.offsetWidth}px`,n.style.height=`${l.offsetHeight}px`,n.style.transform=`translateY(${l.getBoundingClientRect().top-t.getBoundingClientRect().top}px)`,n.style.transform+=`translateX(${l.getBoundingClientRect().left-t.getBoundingClientRect().left}px)`}))}}const l=document.querySelectorAll(".cm4all-theme-navigation-main__menu > ul > li.menu-item-has-children"),o=(e,t,n,l)=>{if(""!==l)for(const o of document.querySelectorAll(`#${l} li`))e?(o.style.transitionDelay=`${t}s`,t+=n):o.style.transitionDelay="0s"};for(let e=0;e<l.length;e++)l[e].addEventListener("mouseenter",o.bind(null,!0,.05,.05,l[e].id)),l[e].addEventListener("mouseleave",o.bind(null,!1,.05,.05,l[e].id))}}function u(e,t){return null!=e?e:t()}function g(e){let t,n=e[0],l=1;for(;l<e.length;){const o=e[l],i=e[l+1];if(l+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}window.addEventListener("load",(function(){window.setTimeout((function(){}),5e3);/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&window.innerWidth<=1080&&document.querySelector("body").classList.add("cm4all-device-ipad")})),window.onresize=function(){clearTimeout(c),c=setTimeout((function(){a(),o()}),200)},document.documentElement.addEventListener("cm4all-theme-settings",(()=>{o()})),document.documentElement.addEventListener("cm4all-theme-settings",(()=>{d()}));const h=(e=0,t=500)=>{const n=u(window.scrollY,(()=>window.pageYOffset)),l=.5*(n+(n+e)),o=n-l;let i=null;const a=e=>{i??=e;let n=(e-i)/t;n>1&&(n=1),scrollTo(0,l+o*Math.cos(n*Math.PI)),n<1&&requestAnimationFrame(a)};requestAnimationFrame(a)};"scrollBehavior"in document.documentElement.style||setTimeout((()=>{const e=document.querySelectorAll(".cm4all-theme-page-container a");for(const t of e)t.addEventListener("click",(e=>{if(e.target.hash){const t=u(g([document,"access",e=>e.querySelector,"call",t=>t(e.target.hash),"optionalAccess",e=>e.getBoundingClientRect,"call",e=>e(),"access",e=>e.top]),(()=>0));h(t)}}))}),0),document.addEventListener("DOMContentLoaded",(()=>{!function(){const t=document.querySelector(".cm4all-theme-js-hamburger");e([t,"optionalAccess",e=>e.addEventListener,"call",n=>n("click",(()=>{document.body.classList.toggle("cm4all-theme-navigation-mobile-drawer-fixed-body"),t.classList.toggle("cm4all-theme-hamburger--active"),e([document,"access",e=>e.querySelector,"call",e=>e(".cm4all-theme-navigation-mobile-drawer"),"optionalAccess",e=>e.classList,"access",e=>e.toggle,"call",e=>e("cm4all-theme-navigation-mobile-drawer--open")])}))])}(),n(),s(),r(),o(),d(),t(".cm4all-theme-navigation-mobile-drawer__menu  .menu-item-has-children",!0),t(".cm4all-theme-navigation--desktop .menu-item-has-children > a",!1,null,"beforeend"),window.onload=()=>{document.body.classList.contains("cm4all-theme-stop-transition")&&document.body.classList.remove("cm4all-theme-stop-transition")},function(){const e=new IntersectionObserver((e=>e.filter((e=>
1e.isIntersecting)).forEach((e=>e.target.classList.add("cm4all-theme-fadeIn--visible")))));document.querySelectorAll(".cm4all-theme-js-fadeIn").forEach((t=>e.observe(t)))}(),window.top.addEventListener("resize",(function(){n(),r()})),document.documentElement.addEventListener("cm4all-theme-settings",(()=>{s(),r()})),(()=>{const e=document.querySelectorAll(".cm4all-navigation-transition--box .cm4all-theme-navigation--desktop li .menu-item-has-children > a > svg"),t=document.createElement("style");e.forEach(((e,n)=>{const l=e.parentNode.parentNode,o=l.querySelector("ul.sub-menu"),i=o.scrollWidth;o.style.width="0px";const a="cm4all-roundedbox-height-"+n;l.setAttribute("id",a),t.innerHTML+=`\n        #${a}{\n            .cm4all-theme-navigation-sub-navigation--open ul.sub-menu {\n                height: ${o.scrollHeight}px;\n                width: ${i}px !important;\n            }\n        }\n        `,e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),l.classList.toggle("cm4all-theme-navigation-sub-navigation--open"),o.style.width=i+"px"})),l.querySelector(".current_page_item")||l.classList.contains("current_page_item")?(l.classList.add("cm4all-theme-navigation-sub-navigation--open"),o.style.width=i+"px"):l.parentElement.parentElement.addEventListener("mouseleave",(()=>{l.classList.remove("cm4all-theme-navigation-sub-navigation--open"),o.style.width="0px"}))})),document.head.appendChild(t)})()})),function(e){let t,n=e[0],l=1;for(;l<e.length;){const o=e[l],i=e[l+1];if(l+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}([window,"access",e=>e.top,"access",e=>e.wp,"optionalAccess",e=>e.customize])&&window.top.wp.customize.previewedDevice.bind((function(e){r(e)}))}();
2//# sourceMappingURL=script-page.min.js.map

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.