Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/code4rest-pro/dist/elements/code4rest-pro-sticky.min.js
Ðазад
!function(){"use strict";window.code4restProSticky={getOffset:function(t){if(t instanceof HTMLElement){var e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}}return{top:null,left:null}},stickHeadItem:function(t){var e=parseInt(window.code4restProSticky.getOffset(document.getElementById("wrapper")).top),i=parseInt(window.code4restProSticky.getOffset(t).top),s=function(s){var o=t.parentNode;o.style.height=t.offsetHeight+"px",Math.max(0,window.scrollY)===Math.floor(i-e)?(t.style.top=e+"px",t.classList.add("item-is-fixed"),t.classList.add("item-at-start"),t.classList.remove("item-is-stuck"),o.classList.add("child-is-fixed")):Math.max(0,window.scrollY)>Math.floor(i-e)?(t.style.top=e+"px",t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start"),o.classList.add("child-is-fixed")):t.classList.contains("item-is-fixed")&&(t.classList.remove("item-is-fixed"),t.classList.remove("item-at-start"),t.classList.remove("item-is-stuck"),t.style.height=null,t.style.top=null,o.classList.remove("child-is-fixed"))};window.addEventListener("resize",s,!1),window.addEventListener("scroll",s,!1),window.addEventListener("load",s,!1),window.addEventListener("code4rest-update-sticky",s,!1),s()},stickTransHeadItem:function(t){var e=window.code4restProSticky.getOffset(document.body).top,i=window.code4restProSticky.getOffset(t).top,s=function(s){var o=t.parentNode;o.style.height=t.offsetHeight+"px",Math.max(0,window.scrollY)===Math.floor(i-e)?(t.style.top=e+"px",t.classList.add("item-is-fixed"),t.classList.add("item-at-start"),t.classList.remove("item-is-stuck"),o.classList.add("child-is-fixed")):Math.max(0,window.scrollY)>Math.floor(i-e)?(t.style.top=e+"px",t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start"),o.classList.add("child-is-fixed")):t.classList.contains("item-is-fixed")&&(t.classList.remove("item-is-fixed"),t.classList.remove("item-at-start"),t.classList.remove("item-is-stuck"),t.style.height=null,t.style.top=null,o.classList.remove("child-is-fixed"))};window.addEventListener("resize",s,!1),window.addEventListener("scroll",s,!1),window.addEventListener("load",s,!1),window.addEventListener("code4rest-update-sticky",s,!1),s()},stickScrollItem:function(t){var e=function(e){var i=window.code4restProSticky.getOffset(document.getElementById("wrapper")).top,s=t.getAttribute("data-scroll-offset");window.scrollY>=s?(t.style.top=i+"px",t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start")):t.classList.contains("item-is-fixed")&&(t.classList.remove("item-is-fixed"),t.classList.remove("item-at-start"),t.classList.remove("item-is-stuck"),t.style.height=null,t.style.top=null)};window.addEventListener("resize",e,!1),window.addEventListener("scroll",e,!1),window.addEventListener("load",e,!1),e()},stickScrollFooterItem:function(t){var e=function(e){var i=parseInt(t.getAttribute("data-scroll-offset"));window.scrollY>=i?(t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start")):t.classList.contains("item-is-fixed")&&(t.classList.remove("item-is-fixed"),t.classList.remove("item-at-start"),t.classList.remove("item-is-stuck"))};window.addEventListener("resize",e,!1),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("load",e,!1),e()},stickScrollFooterItemSpace:function(t){var e=function(e){t.parentNode.style.height=t.offsetHeight+"px";var i=parseInt(t.getAttribute("data-scroll-offset"));window.scrollY>=i?(t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start")):t.classList.contains("item-is-fixed")&&(t.classList.remove("item-is-fixed"),t.classList.remove("item-at-start"),t.classList.remove("item-is-stuck"))};window.addEventListener("resize",e,!1),window.addEventListener("scroll",e,!1),window.addEventListener("load",e,!1),e()},stickFootItem:function(t){var e=function(e){t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start")};window.addEventListener("resize",e,!1),e()},stickFootItemBelow:function(t){var e=function(e){t.parentNode.style.height=t.offsetHeight+"px",t.classList.add("item-is-fixed"),t.classList.add("item-is-stuck"),t.classList.remove("item-at-start")};window.addEventListener("resize",e,!1),e()},initStickyHeadItems:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-above");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickHeadItem(t[e])},initStickyHeadTransItems:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-above-trans");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickTransHeadItem(t[e])},initStickyScrollItems:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-on-scroll");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickScrollItem(t[e])},initStickyScrollFooterItems:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-on-scroll-footer");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickScrollFooterItem(t[e])},initStickyScrollFooterItemsSpace:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-on-scroll-footer-space");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickScrollFooterItemSpace(t[e])},initStickyFootItems:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-below");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickFootItemBelow(t[e])},initStickyFootOnItems:function(){var t=document.querySelectorAll(".code4rest-pro-fixed-bottom");if(t.length)for(let e=0;e<t.length;e++)window.code4restProSticky.stickFootItem(t[e])},init:function(){window.code4restProSticky.initStickyHeadItems(),window.code4restProSticky.initStickyHeadTransItems(),window.code4restProSticky.initStickyScrollItems(),window.code4restProSticky.initStickyScrollFooterItems(),window.code4restProSticky.initStickyFootItems(),window.code4restProSticky.initStickyFootOnItems(),window.code4restProSticky.initStickyScrollFooterItemsSpace()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.code4restProSticky.init):window.code4restProSticky.init()}();
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка