diff --git a/bundle.js b/bundle.js index bdfb4b0a..242e9730 100644 --- a/bundle.js +++ b/bundle.js @@ -1 +1 @@ -!function(a){function n(i){if(s[i])return s[i].exports;var t=s[i]={exports:{},id:i,loaded:!1};return a[i].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var s={};return n.m=a,n.c=s,n.p="",n(0)}([function(a,n,s){a.exports=s(1)},function(a,n,s){"use strict";function i(){$("body").on("click",".download .online, .install .now, .account .update",function(){location.pathname.endsWith("pro.html")?location.href="https://simpread.pro/price.html":$(".downloads")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})})}function t(){$(".main .feature.puread .mode .label").on("click",function(a){$(".main .feature.puread .mode .label").removeClass("active").find(".sub").removeClass("active"),$(a.currentTarget).addClass("active").find(".sub").addClass("active"),$(".main .feature.puread .videos img").removeClass("active"),$(".main .feature.puread .videos img[data-type="+$(a.currentTarget).attr("data-type")+"]").addClass("active")}),["/","/simpread/"].includes(location.pathname)&&setTimeout(function(){return $(".main .group.jsbox img").attr("src",$(".main .group.jsbox img").attr("data-src"))},400),location.pathname.endsWith("pro.html")&&$(".pro.install").css({display:"none"})}function e(){var a='\n \n \n \n \n \n \n
';["/","/simpread/"].includes(location.pathname)?($(".top .nav-ios a").on("click",function(){return $(".jsbox")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}),$(".top .nav-lite a").on("click",function(){return $(".lite")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}),$(".top .nav-feature a").on("click",function(){return $("#feature")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})})):$("ul.navigator").html(a),location.pathname.endsWith("pro.html")&&$(".navigator .nav-pro").html(' 高级账户'),$(document).scroll(function(){$("body").scrollTop()>0?!$(".top").hasClass("scroll")&&$(".top").addClass("scroll"):$(".top").hasClass("scroll")&&$(".top").removeClass("scroll")})}function r(){if(location.pathname.endsWith("price.html")||v.verify())return void $(".navigator .hamburger").remove();var a='';$(".top").append(''),$(".navigator .hamburger").on("click",function(n){$(n.currentTarget).hasClass("is-active")?($(".main, .header .download").css({opacity:1,"pointer-events":"initial"}),$(".top .menubar").empty()):($(".top .menubar").html(a),$(".header .title, .header .desc, .header .download, .header .introduce img").css({"animation-fill-mode":"none"}),$(".header .download").css({opacity:0,"pointer-events":"none"}),setTimeout(function(){$(".menu-bg .menu").addClass("open"),$(".main").css("opacity",0)},200)),$(".top .hamburger").toggleClass("active"),$(".top .menubar").toggleClass("active"),$(n.currentTarget).toggleClass("is-active")})}function o(){if(["/","/simpread/","/simpread/pro.html","/pro.html"].includes(location.pathname)){var a='
简于型 · 悦于心
\n
简悦 - 为你提供「如杂志般沉浸式阅读体验」的扩展
\n
\n 免费使用\n
\n \n based on 400K+ users\n
\n
\n
\n \n
',n=function(){var a=$(".top").height(),n=754,s=$(".introduce img").height(),i=$(".header .title")[0].offsetHeight,t=$(".header .desc")[0].offsetHeight,e=$(".header .download")[0].offsetHeight,r=document.body.clientHeight,o=document.body.clientWidth,l=location.pathname.endsWith("pro.html")?"-pro":"";$(".introduce img").attr("src","./assets/images/introduce"+l+".png").on("load",function(){if($(".introduce img").addClass("active"),setTimeout(function(){return f()},2e3),r>a+n){var i=r-a-n;$(".header").height(r-a+(location.pathname.endsWith("pro.html")?10:0)),location.pathname.endsWith("pro.html")?$(".introduce img").height(s+i<=630?s+i:630):$(".introduce img").height(s+i<=650?s+i:650)}else $(".header").height(n)}),setTimeout(function(){$(".introduce img").width()>o&&($(".introduce img").css({height:"auto","max-width":"80%"}),setTimeout(function(){$(".header").height(i+t+e+$(".introduce").height())},200))},200)};if(v.verify()){$(".header").css({transition:"none",height:754}),$(".header .loading").length>0&&$(".header").html(a);var s=location.pathname.endsWith("pro.html")?"-pro":"";return $(".introduce img").addClass("active").attr("src","./assets/images/introduce"+s+".png"),void f()}location.pathname.endsWith("pro.html")?setTimeout(function(){$(".header").css("position","initial"),n()},100):setTimeout(function(){$(".header").html(a).css("position","initial"),setTimeout(function(){return n()},100)},2e3)}}function l(){if(location.pathname.endsWith("changelog.html")){var a="";$(".version .num a").map(function(n,s){var i=$(s),t=i.attr("name"),e=i.html();a+='
'+e+"
"}),$(".toc").append(a),$(".toc-header .collapse").on("click",function(a){$(".toc").slideToggle()}),$(".toc .outline").on("click",function(a){$(".num").find('a[name="'+a.currentTarget.dataset.id+'"]')[0].scrollIntoView({block:"end"})}),$(".version .num").map(function(a,n){0==a&&$(n).append(''),a>0&&$(n).append('')}),$(".versions .collapse").on("click",function(a){$(a.currentTarget).toggleClass("active").parent().next().slideToggle()})}}function c(){["/","/simpread/"].includes(location.pathname)&&new Swiper(".swiper-container",{pagination:{el:".swiper-pagination",loop:!0,clickable:!0,dynamicBullets:!0}})}function p(){location.pathname.endsWith("privacy.html")&&$(".languages ul.nav a").on("click",function(a){var n=$(a.currentTarget),s=n.attr("aria-controls");$(".languages ul.nav a").attr("aria-expanded",!1),n.attr("aria-expanded",!0),n.parent().parent().find("li").removeClass("active"),n.parent().addClass("active"),$(".tab-pane").removeClass("active"),$(".tab-content").find("#"+s).addClass("active")})}function d(){if(location.pathname.endsWith("/price.html")){var a=function(a){return'\n ¥ '+a.price+'\n ¥ '+parseInt(a.price*a.discountRate)+'\n '+a.countDown+"\n "},n=function(a){return'
\n \n 马上升级\n '+("立省 "+(100-100*a.discountRate)+"%")+"¥ "+a.price+'¥ '+parseInt(a.price*a.discountRate)+"\n \n
"},s=function(a){return''+("立省 "+(100-100*a)+"%")+""},i=function(a){var n="";return a.map(function(a){var s=a.tips?''+a.tips+"":"";n+='\n \n \n '+a.site+'\n '+a.desc+'\n \n '+(a.price+" 起")+" "+s+'\n \n '}),'"},t=function(a){var n="";return a.map(function(a){var s="";a.items&&a.items.map(function(a){if(""==a)s+='
';else{var n=a.endsWith("::feature")?'即刻推出':a.endsWith("::roadmap")?'马上到来':"";a=a.replace(/::\w+/gi,""),s+='
\n \n '+a+n+"\n
"}}),n+='
\n
\n \n '+a.name+"\n
\n "+s+"\n
"}),'
\n '+n+"\n
"},e=function(){var a='\n \n \n \n ';$(".upgrade .loading").html(a)};$(document).on("scroll",function(){$(document).scrollTop()>230?$(".pricepage .floating .billing").addClass("open"):$(".pricepage .floating .billing").removeClass("open")}),e(),$.ajax({url:"https://simpread.ksria.cn/sales/service/get/",method:"POST"}).done(function(e,r,o){if(e&&201==e.code){$(".upgrade").find(".loading").remove();var l=t(e.data.base),c=t(e.data.pro),p=i(e.data.stores),d=a(e.data),h=s(e.data.discountRate),m=n(e.data);$(".base .functions").replaceWith(l),$(".pro .functions").replaceWith(c),$(".pro .pricecard .sales").replaceWith(d),$(".pro .pricecard .discountrate").replaceWith(h),$(".pro .pricecard .billing").append(p),$(".pricepage").append(m),$(".floating .billing").on("click",function(){$(".pro .pricecard")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),Waves.init(),Waves.attach($(".floating .billing")[0],[]),Waves.attach($(".base .billing")[0],[])}else $(".upgrade .loading").addClass("error").html('价格获取出现了些问题,稍后再试。')}).fail(function(a){$(".upgrade .loading").addClass("error").html('价格获取出现了些问题,稍后再试。')})}}function h(){var a='
\n \n \n \n \n
\n
\n 简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展  © 2017 ~ 2020 simpread.pro by Kenshin Wang\n
黑ICP备20004299号
\n
';$(".footer").html(a),!["/","/simpread/"].includes(location.pathname)&&0==$(".undefined.auth").length&&$(".undefined").length>0&&document.body.clientHeight>$(".top").height()+$(".undefined").height()+$(".footer").height()&$(".footer").addClass("fixed")}function m(){["/","/simpread/","/simpread/pro.html","/pro.html"].includes(location.pathname)&&(Waves.init(),$(".feature .snapshot img.image").map(function(a,n){return Waves.attach($(n)[0],["waves-image"])}),$(".profeature img").map(function(a,n){return Waves.attach($(n)[0],["waves-image"])}),$(".group.productive .icons .icon, .group.plugins .icons .icon").map(function(a,n){return Waves.attach($(n)[0],["waves-circle","waves-float","waves-light"])}),Waves.attach($(".download .online")[0],["waves-button"]),Waves.attach($("a.userscript")[0],["waves-button"]),Waves.attach($(".install .now")[0],[]),Waves.attach($(".account .update")[0],["waves-block"]),$(".jsbox-platform a").map(function(a,n){return Waves.attach($(n)[0],["waves-button"])}),$(".group.browser .platform a").map(function(a,n){return Waves.attach($(n)[0],["waves-block"])}),$(".group.feature.all .only").map(function(a,n){return Waves.attach($(n)[0],["waves-block"])}),$(".media .company a").map(function(a,n){return Waves.attach($(n)[0],["waves-block"])}))}function u(){["/","/simpread/","/simpread/pro.html","/pro.html"].includes(location.pathname)&&AOS.init()}function f(){if(["/","/simpread/"].includes(location.pathname)){var a=function(){var a=10;$("body").append('
\n
\n \n \n
\n
"),$(".welcome .close").on("click",function(){$(".welcome").addClass("exit").on("animationend",function(){$(".welcome-gp").remove()})});var n=new Image;n.onload=function(){$(".welcome").prepend(n),setInterval(function(){$(".welcome count").text(--a),0==a&&$(".welcome .countdown .open")[0].click()},1e3)},n.src="./assets/images/welcome-pro.png?2342323"},n=localStorage.getItem("simpread-version");n?n!=g&&(a(),localStorage.setItem("simpread-version",g)):(a(),localStorage.setItem("simpread-version",g))}}s(2);var g="2.0.0",v={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},verify:function(){return null!=(v.Android()||v.BlackBerry()||v.iOS()||v.Opera()||v.Windows())}};v.verify()&&$("link#aos").remove(),$(document).ready(function(){u(),i(),t(),e(),r(),o(),c(),d(),l(),p(),h(),m()}),$(window).resize(function(){return o()})},function(a,n){}]); \ No newline at end of file +!function(a){function n(i){if(s[i])return s[i].exports;var t=s[i]={exports:{},id:i,loaded:!1};return a[i].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var s={};return n.m=a,n.c=s,n.p="",n(0)}([function(a,n,s){a.exports=s(1)},function(a,n,s){"use strict";function i(){$("body").on("click",".download .online, .install .now, .account .update",function(){location.pathname.endsWith("pro.html")?location.href="https://simpread.pro/price.html":$(".downloads")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})})}function t(){$(".main .feature.puread .mode .label").on("click",function(a){$(".main .feature.puread .mode .label").removeClass("active").find(".sub").removeClass("active"),$(a.currentTarget).addClass("active").find(".sub").addClass("active"),$(".main .feature.puread .videos img").removeClass("active"),$(".main .feature.puread .videos img[data-type="+$(a.currentTarget).attr("data-type")+"]").addClass("active")}),["/","/simpread/"].includes(location.pathname)&&setTimeout(function(){return $(".main .group.jsbox img").attr("src",$(".main .group.jsbox img").attr("data-src"))},400),location.pathname.endsWith("pro.html")&&$(".pro.install").css({display:"none"})}function e(){var a='\n \n \n \n \n \n \n
';["/","/simpread/"].includes(location.pathname)?($(".top .nav-ios a").on("click",function(){return $(".jsbox")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}),$(".top .nav-lite a").on("click",function(){return $(".lite")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}),$(".top .nav-feature a").on("click",function(){return $("#feature")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})})):$("ul.navigator").html(a),location.pathname.endsWith("pro.html")&&$(".navigator .nav-pro").html(' 高级账户'),$(document).scroll(function(){$("body").scrollTop()>0?!$(".top").hasClass("scroll")&&$(".top").addClass("scroll"):$(".top").hasClass("scroll")&&$(".top").removeClass("scroll")})}function r(){if(location.pathname.endsWith("price.html")||b.verify())return void $(".navigator .hamburger").remove();var a='';$(".top").append(''),$(".navigator .hamburger").on("click",function(n){$(n.currentTarget).hasClass("is-active")?($(".main, .header .download").css({opacity:1,"pointer-events":"initial"}),$(".top .menubar").empty()):($(".top .menubar").html(a),$(".header .title, .header .desc, .header .download, .header .introduce img").css({"animation-fill-mode":"none"}),$(".header .download").css({opacity:0,"pointer-events":"none"}),setTimeout(function(){$(".menu-bg .menu").addClass("open"),$(".main").css("opacity",0)},200)),$(".top .hamburger").toggleClass("active"),$(".top .menubar").toggleClass("active"),$(n.currentTarget).toggleClass("is-active")})}function o(){if(["/","/simpread/","/simpread/pro.html","/pro.html"].includes(location.pathname)){var a='
简于型 · 悦于心
\n
简悦 - 为你提供「如杂志般沉浸式阅读体验」的扩展
\n
\n 免费使用\n
\n \n based on 500K+ users\n
\n
\n
\n \n
',n=function(){var a=$(".top").height(),n=754,s=$(".introduce img").height(),i=$(".header .title")[0].offsetHeight,t=$(".header .desc")[0].offsetHeight,e=$(".header .download")[0].offsetHeight,r=document.body.clientHeight,o=document.body.clientWidth,l=location.pathname.endsWith("pro.html")?"-pro":"";$(".introduce img").attr("src","./assets/images/introduce"+l+".png").on("load",function(){if($(".introduce img").addClass("active"),setTimeout(function(){return f()},2e3),r>a+n){var i=r-a-n;$(".header").height(r-a+(location.pathname.endsWith("pro.html")?10:0)),location.pathname.endsWith("pro.html")?$(".introduce img").height(s+i<=630?s+i:630):$(".introduce img").height(s+i<=650?s+i:650)}else $(".header").height(n)}),setTimeout(function(){$(".introduce img").width()>o&&($(".introduce img").css({height:"auto","max-width":"80%"}),setTimeout(function(){$(".header").height(i+t+e+$(".introduce").height())},200))},200)};if(b.verify()){$(".header").css({transition:"none",height:754}),$(".header .loading").length>0&&$(".header").html(a);var s=location.pathname.endsWith("pro.html")?"-pro":"";return $(".introduce img").addClass("active").attr("src","./assets/images/introduce"+s+".png"),void f()}location.pathname.endsWith("pro.html")?setTimeout(function(){$(".header").css("position","initial"),n()},100):setTimeout(function(){$(".header").html(a).css("position","initial"),setTimeout(function(){return n()},100)},2e3)}}function l(){if(location.pathname.endsWith("changelog.html")){var a="";$(".version .num a").map(function(n,s){var i=$(s),t=i.attr("name"),e=i.html();a+='
'+e+"
"}),$(".toc").append(a),$(".toc-header .collapse").on("click",function(a){$(".toc").slideToggle()}),$(".toc .outline").on("click",function(a){$(".num").find('a[name="'+a.currentTarget.dataset.id+'"]')[0].scrollIntoView({block:"end"})}),$(".version .num").map(function(a,n){0==a&&$(n).append(''),a>0&&$(n).append('')}),$(".versions .collapse").on("click",function(a){$(a.currentTarget).toggleClass("active").parent().next().slideToggle()})}}function c(){["/","/simpread/"].includes(location.pathname)&&new Swiper(".swiper-container",{pagination:{el:".swiper-pagination",loop:!0,clickable:!0,dynamicBullets:!0}})}function p(){location.pathname.endsWith("privacy.html")&&$(".languages ul.nav a").on("click",function(a){var n=$(a.currentTarget),s=n.attr("aria-controls");$(".languages ul.nav a").attr("aria-expanded",!1),n.attr("aria-expanded",!0),n.parent().parent().find("li").removeClass("active"),n.parent().addClass("active"),$(".tab-pane").removeClass("active"),$(".tab-content").find("#"+s).addClass("active")})}function d(){if(location.pathname.endsWith("/price.html")){var a=function(a){return'\n ¥ '+a.price+'\n ¥ '+parseInt(a.price*a.discountRate)+'\n '+a.countDown+"\n "},n=function(a){return'
\n \n 马上升级\n '+("立省 "+(100-100*a.discountRate)+"%")+"¥ "+a.price+'¥ '+parseInt(a.price*a.discountRate)+"\n \n
"},s=function(a){return''+("立省 "+(100-100*a)+"%")+""},i=function(a){var n="";return a.map(function(a){var s=a.tips?''+a.tips+"":"";n+='\n \n \n '+a.site+'\n '+a.desc+'\n \n '+(a.price+" 起")+" "+s+'\n \n '}),'"},t=function(a){var n="";return a.map(function(a){var s="";a.items&&a.items.map(function(a){if(""==a)s+='
';else{var n=a.endsWith("::feature")?'即刻推出':a.endsWith("::roadmap")?'马上到来':"";a=a.replace(/::\w+/gi,""),s+='
\n \n '+a+n+"\n
"}}),n+='
\n
\n \n '+a.name+"\n
\n "+s+"\n
"}),'
\n '+n+"\n
"},e=function(){var a='\n \n \n \n ';$(".upgrade .loading").html(a)};$(document).on("scroll",function(){$(document).scrollTop()>230?$(".pricepage .floating .billing").addClass("open"):$(".pricepage .floating .billing").removeClass("open")}),e(),$.ajax({url:"https://simpread.ksria.cn/sales/service/get/",method:"POST"}).done(function(e,r,o){if(e&&201==e.code){$(".upgrade").find(".loading").remove();var l=t(e.data.base),c=t(e.data.pro),p=i(e.data.stores),d=a(e.data),h=s(e.data.discountRate),m=n(e.data);$(".base .functions").replaceWith(l),$(".pro .functions").replaceWith(c),$(".pro .pricecard .sales").replaceWith(d),$(".pro .pricecard .discountrate").replaceWith(h),$(".pro .pricecard .billing").append(p),$(".pricepage").append(m),$(".floating .billing").on("click",function(){$(".pro .pricecard")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}),Waves.init(),Waves.attach($(".floating .billing")[0],[]),Waves.attach($(".base .billing")[0],[])}else $(".upgrade .loading").addClass("error").html('价格获取出现了些问题,稍后再试。')}).fail(function(a){$(".upgrade .loading").addClass("error").html('价格获取出现了些问题,稍后再试。')})}}function h(){var a='
\n \n \n \n \n
\n
\n 简悦 SimpRead - 如杂志般沉浸式阅读体验的扩展  © 2017 ~ 2020 simpread.pro by Kenshin Wang\n
黑ICP备20004299号
\n
';$(".footer").html(a),!["/","/simpread/"].includes(location.pathname)&&0==$(".undefined.auth").length&&$(".undefined").length>0&&document.body.clientHeight>$(".top").height()+$(".undefined").height()+$(".footer").height()&$(".footer").addClass("fixed")}function m(){["/","/simpread/","/simpread/pro.html","/pro.html"].includes(location.pathname)&&(Waves.init(),$(".feature .snapshot img.image").map(function(a,n){return Waves.attach($(n)[0],["waves-image"])}),$(".profeature img").map(function(a,n){return Waves.attach($(n)[0],["waves-image"])}),$(".group.productive .icons .icon, .group.plugins .icons .icon").map(function(a,n){return Waves.attach($(n)[0],["waves-circle","waves-float","waves-light"])}),Waves.attach($(".download .online")[0],["waves-button"]),Waves.attach($("a.userscript")[0],["waves-button"]),Waves.attach($(".install .now")[0],[]),Waves.attach($(".account .update")[0],["waves-block"]),$(".jsbox-platform a").map(function(a,n){return Waves.attach($(n)[0],["waves-button"])}),$(".group.browser .platform a").map(function(a,n){return Waves.attach($(n)[0],["waves-block"])}),$(".group.feature.all .only").map(function(a,n){return Waves.attach($(n)[0],["waves-block"])}),$(".media .company a").map(function(a,n){return Waves.attach($(n)[0],["waves-block"])}))}function u(){["/","/simpread/","/simpread/pro.html","/pro.html"].includes(location.pathname)&&AOS.init()}function f(){if(["/","/simpread/"].includes(location.pathname)){var a=function(){var a=10;$("body").append('
\n
\n \n \n
\n
"),$(".welcome .close").on("click",function(){$(".welcome").addClass("exit").on("animationend",function(){$(".welcome-gp").remove()})});var n=new Image;n.onload=function(){$(".welcome").prepend(n),setInterval(function(){$(".welcome count").text(--a),0==a&&$(".welcome .countdown .open")[0].click()},1e3)},n.src="./assets/images/welcome-pro.png?2342323"},n=localStorage.getItem("simpread-version");n?n!=g&&(a(),localStorage.setItem("simpread-version",g)):(a(),localStorage.setItem("simpread-version",g))}}function v(){"ksria.com"==location.hostname&&!function(){var a=location.href.replace("http://ksria.com/simpread","https://simpread.pro");$(".top").addClass("bottom"),$("body").append('
嗨 👋 请访问 👉  速度更快的官网 5 秒中后自动跳转
'),setInterval(function(){var n=$(".simpreadpro").find(".countdown").text();"1"==n?location.href=a:$(".simpreadpro").find(".countdown").text(parseInt(n)-1)},1e3)}()}s(2);var g="2.0.0",b={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},verify:function(){return null!=(b.Android()||b.BlackBerry()||b.iOS()||b.Opera()||b.Windows())}};b.verify()&&$("link#aos").remove(),$(document).ready(function(){u(),i(),t(),e(),r(),o(),c(),d(),l(),p(),h(),m(),v()}),$(window).resize(function(){return o()})},function(a,n){}]);