Welcome to mirror list, hosted at ThFree Co, Russian Federation.

application.min.js « js « assets - github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcdb6ee1ca2ac06b9acb1e000d918ce9830b8864 (plain)
1
$(function(){$('[data-toggle="tooltip"]').tooltip(),"undefined"!=typeof $.fn.slimScroll&&$(".sidebar .slimContent").slimScroll({height:$(window).height(),color:"rgba(0,0,0,0.15)",size:"5px",position:"right"}),$("#collapseToc").on("shown.bs.collapse",function(){"undefined"!=typeof $.fn.slimScroll&&$(".sidebar .slimContent").slimScroll().on("slimscroll")}),$(".geopattern").each(function(){$(this).geopattern($(this).data("pattern-id"))});$("#nav-main").okayNav({swipe_enabled:!1});$("[data-stick-bottom]").keepInView({fixed:!1,parentClass:"has-sticky",customClass:"sticky",trigger:"bottom",zindex:42,edgeOffset:0}),$("[data-stick-top]").keepInView({fixed:!0,parentClass:"has-sticky",customClass:"sticky",trigger:"top",zindex:42,edgeOffset:0});var t=$("ul.main-nav").hasClass("menu-highlight");if(t){for(var e=location.pathname,i=$("ul.main-nav>li"),a=-1,s=0,n=i.length;s<n;s++){var o=$(i[s]).find("a").attr("href");(e.indexOf(o)>-1||"/"===e&&("/."===o||"/"===o||"index.html"===o||"/index.html"===o))&&(a=s),$(i[s]).removeClass("active")}i[a]&&$(i[a]).addClass("active")}});