SHARE
TWEET

Thân

a guest Dec 27th, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <script>
  2.         //<![CDATA[
  3.         //
  4. var body=$("body"),header=$(".header"),wndo=$(window),doc=$(document),scrollBarTopPos=doc.scrollTop(),menuIcon=$(".menuIcon");function getAlabel(o){for(var e="",n=0;n<o.length;n++)if(!(0<=reservedLabels.indexOf(o[n].term))){e=o[n].term;break}return e}
  5. //nav
  6. Array.prototype.last=function(){return this[this.length-1]},$(function(){var e=$(".floatingNav__container"),n=$(".floatingNav"),r=$(".floatingNav__rep"),s=$(".body__overlay"),i=e.css("padding-top");i=i.substring(0,i.indexOf("p")),i=Number(i);var t=n.innerHeight(),a=header.innerHeight(),l=!0;function o(){var o=e.position().top+i;scrollBarTopPos<doc.scrollTop()?l=!0:scrollBarTopPos>doc.scrollTop()&&(l=!1),scrollBarTopPos=doc.scrollTop(),t=n.innerHeight()>t?n.innerHeight():t,a=header.innerHeight()>a?header.innerHeight():a,o<scrollBarTopPos&&!l||scrollBarTopPos>=o+n.innerHeight()&&l?(body.addClass("navFixedToTop"),r.css("height",t+"px"),header.css("min-height",a+"px"),l?n.css("top",-n.innerHeight()):n.css("top",0)):(body.removeClass("navFixedToTop"),n.css("top","initial"))}o(),wndo.on("scroll",o),
  7. //menu
  8. menuIcon.add(".body__overlay").on("click",function(o){$(".slidingSidebar__menuIcon").toggleClass("menuIcon_opened"),body.toggleClass("sidebarOpened"),
  9. //body overlay
  10. s.css("height",$(document).height()),s.toggleClass("body__overlay_show")})});
  11.  
  12.         //]]>
  13.     </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top