速度优化
This commit is contained in:
parent
48978b467f
commit
2cf00823fe
1
css/animation.min.css
vendored
Normal file
1
css/animation.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
@keyframes fade-in{0%{opacity:0;backdrop-filter:blur(0)}100%{opacity:1;backdrop-filter:blur(10px)}}@-webkit-keyframes fade-in{0%{opacity:0;backdrop-filter:blur(0)}100%{opacity:1;backdrop-filter:blur(10px)}}@-moz-keyframes fade-in{0%{opacity:0;backdrop-filter:blur(0)}100%{opacity:1;backdrop-filter:blur(10px)}}@-o-keyframes fade-in{0%{opacity:0;backdrop-filter:blur(0)}100%{opacity:1;backdrop-filter:blur(10px)}}@keyframes fade{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fade{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fade{0%{opacity:0}100%{opacity:1}}@-o-keyframes fade{0%{opacity:0}100%{opacity:1}}
|
1
css/cursor.min.css
vendored
Normal file
1
css/cursor.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
#cursor{position:fixed;width:18px;height:18px;background:#ffffffcc;border-radius:50%;opacity:.25;z-index:99999999;pointer-events:none;transition:.2s ease-in-out;transition-property:background,opacity,transform}#cursor.hidden{opacity:0}#cursor.hover{opacity:.1;transform:scale(2.5)}#cursor.active{opacity:.5;transform:scale(.5)}*{cursor:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='10px' height='10px'><circle cx='4' cy='4' r='4' fill='white' /></svg>") 4 4,auto!important}
|
1
css/firefox.min.css
vendored
Normal file
1
css/firefox.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.box-wrapper,.hitokoto,.link-card,.message,.more,.music,.time,footer{background:rgba(0,0,0,.3)}.link-card:hover{background:rgb(0,0,0,.4)}.progress{background:rgba(0,0,0,.2)!important}
|
1
css/font.min.css
vendored
Normal file
1
css/font.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
@font-face{font-family:Pacifico-Regular;src:url(../font/Pacifico-Regular.ttf) format('truetype')}@font-face{font-family:UnidreamLED;src:url(../font/UnidreamLED.ttf) format('truetype')}@font-face{font-family:MiSans;src:url(https://file.imsyy.top/font/MiSans-Regular.woff) format('woff')}@font-face{font-family:iconfont;src:url(../font/iconfont.woff2) format('woff2'),url(../font/iconfont.woff) format('woff'),url(../font/iconfont.ttf) format('truetype')}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-z_shangpinheji:before{content:"\e683"}.icon-a-daohangzhiyindingwei-05:before{content:"\e970"}.icon-volume-x:before{content:"\e67a"}.icon-volume-1:before{content:"\e67b"}.icon-volume:before{content:"\e67c"}.icon-volume-2:before{content:"\e67d"}.icon-music:before{content:"\e986"}.icon-next-one:before{content:"\e609"}.icon-next-one-copy:before{content:"\ebd5"}.icon-pause:before{content:"\e733"}.icon-play:before{content:"\e65c"}.icon-undo:before{content:"\e875"}.icon-wrench-fill:before{content:"\e86e"}.icon-plus:before{content:"\e653"}.icon-right:before{content:"\e613"}.icon-right-copy:before{content:"\ebd4"}.icon-times:before{content:"\e857"}.icon-bars:before{content:"\e61f"}.icon-link:before{content:"\e603"}.icon-close:before{content:"\e656"}.icon-photo:before{content:"\ebd3"}.icon-navigation1:before{content:"\e637"}.icon-cloud:before{content:"\e624"}.icon-lab:before{content:"\e88d"}.icon-blog-solid:before{content:"\e631"}.icon-comment-alt-lines:before{content:"\e679"}.icon-music-list:before{content:"\e699"}.icon-youxiang:before{content:"\e605"}.icon-github:before{content:"\e691"}.icon-telegram1:before{content:"\e731"}.icon-QQ:before{content:"\e882"}.icon-twitter:before{content:"\e883"}.icon-github1:before{content:"\e799"}.icon-weixin:before{content:"\e600"}.icon-telegram:before{content:"\e8db"}.icon-yinhao-copy:before{content:"\e608"}.icon-yinhao-copy-copy:before{content:"\e62e"}
|
1
css/lantern.min.css
vendored
Normal file
1
css/lantern.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
@charset "UTF-8";.lantern__warpper{position:fixed;top:12px;left:40px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:999}.lantern__warpper.lantern__secondary{left:calc(100% - 130px)}.lantern__warpper.lantern__secondary .lantern__box{-webkit-animation-duration:3s;animation-duration:3s}.lantern__box{position:relative;display:inline-block;width:90px;height:70px;background:rgba(216,0,15,.8);border-radius:50% 50%;animation:lantern-swing 3s ease-in-out infinite alternate-reverse;-webkit-transform-origin:50% -70px;-ms-transform-origin:50% -70px;transform-origin:50% -70px;-webkit-box-shadow:-5px 5px 50px 4px #fa6c00;box-shadow:-5px 5px 50px 4px #fa6c00}.lantern__box:after,.lantern__box:before{content:"";position:absolute;height:8px;width:45px;left:50%;border:1px solid #dc8f03;background:-webkit-gradient(linear,left top,right top,from(#dc8f03),color-stop(orange),color-stop(#dc8f03),color-stop(orange),to(#dc8f03));background:-o-linear-gradient(left,#dc8f03,orange,#dc8f03,orange,#dc8f03);background:linear-gradient(90deg,#dc8f03,orange,#dc8f03,orange,#dc8f03)}.lantern__box:before{top:0;border-radius:5px 5px 0 0;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.lantern__box:after{bottom:0;border-radius:0 0 5px 5px;-webkit-transform:translate(-50%,50%);-ms-transform:translate(-50%,50%);transform:translate(-50%,50%)}.lantern__line{position:absolute;width:2px;height:12px;top:0;left:50%;-webkit-transform:translate(-50%,-100%);-ms-transform:translate(-50%,-100%);transform:translate(-50%,-100%);background:#dc8f03}.lantern__circle{width:80%;-webkit-box-sizing:border-box;box-sizing:border-box}.lantern__circle,.lantern__circle .lantern__ellipse{height:100%;margin:0 auto;border-radius:50%;border:2px solid #dc8f03}.lantern__circle .lantern__ellipse{width:50%}.lantern__circle .lantern__text{font-family:华文行楷,Microsoft YaHei,sans-serif;font-size:24.3px;color:#dc8f03;font-weight:700;line-height:66px;text-align:center}.lantern__tail{position:relative;width:4px;height:12px;margin:0 auto;animation:lantern-swing 3s ease-in-out infinite alternate-reverse;background:orange;border-radius:0 0 5px 5px}.lantern__tail .lantern__junction{position:absolute;top:0;left:50%;width:8px;height:8px;-webkit-transform:translate(-50%,8.4px);-ms-transform:translate(-50%,8.4px);transform:translate(-50%,8.4px);background:#e69603;border-radius:50%}.lantern__tail .lantern__rect{position:absolute;top:0;left:50%;-webkit-transform:translate(-50%,10.8px);-ms-transform:translate(-50%,10.8px);transform:translate(-50%,10.8px);width:8px;height:24px;background:orange;border-radius:5px 5px 0 5px}@-webkit-keyframes lantern-swing{0%{-webkit-transform:rotate(-8deg);transform:rotate(-8deg)}to{-webkit-transform:rotate(8deg);transform:rotate(8deg)}}@keyframes lantern-swing{0%{-webkit-transform:rotate(-8deg);transform:rotate(-8deg)}to{-webkit-transform:rotate(8deg);transform:rotate(8deg)}}@media (max-width:460px){.lantern__warpper{top:8px;left:30px}.lantern__warpper.lantern__secondary{left:calc(100% - 80px)}.lantern__box{width:50px;height:40px;-webkit-transform-origin:50% -40px;-ms-transform-origin:50% -40px;transform-origin:50% -40px;-webkit-box-shadow:-5px 5px 50px -1px #fa6c00;box-shadow:-5px 5px 50px -1px #fa6c00}.lantern__box:after,.lantern__box:before{height:4px;width:25px}.lantern__line{width:2px;height:8px}.lantern__circle .lantern__text{font-size:13.5px;line-height:38px}.lantern__tail{width:4px;height:8px}.lantern__tail .lantern__junction{width:8px;height:8px;-webkit-transform:translate(-50%,5.6px);-ms-transform:translate(-50%,5.6px);transform:translate(-50%,5.6px)}.lantern__tail .lantern__rect{-webkit-transform:translate(-50%,7.2px);-ms-transform:translate(-50%,7.2px);transform:translate(-50%,7.2px);width:8px;height:16px}}@media screen and (max-width:720px){.lantern__warpper{display:none}}
|
1
css/loading.min.css
vendored
Normal file
1
css/loading.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
#loading-box .loading-left-bg,#loading-box .loading-right-bg{position:fixed;z-index:999998;width:50%;height:100%;background-color:rgb(81 81 81 / 80%);transition:all .7s cubic-bezier(.42,0,0,1.01);backdrop-filter:blur(10px)}#loading-box .loading-right-bg{right:0}#loading-box>.spinner-box{position:fixed;z-index:999999;display:flex;justify-content:center;align-items:center;width:100%;height:100vh}#loading-box .spinner-box .loading-word{position:absolute;color:#fff;font-size:.95rem;transform:translateY(64px);text-align:center}p.loading-title{font-size:1.25rem;margin:20px 10px 4px 10px}#loading-box .spinner-box .configure-core{width:100%;height:100%;background-color:#37474f}div.loaded div.loading-left-bg{transform:translate(-100%,0)}div.loaded div.loading-right-bg{transform:translate(100%,0)}div.loaded div.spinner-box{display:none!important}.loader{position:absolute;top:calc(50% - 32px);left:calc(50% - 32px);width:64px;height:64px;border-radius:50%;perspective:800px;transition:all .7s cubic-bezier(.42,0,0,1.01)}.inner{position:absolute;box-sizing:border-box;width:100%;height:100%;border-radius:50%}.inner.one{left:0;top:0;animation:rotate-one 1s linear infinite;border-bottom:3px solid #efeffa}.inner.two{right:0;top:0;animation:rotate-two 1s linear infinite;border-right:3px solid #efeffa}.inner.three{right:0;bottom:0;animation:rotate-three 1s linear infinite;border-top:3px solid #efeffa}@keyframes rotate-one{0%{transform:rotateX(35deg) rotateY(-45deg) rotateZ(0)}100%{transform:rotateX(35deg) rotateY(-45deg) rotateZ(360deg)}}@keyframes rotate-two{0%{transform:rotateX(50deg) rotateY(10deg) rotateZ(0)}100%{transform:rotateX(50deg) rotateY(10deg) rotateZ(360deg)}}@keyframes rotate-three{0%{transform:rotateX(35deg) rotateY(55deg) rotateZ(0)}100%{transform:rotateX(35deg) rotateY(55deg) rotateZ(360deg)}}
|
1
css/mobile.min.css
vendored
Normal file
1
css/mobile.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
@charset "utf-8";@media (max-width:1200px){.container,.container-lg,.container-md,.container-sm{max-width:1000px!important}.weekday{display:none}.music-text{max-width:170px!important}}@media (max-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:900px!important}.col.left{margin-right:.75rem}.col.right{margin-left:.75rem}.col.hitokotos{display:none}.col.times{margin-left:0}.weekday{display:inline}.main-img img{width:110px}span.img-title{font-size:4.75rem}span.img-text{font-size:1.75rem}span.link-name{display:none!important}.link-card i{margin-left:10px!important;margin-right:10px!important}}@media (max-width:840px){.social{max-width:100%;justify-content:center}#link-text{display:none!important}.link i{margin:0 20px}}@media (max-width:789px){span.img-text{display:none}}@media (max-width:768px){.main-img img{width:100px}span.img-title{font-size:4.5rem}}@media (max-width:720px){.main-left{transform:translateY(20px)}.col.left{margin-right:0}.col.right{display:none}.col.right{margin-left:0}span.img-text{display:inline}.message{max-width:100%;pointer-events:none}.link-card{height:80px!important;align-items:center!important;flex-direction:column!important;justify-content:center!important}.link-card i{font-size:1.75rem}span.link-name{display:block!important;font-size:.85rem}i.iconfont.icon-link,span.line-text{font-size:1.05rem}.menu{display:flex;justify-content:center;position:fixed;top:84%}.munu-button{padding:5px 20px;background:rgb(0 0 0 / 20%);backdrop-filter:blur(10px);border-radius:6px;font-size:1.25rem;transition:.5s;width:60px;display:flex;justify-content:center;align-items:center;height:40px}footer{font-size:.85rem}.col.hitokotos{margin-right:0}.hitokoto-from,.hitokoto-text{font-size:1.05rem}.music-text{max-width:100%!important}#music-name{font-size:1.05rem}#music-open{display:none}#cursor{background:0 0!important}}@media (max-width:390px){.main-img img{display:none}}@media (min-width:568px){.iziToast{border-radius:30px!important}}@media (min-width:720px){.menu{display:none!important}}@media (min-width:992px){span#win_speed,span#win_text{display:none}}@media (min-width:1400px){span#win_speed,span#win_text{display:inline!important}}.menus .col.left{display:none}.menus .col.right{display:block!important;transition:.5s;padding:0 .75rem}.menus .col.hitokotos{display:block}.menus .col.times{display:none}.menus .row{--bs-gutter-x:0rem}.menus .col.\32{margin:0 .75rem}.menus .logo{display:inline!important;text-align:center;position:fixed;top:8%;font-size:1.75rem}.logo-text{font-family:Pacifico-Regular!important}#link-text,.close,.hitokoto,.line,.link-card,.logo,.main-img,.message,.social,.time{animation:fade .5;-webkit-animation:fade .5s;-moz-animation:fade .5s;-o-animation:fade .5s;-ms-animation:fade .5s}.mobile .col.hitokotos{display:none}.mobile .col.times{display:block}
|
1
css/style.min.css
vendored
Normal file
1
css/style.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
22
index.html
22
index.html
@ -18,12 +18,12 @@
|
|||||||
<!-- 引入样式 -->
|
<!-- 引入样式 -->
|
||||||
<link rel="stylesheet" type="text/css"
|
<link rel="stylesheet" type="text/css"
|
||||||
href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.0/css/bootstrap.min.css">
|
href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.0/css/bootstrap.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/style.css">
|
<link rel="stylesheet" type="text/css" href="./css/style.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/mobile.css">
|
<link rel="stylesheet" type="text/css" href="./css/mobile.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/font.css">
|
<link rel="stylesheet" type="text/css" href="./css/font.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/loading.css">
|
<link rel="stylesheet" type="text/css" href="./css/loading.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/animation.css">
|
<link rel="stylesheet" type="text/css" href="./css/animation.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/cursor.css">
|
<link rel="stylesheet" type="text/css" href="./css/cursor.min.css">
|
||||||
<link rel="icon" href="./favicon.ico">
|
<link rel="icon" href="./favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="./img/icon/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="./img/icon/apple-touch-icon.png">
|
||||||
<!-- Izitoast -->
|
<!-- Izitoast -->
|
||||||
@ -458,11 +458,11 @@
|
|||||||
<div class="noscript fixed-top">请开启 JavaScript</div>
|
<div class="noscript fixed-top">请开启 JavaScript</div>
|
||||||
</noscript>
|
</noscript>
|
||||||
<!-- JS -->
|
<!-- JS -->
|
||||||
<script type="text/javascript" src="./js/main.js"></script>
|
<script type="text/javascript" src="./js/main.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/time.js"></script>
|
<script type="text/javascript" src="./js/time.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/js.cookie.js"></script>
|
<script type="text/javascript" src="./js/js.cookie.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/set.js"></script>
|
<script type="text/javascript" src="./js/set.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/cursor.js"></script>
|
<script type="text/javascript" src="./js/cursor.min.js"></script>
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.0/js/bootstrap.min.js">
|
src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.0/js/bootstrap.min.js">
|
||||||
</script>
|
</script>
|
||||||
|
1
js/cursor.min.js
vendored
Normal file
1
js/cursor.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var CURSOR;Math.lerp=((s,t,e)=>(1-e)*s+e*t);const getStyle=(s,t)=>{try{return window.getComputedStyle?window.getComputedStyle(s)[t]:s.currentStyle[t]}catch(s){}return""};class Cursor{constructor(){this.pos={curr:null,prev:null},this.pt=[],this.create(),this.init(),this.render()}move(s,t){this.cursor.style.left=`${s}px`,this.cursor.style.top=`${t}px`}create(){this.cursor||(this.cursor=document.createElement("div"),this.cursor.id="cursor",this.cursor.classList.add("hidden"),document.body.append(this.cursor));var s=document.getElementsByTagName("*");for(let t=0;t<s.length;t++)"pointer"==getStyle(s[t],"cursor")&&this.pt.push(s[t].outerHTML);document.body.appendChild(this.scr=document.createElement("style")),this.scr.innerHTML="* {cursor: url(\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' width='8px' height='8px'><circle cx='4' cy='4' r='4' opacity='.5'/></svg>\") 4 4, auto}"}refresh(){this.scr.remove(),this.cursor.classList.remove("hover"),this.cursor.classList.remove("active"),this.pos={curr:null,prev:null},this.pt=[],this.create(),this.init(),this.render()}init(){document.onmouseover=(s=>this.pt.includes(s.target.outerHTML)&&this.cursor.classList.add("hover")),document.onmouseout=(s=>this.pt.includes(s.target.outerHTML)&&this.cursor.classList.remove("hover")),document.onmousemove=(s=>{null==this.pos.curr&&this.move(s.clientX-8,s.clientY-8),this.pos.curr={x:s.clientX-8,y:s.clientY-8},this.cursor.classList.remove("hidden")}),document.onmouseenter=(s=>this.cursor.classList.remove("hidden")),document.onmouseleave=(s=>this.cursor.classList.add("hidden")),document.onmousedown=(s=>this.cursor.classList.add("active")),document.onmouseup=(s=>this.cursor.classList.remove("active"))}render(){this.pos.prev?(this.pos.prev.x=Math.lerp(this.pos.prev.x,this.pos.curr.x,.45),this.pos.prev.y=Math.lerp(this.pos.prev.y,this.pos.curr.y,.45),this.move(this.pos.prev.x,this.pos.prev.y)):this.pos.prev=this.pos.curr,requestAnimationFrame(()=>this.render())}}CURSOR=new Cursor;
|
1
js/js.cookie.min.js
vendored
Normal file
1
js/js.cookie.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
(function(e){var n;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=t,o}}})(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}function n(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function t(o){function r(){}function i(n,t,i){if("undefined"!=typeof document){i=e({path:"/"},r.defaults,i),"number"==typeof i.expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(t);/^[\{\[]/.test(c)&&(t=c)}catch(e){}t=o.write?o.write(t,n):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var f="";for(var u in i)i[u]&&(f+="; "+u,!0!==i[u]&&(f+="="+i[u].split(";")[0]));return document.cookie=n+"="+t+f}}function c(e,t){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var f=i[c].split("="),u=f.slice(1).join("=");t||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var a=n(f[0]);if(u=(o.read||o)(u,a)||n(u),t)try{u=JSON.parse(u)}catch(e){}if(r[a]=u,e===a)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return c(e,!1)},r.getJSON=function(e){return c(e,!0)},r.remove=function(n,t){i(n,"",e(t,{expires:-1}))},r.defaults={},r.withConverter=t,r}return t(function(){})});
|
1
js/lantern.min.js
vendored
Normal file
1
js/lantern.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){"use strict";var n;(n=document.createElement("div")).className="j-china-lantern",n.innerHTML='<div class="lantern__warpper"><div class="lantern__box"><div class="lantern__line"></div><div class="lantern__circle"><div class="lantern__ellipse"><div class="lantern__text">新</div></div></div><div class="lantern__tail"><div class="lantern__rect"></div><div class="lantern__junction"></div></div></div></div><div class="lantern__warpper lantern__secondary"><div class="lantern__box"><div class="lantern__line"></div><div class="lantern__circle"><div class="lantern__ellipse"><div class="lantern__text">年</div></div></div><div class="lantern__tail"><div class="lantern__rect"></div><div class="lantern__junction"></div></div></div></div>',document.body.appendChild(n)});
|
@ -41,7 +41,7 @@ setTimeout(function () {
|
|||||||
//延迟加载音乐播放器
|
//延迟加载音乐播放器
|
||||||
function downloadJSAtOnload() {
|
function downloadJSAtOnload() {
|
||||||
var element = document.createElement("script");
|
var element = document.createElement("script");
|
||||||
element.src = "./js/music.js";
|
element.src = "./js/music.min.js";
|
||||||
document.body.appendChild(element);
|
document.body.appendChild(element);
|
||||||
}
|
}
|
||||||
if (window.addEventListener)
|
if (window.addEventListener)
|
||||||
@ -55,12 +55,12 @@ else window.onload = downloadJSAtOnload;
|
|||||||
new_element=document.createElement("link");
|
new_element=document.createElement("link");
|
||||||
new_element.setAttribute("rel","stylesheet");
|
new_element.setAttribute("rel","stylesheet");
|
||||||
new_element.setAttribute("type","text/css");
|
new_element.setAttribute("type","text/css");
|
||||||
new_element.setAttribute("href","./css/lantern.css");
|
new_element.setAttribute("href","./css/lantern.min.css");
|
||||||
document.body.appendChild(new_element);
|
document.body.appendChild(new_element);
|
||||||
|
|
||||||
new_element=document.createElement("script");
|
new_element=document.createElement("script");
|
||||||
new_element.setAttribute("type","text/javascript");
|
new_element.setAttribute("type","text/javascript");
|
||||||
new_element.setAttribute("src","./js/lantern.js");
|
new_element.setAttribute("src","./js/lantern.min.js");
|
||||||
document.body.appendChild(new_element);
|
document.body.appendChild(new_element);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
1
js/main.min.js
vendored
Normal file
1
js/main.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
js/music.min.js
vendored
Normal file
1
js/music.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
js/set.min.js
vendored
Normal file
1
js/set.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
function setBgImg(a){return!!a&&(Cookies.set("bg_img",a,{expires:36500}),!0)}function getBgImg(){var a=Cookies.get("bg_img");return a&&"{}"!==a?JSON.parse(a):(setBgImg(bg_img_preinstall),bg_img_preinstall)}function setBgImgInit(){var a=getBgImg();switch($("input[name='wallpaper-type'][value="+a.type+"]").click(),a.type){case"1":var g=new Array;g[0]="./img/background1.webp",g[1]="./img/background2.webp",g[2]="./img/background3.webp",g[3]="./img/background4.webp",g[4]="./img/background5.webp",g[5]="./img/background6.webp",g[6]="./img/background7.webp",g[7]="./img/background8.webp",g[8]="./img/background9.webp",g[9]="./img/background10.webp";var i=Math.floor(10*Math.random());$("#bg").attr("src",g[i]);break;case"2":$("#bg").attr("src","https://api.dujin.org/bing/1920.php");break;case"3":$("#bg").attr("src","https://api.ixiaowai.cn/gqapi/gqapi.php");break;case"4":$("#bg").attr("src","https://api.ixiaowai.cn/api/api.php")}}var bg_img_preinstall={type:"1",path:""};$(document).ready(function(){setBgImgInit(),$("#wallpaper").on("click",".set-wallpaper",function(){var a=$(this).val(),g=getBgImg();if(g.type=a,"1"===a){setBgImg(g);var i=new Array;i[0]="./img/background1.webp",i[1]="./img/background2.webp",i[2]="./img/background3.webp",i[3]="./img/background4.webp",i[4]="./img/background5.webp",i[5]="./img/background6.webp",i[6]="./img/background7.webp",i[7]="./img/background8.webp",i[8]="./img/background9.webp",i[9]="./img/background10.webp";var e=Math.floor(10*Math.random());$("#bg").attr("src",i[e]),iziToast.show({message:"壁纸设置成功"})}"2"===a&&(setBgImg(g),$("#bg").attr("src","https://api.dujin.org/bing/1920.php"),iziToast.show({message:"壁纸设置成功"})),"3"===a&&(setBgImg(g),$("#bg").attr("src","https://api.ixiaowai.cn/gqapi/gqapi.php"),iziToast.show({message:"壁纸设置成功"})),"4"===a&&(setBgImg(g),$("#bg").attr("src","https://api.ixiaowai.cn/api/api.php"),iziToast.show({message:"壁纸设置成功"}))})});
|
1
js/time.min.js
vendored
Normal file
1
js/time.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
function init_life_time(){function e(){let e=+new Date,r=new Date((new Date).toLocaleDateString()).getTime(),s=(e-r)/1e3/60/60,t=s/24*100;$("#dayProgress .date-text span").html(parseInt(s)),$("#dayProgress .progress .progress-bar").css("width",parseInt(t)+"%"),$("#dayProgress .progress .progress-bar").html(parseInt(t)+"%");let o={0:7,1:1,2:2,3:3,4:4,5:5,6:6},a=o[(new Date).getDay()],l=a/7*100;$("#weekProgress .date-text span").html(a),$("#weekProgress .progress .progress-bar").css("width",parseInt(l)+"%"),$("#weekProgress .progress .progress-bar").html(parseInt(l)+"%");let g=(new Date).getFullYear(),n=(new Date).getDate(),h=(new Date).getMonth()+1,p=new Date(g,h,0).getDate(),i=n/p*100;$("#monthProgress .date-text span").html(n),$("#monthProgress .progress .progress-bar").css("width",parseInt(i)+"%"),$("#monthProgress .progress .progress-bar").html(parseInt(i)+"%");let w=h/12*100;$("#yearProgress .date-text span").html(h),$("#yearProgress .progress .progress-bar").css("width",parseInt(w)+"%"),$("#yearProgress .progress .progress-bar").html(parseInt(w)+"%")}e(),setInterval(()=>{e()},1e3)}if(init_life_time(),now=new Date,hour=now.getHours(),hour<6)var hello="凌晨好";else if(hour<9)hello="早上好";else if(hour<12)hello="上午好";else if(hour<14)hello="中午好";else if(hour<17)hello="下午好";else if(hour<19)hello="傍晚好";else if(hour<22)hello="晚上好";else hello="夜深了";
|
Loading…
Reference in New Issue
Block a user