PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.8.7
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.8.7
2.9.1 2.9.0 2.8.9 2.8.8 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 2.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7
mystickymenu / js / mystickymenu.min.js
mystickymenu / js Last commit date
morphext 2 years ago detectmobilebrowser.min.js 8 months ago iris-script.min.js 8 months ago jquery.email-autocomplete.min.js 8 months ago jquery.star-rating-svg.min.js 3 years ago mailcheck.min.js 8 months ago mystickymenu-admin.min.js 8 months ago mystickymenu.min.js 8 months ago select2.min.js 2 years ago slick.min.js 2 years ago welcomebar-front.min.js 8 months ago
mystickymenu.min.js
5 lines
1 /*!
2 * myStickymenu by m.r.d.a
3 * v2.0.4
4 */
5 !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())}})}();