!function(a){function i(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return a[t].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}var n={};return i.m=a,i.c=n,i.p="",i(0)}([function(a,i,n){a.exports=n(1)},function(a,i,n){"use strict";function t(){var a=localStorage["simpread-version"];a||(localStorage["simpread-version"]=g)}function e(){$(".download .online, .install .now").on("click",function(){return $(".downloads")[0].scrollIntoView({behavior:"smooth",block:"start",inline:"start"})})}function s(){$(".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 video").removeClass("active"),$(".main .feature.puread video[data-type="+$(a.currentTarget).attr("data-type")+"]").addClass("active")})}function r(){var a='
官网\n iOS\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),$(document).scroll(function(){$("body").scrollTop()>0?!$(".top").hasClass("scroll")&&$(".top").addClass("scroll"):$(".top").hasClass("scroll")&&$(".top").removeClass("scroll")})}function l(){var a='';$(".top").append(''),$(".navigator .hamburger").on("click",function(i){$(i.currentTarget).hasClass("is-active")?($(".main, .header .download").css("opacity",1),$(".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),setTimeout(function(){$(".menu-bg .menu").addClass("open"),$(".main").css("opacity",0)},200)),$(".top .hamburger").toggleClass("active"),$(".top .menubar").toggleClass("active"),$(i.currentTarget).toggleClass("is-active")})}function o(){if(["/","/simpread/"].includes(location.pathname)&&!v.verify()){var a=$(".top").height(),i=$(".header").height(),n=$(".introduce img").height(),t=$(".header .title")[0].offsetHeight,e=$(".header .desc")[0].offsetHeight,s=$(".header .download")[0].offsetHeight,r=document.body.clientHeight,l=document.body.clientWidth;if(r>a+i){var o=r-a-i;$(".header").height(r-a),$(".introduce img").height(n+o<=650?n+o:650)}setTimeout(function(){$(".introduce img").width()>l&&($(".introduce img").css({height:"auto","max-width":"80%"}),setTimeout(function(){$(".header").height(t+e+s+$(".introduce").height())},200))},200)}}function c(){if(location.pathname.endsWith("changelog.html")){var a="";$(".version .num a").map(function(i,n){var t=$(n),e=t.attr("name"),s=t.text();a+=''+s+"
"}),$(".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,i){0==a&&$(i).append(''),a>0&&$(i).append('')}),$(".versions .collapse").on("click",function(a){$(a.currentTarget).toggleClass("active").parent().next().slideToggle()})}}function d(){["/","/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 i=$(a.currentTarget),n=i.attr("aria-controls");$(".languages ul.nav a").attr("aria-expanded",!1),i.attr("aria-expanded",!0),i.parent().parent().find("li").removeClass("active"),i.parent().addClass("active"),$(".tab-pane").removeClass("active"),$(".tab-content").find("#"+n).addClass("active")})}function h(){var a='\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"),["/","/simpread/"].includes(location.pathname)&&$(".copywrite").append('')}function m(){["/","/simpread/"].includes(location.pathname)&&(Waves.init(),$(".feature .snapshot img.image").map(function(a,i){return Waves.attach($(i)[0],["waves-image"])}),$(".group.productive .icons .icon, .group.plugins .icons .icon").map(function(a,i){return Waves.attach($(i)[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],[]),$(".jsbox-platform a").map(function(a,i){return Waves.attach($(i)[0],["waves-button"])}),$(".group.browser .platform a").map(function(a,i){return Waves.attach($(i)[0],["waves-block"])}),$(".group.feature.all .only").map(function(a,i){return Waves.attach($(i)[0],["waves-block"])}),$(".media .company a").map(function(a,i){return Waves.attach($(i)[0],["waves-block"])}))}function u(){["/","/simpread/"].includes(location.pathname)&&AOS.init()}function f(){function a(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],a("js",new Date),a("config","UA-405976-9")}n(2);var g="1.0.6.1130",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(),e(),s(),r(),l(),o(),d(),c(),p(),h(),m(),t(),f()}),$(window).resize(function(){return o()})},function(a,i){}]);