/*! * myStickymenu by m.r.d.a * v2.0.4 */ !function(){"use strict";jQuery(document).ready(function(e){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&1!=option.device_mobile)return!1;if(1!=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&1!=option.device_desktop)return!1;if(e(option.mystickyClass)[0]){var i,t=document.querySelector(option.mystickyClass),s=parseInt(option.disableWidth),o=parseInt(option.disableLargeWidth),n=option.mystickyTransition,d=parseInt(option.activationHeight),a=option.adminBar,r=option.mysticky_disable_down;C();for(var l=t.parentNode,c=document.createElement("div"),m=0,y=0;y=0&&"top"==m&&w){var L=y;g=0}else L="";if(i>=s&&(0==o||i<=o)){var C=x?window.scrollY:document.documentElement.scrollTop;if(0==document.documentElement.scrollTop&&h.classList.remove("wrapfixed"),0<=C){if(C>=b)C>=d&&t.classList.add("myfixed"),C>=d&&h.classList.add("wrapfixed"),C>=d&&(c.style.height=p+"px"),C>=d&&(t.style.width=v+"px"),"slide"==n&&("false"==r&&(h.style.top=C>=d+u-g?g+L+"px":"-"+u+"px"),p>u&&"false"==r&&(C=d+u&&(h.style.top=g+L+"px"))),h.classList.add("down"),h.classList.remove("up"),"on"==r&&(h.style.top="-"+(p+g)+"px",jQuery("#mysticky-nav "+option.mystickyClass+".elementor-sticky").hide());else{var E=x?window.scrollY:document.documentElement.scrollTop;!(E>k)&&(c.style.height=""),!(E>k)&&(t.style.width=""),"slide"==n?(!(E>k)&&t.classList.remove("myfixed"),!(E>k)&&h.classList.remove("wrapfixed"),"false"==r&&Ek)&&t.classList.remove("myfixed"),!(E>k)&&h.classList.remove("wrapfixed")),h.classList.remove("down"),h.classList.add("up"),"on"==r&&(h.style.top=g+L+"px",jQuery("#mysticky-nav "+option.mystickyClass).css("width",v+"px"),jQuery("#mysticky-nav "+option.mystickyClass+".elementor-sticky").show())}b=C}else h.classList.remove("up")}});var L=e(window).width();window.addEventListener("resize",A),window.addEventListener("orientationchange",A),1!=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&e("li.menu-item.menu-item-has-children").hover(function(){var i=window.innerHeight,t=e("#mysticky-wrap").outerHeight();i0&&(c.style.marginBottom=e(t).css("marginBottom")),"0"==p&&e(t).children().filter(":visible").each(function(){p=e(this).outerHeight(!0)})}function B(){t.classList.add("myfixed"),"0"==(u=e(".myfixed").outerHeight())&&e(".myfixed").children().filter(":visible").each(function(){u=e(this).outerHeight(!0)}),t.classList.remove("myfixed")}function P(){g="true"==a&&i>600&&e("#wpadminbar")[0]?e("#wpadminbar").height():0,h.style.top="slide"==n?"-"+u+"px":g+"px"}function H(){var i=e(t)[0].getBoundingClientRect();v=i.width}function S(){1==w&&("slide"==n&&(d=e(t).offset().top+p-g,k=e(t).offset().top+p-g,"on"==r&&(k=e(t).offset().top-g)),"fade"==n&&("false"==r&&(d=e(t).offset().top-g,k=e(t).offset().top-g),"on"==r&&(d=e(t).offset().top-g+p,k=e(t).offset().top-g)))}function I(){1==w&&p>u&&("slide"==n?(k=d,"on"==r&&(k=d-u)):(d=p,k=p))}function A(){e(window).width()!=L&&(h.classList.remove("up"),h.classList.remove("down"),e(".wrapfixed")[0]||(E(),t.style.removeProperty("width"),H()),C(),P(),B(),S(),I())}})}();