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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <git@upagge.ru>2021-01-19 23:43:24 +0300
committeruPagge <git@upagge.ru>2021-01-19 23:43:24 +0300
commite507339d264a7ecb2e77d292f5bdf6268f1e4643 (patch)
treeb50f878c2d3f8a009a16b3e949dc70a7b98ccae1 /assets/js/theme.min.js
parent58211c926faa56c2b0a49130979df6caa65cf6e7 (diff)
issue 26
Diffstat (limited to 'assets/js/theme.min.js')
-rw-r--r--assets/js/theme.min.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/theme.min.js b/assets/js/theme.min.js
index 6c2eab6..38d79a1 100644
--- a/assets/js/theme.min.js
+++ b/assets/js/theme.min.js
@@ -22,7 +22,7 @@ $jscomp.polyfill("Set",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_SET|
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=function(d){this.map_=new Map;if(d){d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)this.add(e.value)}this.size=this.map_.size};c.prototype.add=function(d){d=0===d?0:d;this.map_.set(d,d);this.size=this.map_.size;return this};c.prototype.delete=function(d){d=this.map_.delete(d);this.size=this.map_.size;return d};c.prototype.clear=function(){this.map_.clear();this.size=0};c.prototype.has=
function(d){return this.map_.has(d)};c.prototype.entries=function(){return this.map_.entries()};c.prototype.values=function(){return this.map_.values()};c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(d,e){var l=this;this.map_.forEach(function(k){return d.call(e,k,k,l)})};return c},"es6","es3");$jscomp.polyfill("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)$jscomp.owns(b,d)&&c.push(b[d]);return c}},"es8","es3");
$jscomp.iteratorFromArray=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var l=c++;return{value:b(l,a[l]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6","es3");var Util=function(){};Util.prototype.forEach=function(a,b){a=a||[];for(var c=0;c<a.length;c++)b(a[c])};
-Util.prototype.getScrollTop=function(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop};Util.prototype.isMobile=function(){return window.matchMedia("only screen and (max-width: 680px)").matches};Util.prototype.isTocStatic=function(){return window.matchMedia("only screen and (max-width: 960px)").matches};
+Util.prototype.getScrollTop=function(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop};Util.prototype.isMobile=function(){return window.matchMedia("only screen and (max-width: 680px)").matches};Util.prototype.isTocStatic=function(){return window.matchMedia("only screen and (max-width: 1200px)").matches};
Util.prototype.animateCSS=function(a,b,c,d){Array.isArray(b)||(b=[b]);a.classList.add.apply(a.classList,["animated"].concat($jscomp.arrayFromIterable(b)));var e=function(){a.classList.remove.apply(a.classList,["animated"].concat($jscomp.arrayFromIterable(b)));a.removeEventListener("animationend",e);"function"===typeof d&&d()};c||a.addEventListener("animationend",e,!1)};
var Theme=function(){this.config=window.config;this.data=this.config.data;this.isDark="dark"===document.body.getAttribute("theme");this.util=new Util;this.oldScrollTop=this.newScrollTop=this.util.getScrollTop();this.scrollEventSet=new Set;this.resizeEventSet=new Set;this.switchThemeEventSet=new Set;this.clickMaskEventSet=new Set;window.objectFitImages&&objectFitImages()};
Theme.prototype.initSVGIcon=function(){this.util.forEach(document.querySelectorAll("[data-svg-src]"),function(a){fetch(a.getAttribute("data-svg-src")).then(function(b){return b.text()}).then(function(b){var c=document.createElement("div");c.insertAdjacentHTML("afterbegin",b);b=c.firstChild;b.setAttribute("data-svg-src",a.getAttribute("data-svg-src"));b.classList.add("icon");c=b.getElementsByTagName("title");c.length&&b.removeChild(c[0]);a.parentElement.replaceChild(b,a)}).catch(function(b){console.error(b)})})};