File: /home/nassaugo/public_html/wp-content/plugins/mystickymenu/js/mystickymenu.min.js
/*!
* 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<l.childNodes.length;y++)if(l.childNodes[y]==t){m=y;break}c.id="mysticky-wrap",c.appendChild(t),l.insertBefore(c,l.childNodes[m]);var p,u,f=t.parentNode,h=document.createElement("div");if(h.id="mysticky-nav",f.replaceChild(h,t),h.appendChild(t),"0"==d)var w=!0;E(),B();var v,g=0;P(),H();var k=d;S(),I();var x="scrollY"in window,b=0;document.addEventListener("scroll",function(a){var l=e(".mysticky-welcomebar-fixed").css("top"),m=e(".mysticky-welcomebar-fixed").data("position"),y=e(".mysticky-welcomebar-fixed").outerHeight(),f=e(".mysticky-welcomebar-fixed").length,w=e("body").hasClass("mysticky-welcomebar-apper");if(f&&parseInt(l)>=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="-"+p+"px"),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&&E<k+u+200-g&&(h.style.top="-"+u+"px")):(!(E>k)&&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();i<e(this).find("ul.sub-menu").outerHeight()&&(e(this).find("ul.sub-menu").addClass("stickymenu-item-height"),jQuery(this).find("ul.sub-menu.stickymenu-item-height").css({height:i-t+"px"}))},function(){e(this).find("ul.sub-menu.stickymenu-item-height").css({height:"unset"}),e(this).find("ul.sub-menu").removeClass("stickymenu-item-height")})}else console.log("myStickymenu: Entered Sticky Class does not exist, change it in Dashboard / Settings / myStickymenu / Sticky Class. ");function C(e){e=window;var t="inner";"innerWidth"in window||(t="client",e=document.documentElement||document.body),i=e[t+"Width"]}function E(){p=t.offsetHeight,parseInt(e(t).css("marginBottom"))>0&&(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())}})}();