Use global accent color

This commit is contained in:
Sodbileg Gansukh 2021-03-29 15:17:09 +08:00
parent dc673b8329
commit fbbce37360
13 changed files with 15 additions and 15 deletions

View file

@ -1,2 +1,2 @@
$(function(t){var o=1,r=window.location.pathname,a=t(document),s=t(".gh-postfeed"),c=300,l=!1,w=!1,d=window.scrollY,v=window.innerHeight,u=a.height();function f(){d=window.scrollY,e()}function g(){v=window.innerHeight,u=a.height(),e()}function e(){l||requestAnimationFrame(n),l=!0}function n(){var e,n;if(n=/(?:page\/)(\d)(?:\/)$/i,(e=(e=r).replace(/#(.*)$/g,"").replace("////g","/")).match(n)&&(o=parseInt(e.match(n)[1]),e=e.replace(n,"")),r=e,!w)if(d+v<=u-c)l=!1;else{if(o>=maxPages)return window.removeEventListener("scroll",f,{passive:!0}),void window.removeEventListener("resize",g);w=!0;var i=r+"page/"+(o+=1)+"/";t.get(i,function(e){var n=document.createRange().createContextualFragment(e).querySelectorAll(".post");n.length&&[].forEach.call(n,function(e){s[0].appendChild(e)})}).fail(function(e){404===e.status&&(window.removeEventListener("scroll",f,{passive:!0}),window.removeEventListener("resize",g))}).always(function(){u=a.height(),l=w=!1})}}window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",g),n()});
$(function(i){var t=1,o=window.location.pathname,r=i(document),a=i(".gh-postfeed"),s=300,c=!1,l=!1,w=window.scrollY,d=window.innerHeight,v=r.height();function u(){w=window.scrollY,e()}function f(){d=window.innerHeight,v=r.height(),e()}function e(){c||requestAnimationFrame(n),c=!0}function n(){var e;if(e=/(?:page\/)(\d)(?:\/)$/i,(n=(n=o).replace(/#(.*)$/g,"").replace("////g","/")).match(e)&&(t=parseInt(n.match(e)[1]),n=n.replace(e,"")),o=n,!l)if(w+d<=v-s)c=!1;else{if(t>=maxPages)return window.removeEventListener("scroll",u,{passive:!0}),void window.removeEventListener("resize",f);l=!0;var n=o+"page/"+(t+=1)+"/";i.get(n,function(e){e=document.createRange().createContextualFragment(e).querySelectorAll(".post");e.length&&[].forEach.call(e,function(e){a[0].appendChild(e)})}).fail(function(e){404===e.status&&(window.removeEventListener("scroll",u,{passive:!0}),window.removeEventListener("resize",f))}).always(function(){v=r.height(),c=l=!1})}}window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",f),n()});
//# sourceMappingURL=infinitescroll.js.map