-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
executable file
·1 lines (1 loc) · 2.07 KB
/
index.js
1
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=149)}({149:function(e,t,n){e.exports=n(150)},150:function(e,t,n){"use strict";n(151),n(152),n(153),n(154)},151:function(e,t,n){e.exports=n.p+"favicon.png"},152:function(e,t){},153:function(e,t,n){"use strict";var o=document.querySelector(".markdownIt-TOC"),r=document.querySelector(".js-markdownIt-TOCOriginalContainer"),i=document.querySelector(".js-markdownIt-TOCPlaceholder");o&&r&&i?(r.classList.add("r-minM--4of5"),i.classList.add("r-minM--1of5"),i.appendChild(o)):console.info("No TOC to move")},154:function(e,t,n){"use strict";var o,r=n(155),i=(o=r)&&o.__esModule?o:{default:o};var u=document.querySelector(".js-Headroom");if(u){var c=u.getBoundingClientRect().height,d=function(){return window.pageYOffset||document.documentElement.scrollTop},a=d(),s=function(){var e=d();return e<0||(e>a+c?(u.classList.add("js-Headroom--hide"),a=e):e<a-c&&(u.classList.remove("js-Headroom--hide"),a=e),!0)};window.addEventListener("scroll",function(){return(0,i.default)(s)},!1),window.addEventListener("hashchange",function(){setTimeout(function(){return(0,i.default)(function(){return u.classList.add("js-Headroom--hide"),!0})},10)},!1),setTimeout(function(){return(0,i.default)(function(){if(window.location.hash){var e=document.getElementById(window.location.hash.slice(1));e.getBoundingClientRect().top<c&&e.getBoundingClientRect().top>-c&&u.classList.add("js-Headroom--hide")}return!0})},10)}},155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.indexOf(e);-1===t&&(r.push(e),t=r.indexOf(e));o[t]||(o[t]=!0,requestAnimationFrame(function(){return function(e){o[r.indexOf(e)]=!e()}(e)}))};var o={},r=[]}});