Fix the progess indicator
This commit is contained in:
parent
aa4dbc20c1
commit
161f4845c5
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{49:function(t,e,n){t.exports=n(50)},50:function(t,e,n){"use strict";n.r(e);var s=n(0),i=n.n(s),o=(n(6),n(21)),a=n(4),r=n(5),c=n.n(r);i()(document).ready(function(){c()(".js-post-content");var t=i()(".js-aos-wrapper"),e=i()(".js-progress"),n=i()(".js-scrolltop"),s=i()(".js-load-comments"),r=i()(".js-comments-iframe"),l=i()(".js-recommended-articles"),d=window.pageYOffset,u=0,f=0,m=0,p=!1;function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(t,")")).matches}function w(){p||requestAnimationFrame(b),p=!0}function b(){var t=f-u,n=Math.ceil(d/t*100);n<=100&&function(t){if(t<=100){var n=m-t/100*m;e[0].style.strokeDashoffset=n}}(1.5*n),p=!1}function v(){u=window.innerHeight,f=i()(document).height()}function g(){var t=e.parent().width()/2,n=h()?2:3;e.attr("stroke-width",n),e.attr("r",t-(n-1)),e.attr("cx",t),e.attr("cy",t),m=2*t*Math.PI,e[0].style.strokeDasharray="".concat(m," ").concat(m),e[0].style.strokeDashoffset=m}function k(e){h("1023px")?(i()("body").addClass("share-menu-displayed"),setTimeout(function(){t.removeAttr("data-aos")},e)):(Object(o.a)(".js-sticky",{stickyBitStickyOffset:100}),i()("body").removeClass("share-menu-displayed"))}!function(){for(var t=document.querySelectorAll(".kg-gallery-image img"),e=0,n=t.length;e<n;e++){var s=t[e].closest(".kg-gallery-image"),i=t[e].attributes.width.value/t[e].attributes.height.value;s.style.flex="".concat(i," 1 0%")}}(),k(1e3),l.length>0?(l.on("init",function(){v(),g(),b()}),l.slick({arrows:!0,infinite:!0,prevArrow:'<button class="m-icon-button filled in-recommended-articles slick-prev" aria-label="Previous"><span class="icon-arrow-left"></span></button>',nextArrow:'<button class="m-icon-button filled in-recommended-articles slick-next" aria-label="Next"><span class="icon-arrow-right"></span></button>',mobileFirst:!0,responsive:[{breakpoint:720,settings:{slidesToShow:2}},{breakpoint:1023,settings:{arrows:!1,slidesToShow:3}}]})):(v(),g(),b()),n.click(function(){i()("html, body").animate({scrollTop:0},500)}),s.click(function(){s.parent().hide(),r.fadeIn("slow")}),i()(".js-post-content").find("img").each(function(){i()(this).addClass("js-zoomable");var t=i()(this).parent().find("figcaption");t?i()(this).attr("alt",t.text()):$this.attr("alt","")}),Object(a.a)(".js-zoomable"),window.addEventListener("scroll",function(){d=window.pageYOffset,w()},{passive:!0}),window.addEventListener("resize",function(){v(),k(100),setTimeout(function(){g(),w()},200)},{passive:!0})})}},[[49,0,1]]]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{49:function(t,e,n){t.exports=n(50)},50:function(t,e,n){"use strict";n.r(e);var o=n(0),s=n.n(o),i=(n(6),n(21)),a=n(4),r=n(5),c=n.n(r),l=null,d=window.pageYOffset,u=0,f=0,m=0,p=!1;function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(t,")")).matches}function h(){d=window.pageYOffset,v()}function b(){y(),adjustShare(100),setTimeout(function(){k(),v()},200)}function v(){p||requestAnimationFrame(g),p=!0}function g(){var t=f-u,e=Math.ceil(d/t*100);e<=100&&function(t){if(t<=100){var e=m-t/100*m;l[0].style.strokeDashoffset=e}}(e),p=!1}function y(){u=window.innerHeight,f=s()(document).height()}function k(){var t=l.parent().width()/2,e=w()?2:3;l.attr("stroke-width",e),l.attr("r",t-(e-1)),l.attr("cx",t),l.attr("cy",t),m=2*t*Math.PI,l[0].style.strokeDasharray="".concat(m," ").concat(m),l[0].style.strokeDashoffset=m}function j(){l=s()(".js-progress"),y(),k(),g(),setTimeout(function(){l.parent().css("opacity",1)},300)}s()(document).ready(function(){var t,e=s()(".js-aos-wrapper"),n=s()(".js-scrolltop"),o=s()(".js-load-comments"),r=s()(".js-comments-iframe"),l=s()(".js-recommended-articles");c()(".js-post-content"),function(){for(var t=document.querySelectorAll(".kg-gallery-image img"),e=0,n=t.length;e<n;e++){var o=t[e].closest(".kg-gallery-image"),s=t[e].attributes.width.value/t[e].attributes.height.value;o.style.flex="".concat(s," 1 0%")}}(),t=1e3,w("1023px")?(s()("body").addClass("share-menu-displayed"),setTimeout(function(){e.removeAttr("data-aos")},t)):(Object(i.a)(".js-sticky",{stickyBitStickyOffset:100}),s()("body").removeClass("share-menu-displayed")),l.length>0&&(l.on("init",function(){j()}),l.slick({arrows:!0,infinite:!0,prevArrow:'<button class="m-icon-button filled in-recommended-articles slick-prev" aria-label="Previous"><span class="icon-arrow-left"></span></button>',nextArrow:'<button class="m-icon-button filled in-recommended-articles slick-next" aria-label="Next"><span class="icon-arrow-right"></span></button>',mobileFirst:!0,responsive:[{breakpoint:720,settings:{slidesToShow:2}},{breakpoint:1023,settings:{arrows:!1,slidesToShow:3}}]})),n.click(function(){s()("html, body").animate({scrollTop:0},500)}),o.click(function(){o.parent().hide(),r.fadeIn("slow")}),s()(".js-post-content").find("img").each(function(){s()(this).addClass("js-zoomable");var t=s()(this).parent().find("figcaption");t?s()(this).attr("alt",t.text()):$this.attr("alt","")}),Object(a.a)(".js-zoomable"),window.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",b,{passive:!0})}),s()(window).on("load",function(){j()})}},[[49,0,1]]]);
|
|
@ -54,5 +54,5 @@
|
|||
"desktop": "assets/screenshot-desktop.jpg",
|
||||
"mobile": "assets/screenshot-mobile.jpg"
|
||||
},
|
||||
"version": "0.1.8"
|
||||
"version": "0.1.9"
|
||||
}
|
Loading…
Reference in a new issue