luckyphoenix 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
- <svg width="1252" height="1252" xmlns="http://www.w3.org/2000/svg" version="1.1">
2
- <g>
3
- <g id="#70c6beff">
4
- <path id="svg_2" d="m634.37,138.38c11.88,-1.36 24.25,1.3 34.18,8.09c14.96,9.66 25.55,24.41 34.49,39.51c40.59,68.03 81.45,135.91 122.02,203.96c54.02,90.99 108.06,181.97 161.94,273.06c37.28,63 74.65,125.96 112.18,188.82c24.72,41.99 50.21,83.54 73.84,126.16c10.18,17.84 15.77,38.44 14.93,59.03c-0.59,15.92 -3.48,32.28 -11.84,46.08c-11.73,19.46 -31.39,33.2 -52.71,40.36c-11.37,4.09 -23.3,6.87 -35.43,6.89c-132.32,-0.05 -264.64,0.04 -396.95,0.03c-11.38,-0.29 -22.95,-1.6 -33.63,-5.72c-7.81,-3.33 -15.5,-7.43 -21.61,-13.42c-10.43,-10.32 -17.19,-24.96 -15.38,-39.83c0.94,-10.39 3.48,-20.64 7.76,-30.16c4.15,-9.77 9.99,-18.67 15.06,-27.97c22.13,-39.47 45.31,-78.35 69.42,-116.65c7.72,-12.05 14.44,-25.07 25.12,-34.87c11.35,-10.39 25.6,-18.54 41.21,-19.6c12.55,-0.52 24.89,3.82 35.35,10.55c11.8,6.92 21.09,18.44 24.2,31.88c4.49,17.01 -0.34,34.88 -7.55,50.42c-8.09,17.65 -19.62,33.67 -25.81,52.18c-1.13,4.21 -2.66,9.52 0.48,13.23c3.19,3 7.62,4.18 11.77,5.22c12,2.67 24.38,1.98 36.59,2.06c45,-0.01 90,0 135,0c8.91,-0.15 17.83,0.3 26.74,-0.22c6.43,-0.74 13.44,-1.79 18.44,-6.28c3.3,-2.92 3.71,-7.85 2.46,-11.85c-2.74,-8.86 -7.46,-16.93 -12.12,-24.89c-119.99,-204.91 -239.31,-410.22 -360.56,-614.4c-3.96,-6.56 -7.36,-13.68 -13.03,-18.98c-2.8,-2.69 -6.95,-4.22 -10.77,-3.11c-3.25,1.17 -5.45,4.03 -7.61,6.57c-5.34,6.81 -10.12,14.06 -14.51,21.52c-20.89,33.95 -40.88,68.44 -61.35,102.64c-117.9,198.43 -235.82,396.85 -353.71,595.29c-7.31,13.46 -15.09,26.67 -23.57,39.43c-7.45,10.96 -16.49,21.23 -28.14,27.83c-13.73,7.94 -30.69,11.09 -46.08,6.54c-11.23,-3.47 -22.09,-9.12 -30.13,-17.84c-10.18,-10.08 -14.69,-24.83 -14.17,-38.94c0.52,-14.86 5.49,-29.34 12.98,-42.1c71.58,-121.59 143.62,-242.92 215.93,-364.09c37.2,-62.8 74.23,-125.69 111.64,-188.36c37.84,-63.5 75.77,-126.94 113.44,-190.54c21.02,-35.82 42.19,-71.56 64.28,-106.74c6.79,-11.15 15.58,-21.15 26.16,-28.85c8.68,-5.92 18.42,-11 29.05,-11.94z" fill="#70c6be"/>
5
- </g>
6
- <g id="#1ba0d8ff">
7
- <path id="svg_3" d="m628.35,608.38c17.83,-2.87 36.72,1.39 51.5,11.78c11.22,8.66 19.01,21.64 21.26,35.65c1.53,10.68 0.49,21.75 -3.44,31.84c-3.02,8.73 -7.35,16.94 -12.17,24.81c-68.76,115.58 -137.5,231.17 -206.27,346.75c-8.8,14.47 -16.82,29.47 -26.96,43.07c-7.37,9.11 -16.58,16.85 -27.21,21.89c-22.47,11.97 -51.79,4.67 -68.88,-13.33c-8.66,-8.69 -13.74,-20.63 -14.4,-32.84c-0.98,-12.64 1.81,-25.42 7.53,-36.69c5.03,-10.96 10.98,-21.45 17.19,-31.77c30.22,-50.84 60.17,-101.84 90.3,-152.73c41.24,-69.98 83.16,-139.55 124.66,-209.37c4.41,-7.94 9.91,-15.26 16.09,-21.9c8.33,-8.46 18.9,-15.3 30.8,-17.16z" fill="#1ba0d8"/>
8
- </g>
9
- </g>
1
+ <svg width="1252" height="1252" xmlns="http://www.w3.org/2000/svg" version="1.1">
2
+ <g>
3
+ <g id="#70c6beff">
4
+ <path id="svg_2" d="m634.37,138.38c11.88,-1.36 24.25,1.3 34.18,8.09c14.96,9.66 25.55,24.41 34.49,39.51c40.59,68.03 81.45,135.91 122.02,203.96c54.02,90.99 108.06,181.97 161.94,273.06c37.28,63 74.65,125.96 112.18,188.82c24.72,41.99 50.21,83.54 73.84,126.16c10.18,17.84 15.77,38.44 14.93,59.03c-0.59,15.92 -3.48,32.28 -11.84,46.08c-11.73,19.46 -31.39,33.2 -52.71,40.36c-11.37,4.09 -23.3,6.87 -35.43,6.89c-132.32,-0.05 -264.64,0.04 -396.95,0.03c-11.38,-0.29 -22.95,-1.6 -33.63,-5.72c-7.81,-3.33 -15.5,-7.43 -21.61,-13.42c-10.43,-10.32 -17.19,-24.96 -15.38,-39.83c0.94,-10.39 3.48,-20.64 7.76,-30.16c4.15,-9.77 9.99,-18.67 15.06,-27.97c22.13,-39.47 45.31,-78.35 69.42,-116.65c7.72,-12.05 14.44,-25.07 25.12,-34.87c11.35,-10.39 25.6,-18.54 41.21,-19.6c12.55,-0.52 24.89,3.82 35.35,10.55c11.8,6.92 21.09,18.44 24.2,31.88c4.49,17.01 -0.34,34.88 -7.55,50.42c-8.09,17.65 -19.62,33.67 -25.81,52.18c-1.13,4.21 -2.66,9.52 0.48,13.23c3.19,3 7.62,4.18 11.77,5.22c12,2.67 24.38,1.98 36.59,2.06c45,-0.01 90,0 135,0c8.91,-0.15 17.83,0.3 26.74,-0.22c6.43,-0.74 13.44,-1.79 18.44,-6.28c3.3,-2.92 3.71,-7.85 2.46,-11.85c-2.74,-8.86 -7.46,-16.93 -12.12,-24.89c-119.99,-204.91 -239.31,-410.22 -360.56,-614.4c-3.96,-6.56 -7.36,-13.68 -13.03,-18.98c-2.8,-2.69 -6.95,-4.22 -10.77,-3.11c-3.25,1.17 -5.45,4.03 -7.61,6.57c-5.34,6.81 -10.12,14.06 -14.51,21.52c-20.89,33.95 -40.88,68.44 -61.35,102.64c-117.9,198.43 -235.82,396.85 -353.71,595.29c-7.31,13.46 -15.09,26.67 -23.57,39.43c-7.45,10.96 -16.49,21.23 -28.14,27.83c-13.73,7.94 -30.69,11.09 -46.08,6.54c-11.23,-3.47 -22.09,-9.12 -30.13,-17.84c-10.18,-10.08 -14.69,-24.83 -14.17,-38.94c0.52,-14.86 5.49,-29.34 12.98,-42.1c71.58,-121.59 143.62,-242.92 215.93,-364.09c37.2,-62.8 74.23,-125.69 111.64,-188.36c37.84,-63.5 75.77,-126.94 113.44,-190.54c21.02,-35.82 42.19,-71.56 64.28,-106.74c6.79,-11.15 15.58,-21.15 26.16,-28.85c8.68,-5.92 18.42,-11 29.05,-11.94z" fill="#70c6be"/>
5
+ </g>
6
+ <g id="#1ba0d8ff">
7
+ <path id="svg_3" d="m628.35,608.38c17.83,-2.87 36.72,1.39 51.5,11.78c11.22,8.66 19.01,21.64 21.26,35.65c1.53,10.68 0.49,21.75 -3.44,31.84c-3.02,8.73 -7.35,16.94 -12.17,24.81c-68.76,115.58 -137.5,231.17 -206.27,346.75c-8.8,14.47 -16.82,29.47 -26.96,43.07c-7.37,9.11 -16.58,16.85 -27.21,21.89c-22.47,11.97 -51.79,4.67 -68.88,-13.33c-8.66,-8.69 -13.74,-20.63 -14.4,-32.84c-0.98,-12.64 1.81,-25.42 7.53,-36.69c5.03,-10.96 10.98,-21.45 17.19,-31.77c30.22,-50.84 60.17,-101.84 90.3,-152.73c41.24,-69.98 83.16,-139.55 124.66,-209.37c4.41,-7.94 9.91,-15.26 16.09,-21.9c8.33,-8.46 18.9,-15.3 30.8,-17.16z" fill="#1ba0d8"/>
8
+ </g>
9
+ </g>
10
10
  </svg>
@@ -1,3 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none">
2
- <path fill="#F65128" stroke="#F65128" d="M4.615 13.415c.714.13 1.088.828 1.088.828.714 1.253 1.873.89 2.329.68l-3.417-1.508Zm0 0a.61.61 0 0 1-.053-.05m.053.05-.029-.005a.214.214 0 0 0-.024-.044m0 0Zm-.141.535h.003l.007-.001-.04.006a.226.226 0 0 1 .029-.005Zm0 0-.215.445.215-.445Zm1.08 2.311c.437.373 1.088.643 2.01.565 0 .133.002.253.003.359l.003.336C4.6 16.422 2.5 13.569 2.5 10.202 2.5 5.938 5.87 2.5 10 2.5s7.5 3.437 7.5 7.703c0 3.366-2.1 6.218-5.016 7.27a200.903 200.903 0 0 1 .004-.694c.003-.393.005-.89.005-1.439 0-.441-.075-.826-.203-1.146.693-.148 1.397-.41 1.98-.912.83-.71 1.333-1.828 1.333-3.508 0-.91-.283-1.683-.763-2.31.114-.444.211-1.25-.173-2.242L14.582 5l-.225-.074-.156.475.155-.475h-.001l-.002-.001-.004-.002-.01-.003a.678.678 0 0 0-.079-.018 1.217 1.217 0 0 0-.164-.018 2.046 2.046 0 0 0-.527.05c-.402.088-.949.3-1.657.766a8.082 8.082 0 0 0-1.91-.235h-.004a8.114 8.114 0 0 0-1.91.235c-.709-.466-1.256-.678-1.658-.765a2.05 2.05 0 0 0-.527-.051 1.221 1.221 0 0 0-.244.036l-.009.003-.004.002h-.003l.155.476-.156-.475L5.417 5l-.086.22c-.383.994-.286 1.8-.17 2.243a3.72 3.72 0 0 0-.765 2.31c0 1.677.503 2.793 1.329 3.506.583.504 1.287.77 1.98.919a2.645 2.645 0 0 0-.113.36 1.503 1.503 0 0 1-.582.075c-.273-.025-.595-.154-.87-.636l-.007-.011a1.647 1.647 0 0 0-.098-.154 2.528 2.528 0 0 0-.291-.347c-.254-.251-.666-.547-1.23-.588h-.029l-.007.5.006-.5h-.019a1.222 1.222 0 0 0-.154.009.999.999 0 0 0-.385.117.627.627 0 0 0-.265.295.61.61 0 0 0 .002.474c.088.216.286.381.473.512l.034.024.027.013a1.072 1.072 0 0 1 .176.147c.127.131.31.37.467.773a.988.988 0 0 0 .032.088 2.302 2.302 0 0 0 .628.862ZM4.39 13.906h.002-.002Z"/>
3
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none">
2
+ <path fill="#F65128" stroke="#F65128" d="M4.615 13.415c.714.13 1.088.828 1.088.828.714 1.253 1.873.89 2.329.68l-3.417-1.508Zm0 0a.61.61 0 0 1-.053-.05m.053.05-.029-.005a.214.214 0 0 0-.024-.044m0 0Zm-.141.535h.003l.007-.001-.04.006a.226.226 0 0 1 .029-.005Zm0 0-.215.445.215-.445Zm1.08 2.311c.437.373 1.088.643 2.01.565 0 .133.002.253.003.359l.003.336C4.6 16.422 2.5 13.569 2.5 10.202 2.5 5.938 5.87 2.5 10 2.5s7.5 3.437 7.5 7.703c0 3.366-2.1 6.218-5.016 7.27a200.903 200.903 0 0 1 .004-.694c.003-.393.005-.89.005-1.439 0-.441-.075-.826-.203-1.146.693-.148 1.397-.41 1.98-.912.83-.71 1.333-1.828 1.333-3.508 0-.91-.283-1.683-.763-2.31.114-.444.211-1.25-.173-2.242L14.582 5l-.225-.074-.156.475.155-.475h-.001l-.002-.001-.004-.002-.01-.003a.678.678 0 0 0-.079-.018 1.217 1.217 0 0 0-.164-.018 2.046 2.046 0 0 0-.527.05c-.402.088-.949.3-1.657.766a8.082 8.082 0 0 0-1.91-.235h-.004a8.114 8.114 0 0 0-1.91.235c-.709-.466-1.256-.678-1.658-.765a2.05 2.05 0 0 0-.527-.051 1.221 1.221 0 0 0-.244.036l-.009.003-.004.002h-.003l.155.476-.156-.475L5.417 5l-.086.22c-.383.994-.286 1.8-.17 2.243a3.72 3.72 0 0 0-.765 2.31c0 1.677.503 2.793 1.329 3.506.583.504 1.287.77 1.98.919a2.645 2.645 0 0 0-.113.36 1.503 1.503 0 0 1-.582.075c-.273-.025-.595-.154-.87-.636l-.007-.011a1.647 1.647 0 0 0-.098-.154 2.528 2.528 0 0 0-.291-.347c-.254-.251-.666-.547-1.23-.588h-.029l-.007.5.006-.5h-.019a1.222 1.222 0 0 0-.154.009.999.999 0 0 0-.385.117.627.627 0 0 0-.265.295.61.61 0 0 0 .002.474c.088.216.286.381.473.512l.034.024.027.013a1.072 1.072 0 0 1 .176.147c.127.131.31.37.467.773a.988.988 0 0 0 .032.088 2.302 2.302 0 0 0 .628.862ZM4.39 13.906h.002-.002Z"/>
3
+ </svg>
package/js/Meting.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _objectSpread(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){_defineProperty(a,b,c[b])})}return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}class MetingJSElement extends HTMLElement{connectedCallback(){window.APlayer&&window.fetch&&(this._init(),this._parse())}disconnectedCallback(){this.lock||this.aplayer.destroy()}_camelize(a){return a.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(a,b)=>b.toUpperCase())}_init(){let a={};for(let b=0;b<this.attributes.length;b+=1)a[this._camelize(this.attributes[b].name)]=this.attributes[b].value;let b=["server","type","id","api","auth","auto","lock","name","title","artist","author","url","cover","pic","lyric","lrc"];this.meta={};for(var c=0;c<b.length;c++){let d=b[c];this.meta[d]=a[d],delete a[d]}this.config=a,this.api=this.meta.api||window.meting_api||"https://api.injahow.cn/meting/?server=:server&type=:type&id=:id&r=:r",this.meta.auto&&this._parse_link()}_parse_link(){let a=[["music.163.com.*song.*id=(\\d+)","netease","song"],["music.163.com.*album.*id=(\\d+)","netease","album"],["music.163.com.*artist.*id=(\\d+)","netease","artist"],["music.163.com.*playlist.*id=(\\d+)","netease","playlist"],["music.163.com.*discover/toplist.*id=(\\d+)","netease","playlist"],["y.qq.com.*song/(\\w+).html","tencent","song"],["y.qq.com.*album/(\\w+).html","tencent","album"],["y.qq.com.*singer/(\\w+).html","tencent","artist"],["y.qq.com.*playsquare/(\\w+).html","tencent","playlist"],["y.qq.com.*playlist/(\\w+).html","tencent","playlist"],["xiami.com.*song/(\\w+)","xiami","song"],["xiami.com.*album/(\\w+)","xiami","album"],["xiami.com.*artist/(\\w+)","xiami","artist"],["xiami.com.*collect/(\\w+)","xiami","playlist"]];for(var b=0;b<a.length;b++){let c=a[b],d=new RegExp(c[0]),e=d.exec(this.meta.auto);if(null!==e)return this.meta.server=c[1],this.meta.type=c[2],void(this.meta.id=e[1])}}_parse(){if(this.meta.url){let a={name:this.meta.name||this.meta.title||"Audio name",artist:this.meta.artist||this.meta.author||"Audio artist",url:this.meta.url,cover:this.meta.cover||this.meta.pic,lrc:this.meta.lrc||this.meta.lyric||"",type:this.meta.type||"auto"};return a.lrc||(this.meta.lrcType=0),this.innerText&&(a.lrc=this.innerText,this.meta.lrcType=2),void this._loadPlayer([a])}let a=this.api.replace(":server",this.meta.server).replace(":type",this.meta.type).replace(":id",this.meta.id).replace(":auth",this.meta.auth).replace(":r",Math.random());fetch(a).then(a=>a.json()).then(a=>this._loadPlayer(a))}_loadPlayer(a){let b={audio:a,mutex:!0,lrcType:this.meta.lrcType||3,storageName:"metingjs"};if(a.length){let a=_objectSpread({},b,this.config);for(let b in a)("true"===a[b]||"false"===a[b])&&(a[b]="true"===a[b]);let c=document.createElement("div");a.container=c,this.appendChild(c),this.aplayer=new APlayer(a)}}}console.log("\n %c MetingJS v2.0.1 %c https://github.com/metowolf/MetingJS \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),window.customElements&&!window.customElements.get("meting-js")&&(window.MetingJSElement=MetingJSElement,window.customElements.define("meting-js",MetingJSElement));
1
+ "use strict";function _objectSpread(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){_defineProperty(a,b,c[b])})}return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}class MetingJSElement extends HTMLElement{connectedCallback(){window.APlayer&&window.fetch&&(this._init(),this._parse())}disconnectedCallback(){this.lock||this.aplayer.destroy()}_camelize(a){return a.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(a,b)=>b.toUpperCase())}_init(){let a={};for(let b=0;b<this.attributes.length;b+=1)a[this._camelize(this.attributes[b].name)]=this.attributes[b].value;let b=["server","type","id","api","auth","auto","lock","name","title","artist","author","url","cover","pic","lyric","lrc"];this.meta={};for(var c=0;c<b.length;c++){let d=b[c];this.meta[d]=a[d],delete a[d]}this.config=a,this.api=this.meta.api||window.meting_api||"https://api.injahow.cn/meting/?server=:server&type=:type&id=:id&r=:r",this.meta.auto&&this._parse_link()}_parse_link(){let a=[["music.163.com.*song.*id=(\\d+)","netease","song"],["music.163.com.*album.*id=(\\d+)","netease","album"],["music.163.com.*artist.*id=(\\d+)","netease","artist"],["music.163.com.*playlist.*id=(\\d+)","netease","playlist"],["music.163.com.*discover/toplist.*id=(\\d+)","netease","playlist"],["y.qq.com.*song/(\\w+).html","tencent","song"],["y.qq.com.*album/(\\w+).html","tencent","album"],["y.qq.com.*singer/(\\w+).html","tencent","artist"],["y.qq.com.*playsquare/(\\w+).html","tencent","playlist"],["y.qq.com.*playlist/(\\w+).html","tencent","playlist"],["xiami.com.*song/(\\w+)","xiami","song"],["xiami.com.*album/(\\w+)","xiami","album"],["xiami.com.*artist/(\\w+)","xiami","artist"],["xiami.com.*collect/(\\w+)","xiami","playlist"]];for(var b=0;b<a.length;b++){let c=a[b],d=new RegExp(c[0]),e=d.exec(this.meta.auto);if(null!==e)return this.meta.server=c[1],this.meta.type=c[2],void(this.meta.id=e[1])}}_parse(){if(this.meta.url){let a={name:this.meta.name||this.meta.title||"Audio name",artist:this.meta.artist||this.meta.author||"Audio artist",url:this.meta.url,cover:this.meta.cover||this.meta.pic,lrc:this.meta.lrc||this.meta.lyric||"",type:this.meta.type||"auto"};return a.lrc||(this.meta.lrcType=0),this.innerText&&(a.lrc=this.innerText,this.meta.lrcType=2),void this._loadPlayer([a])}let a=this.api.replace(":server",this.meta.server).replace(":type",this.meta.type).replace(":id",this.meta.id).replace(":auth",this.meta.auth).replace(":r",Math.random());fetch(a).then(a=>a.json()).then(a=>this._loadPlayer(a))}_loadPlayer(a){let b={audio:a,mutex:!0,lrcType:this.meta.lrcType||3,storageName:"metingjs"};if(a.length){let a=_objectSpread({},b,this.config);for(let b in a)("true"===a[b]||"false"===a[b])&&(a[b]="true"===a[b]);let c=document.createElement("div");a.container=c,this.appendChild(c),this.aplayer=new APlayer(a)}}}console.log("\n %c MetingJS v2.0.1 %c https://github.com/metowolf/MetingJS \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),window.customElements&&!window.customElements.get("meting-js")&&(window.MetingJSElement=MetingJSElement,window.customElements.define("meting-js",MetingJSElement));
package/js/alist_skin.js CHANGED
@@ -1,52 +1,52 @@
1
- /*
2
- * name : Future
3
- * edition : 2.0.2
4
- * message : 前端美化样式由星环[Future]提供,程序由Alist创始者友情提供
5
- * technical support : https://www.xhto.cn/
6
- */
7
-
8
- var x = true;
9
-
10
- $("html").click(function () {
11
- if (x) {
12
- var title = document.title,
13
- // 个人信息编写区域+星环博客提供技术支持+ —————— ON
14
-
15
- // 头像链接地址
16
- headimg = "../img/logo/phoenix.svg",
17
- // 博主铭言句子
18
- motto = "心向云霄,哪管风雨袭身,日夜不歇,只为翱翔九天",
19
- // 配置 - 导航内容及链接【注:名称和链接需要一一对应,用英文逗号隔开】
20
- linkname = ["首页"],
21
- link = ["/"],
22
- code = "";
23
-
24
- // 个人信息编写区域+星环博客提供技术支持+ —————— END
25
-
26
- // 程序化代码
27
- code += '<h3>' + title + '</h3>';
28
- code += '<div >< img src = "' + headimg + '" alt = "[ ' + title + ' ]" / >< /div>';
29
- code += '<p>' + motto + '</p >';
30
- code += '< ul >';
31
- for (vo in linkname) {
32
- code += '<li> < a href = "' + link[vo] + '" > ' + linkname[vo] + ' < /a></li >';
33
- }
34
- code += '< /ul>';
35
-
36
- // 代码写入视觉程序
37
- $(".header").append(code);
38
- }
39
- })
40
-
41
- // 支持样式代码
42
- $(document).on('click', '.buttons>span:eq(1) svg', function () {
43
- var $viwe = $(this).attr('viewBox');
44
- alert($viwe);
45
- })
46
-
47
- window.onload = function () {
48
- setTimeout(function () {
49
- $("html").click();
50
- x = false;
51
- }, 100);
1
+ /*
2
+ * name : Future
3
+ * edition : 2.0.2
4
+ * message : 前端美化样式由星环[Future]提供,程序由Alist创始者友情提供
5
+ * technical support : https://www.xhto.cn/
6
+ */
7
+
8
+ var x = true;
9
+
10
+ $("html").click(function () {
11
+ if (x) {
12
+ var title = document.title,
13
+ // 个人信息编写区域+星环博客提供技术支持+ —————— ON
14
+
15
+ // 头像链接地址
16
+ headimg = "../img/logo/phoenix.svg",
17
+ // 博主铭言句子
18
+ motto = "心向云霄,哪管风雨袭身,日夜不歇,只为翱翔九天",
19
+ // 配置 - 导航内容及链接【注:名称和链接需要一一对应,用英文逗号隔开】
20
+ linkname = ["首页"],
21
+ link = ["/"],
22
+ code = "";
23
+
24
+ // 个人信息编写区域+星环博客提供技术支持+ —————— END
25
+
26
+ // 程序化代码
27
+ code += '<h3>' + title + '</h3>';
28
+ code += '<div >< img src = "' + headimg + '" alt = "[ ' + title + ' ]" / >< /div>';
29
+ code += '<p>' + motto + '</p >';
30
+ code += '< ul >';
31
+ for (vo in linkname) {
32
+ code += '<li> < a href = "' + link[vo] + '" > ' + linkname[vo] + ' < /a></li >';
33
+ }
34
+ code += '< /ul>';
35
+
36
+ // 代码写入视觉程序
37
+ $(".header").append(code);
38
+ }
39
+ })
40
+
41
+ // 支持样式代码
42
+ $(document).on('click', '.buttons>span:eq(1) svg', function () {
43
+ var $viwe = $(this).attr('viewBox');
44
+ alert($viwe);
45
+ })
46
+
47
+ window.onload = function () {
48
+ setTimeout(function () {
49
+ $("html").click();
50
+ x = false;
51
+ }, 100);
52
52
  }
package/js/anime.min.js CHANGED
@@ -1,33 +1,33 @@
1
- /*
2
- 2017 Julian Garnier
3
- Released under the MIT license
4
- */
5
- var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,r,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[r]=p.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
6
- $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++};
7
- $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var r=0;return $jscomp.iteratorPrototype(function(){return r<e.length?{done:!1,value:e[r++]}:{done:!0}})};
8
- $jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this};return e};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(e,r){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var p=0,m={next:function(){if(p<e.length){var u=p++;return{value:r(u,e[u]),done:!1}}m.next=function(){return{done:!0,value:void 0}};return m.next()}};m[Symbol.iterator]=function(){return m};return m};
9
- $jscomp.polyfill=function(e,r,p,m){if(r){p=$jscomp.global;e=e.split(".");for(m=0;m<e.length-1;m++){var u=e[m];u in p||(p[u]={});p=p[u]}e=e[e.length-1];m=p[e];r=r(m);r!=m&&null!=r&&$jscomp.defineProperty(p,e,{configurable:!0,writable:!0,value:r})}};$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(e){return e})}},"es6-impl","es3");var $jscomp$this=this;
10
- (function(e,r){"function"===typeof define&&define.amd?define([],r):"object"===typeof module&&module.exports?module.exports=r():e.anime=r()})(this,function(){function e(a){if(!h.col(a))try{return document.querySelectorAll(a)}catch(c){}}function r(a,c){for(var d=a.length,b=2<=arguments.length?arguments[1]:void 0,f=[],n=0;n<d;n++)if(n in a){var k=a[n];c.call(b,k,n,a)&&f.push(k)}return f}function p(a){return a.reduce(function(a,d){return a.concat(h.arr(d)?p(d):d)},[])}function m(a){if(h.arr(a))return a;
11
- h.str(a)&&(a=e(a)||a);return a instanceof NodeList||a instanceof HTMLCollection?[].slice.call(a):[a]}function u(a,c){return a.some(function(a){return a===c})}function C(a){var c={},d;for(d in a)c[d]=a[d];return c}function D(a,c){var d=C(a),b;for(b in a)d[b]=c.hasOwnProperty(b)?c[b]:a[b];return d}function z(a,c){var d=C(a),b;for(b in c)d[b]=h.und(a[b])?c[b]:a[b];return d}function T(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,d,k){return c+c+d+d+k+k});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
12
- a=parseInt(c[1],16);var d=parseInt(c[2],16),c=parseInt(c[3],16);return"rgba("+a+","+d+","+c+",1)"}function U(a){function c(a,c,b){0>b&&(b+=1);1<b&&--b;return b<1/6?a+6*(c-a)*b:.5>b?c:b<2/3?a+(c-a)*(2/3-b)*6:a}var d=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a);a=parseInt(d[1])/360;var b=parseInt(d[2])/100,f=parseInt(d[3])/100,d=d[4]||1;if(0==b)f=b=a=f;else{var n=.5>f?f*(1+b):f+b-f*b,k=2*f-n,f=c(k,n,a+1/3),b=c(k,n,a);a=c(k,n,a-1/3)}return"rgba("+
13
- 255*f+","+255*b+","+255*a+","+d+")"}function y(a){if(a=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a))return a[2]}function V(a){if(-1<a.indexOf("translate")||"perspective"===a)return"px";if(-1<a.indexOf("rotate")||-1<a.indexOf("skew"))return"deg"}function I(a,c){return h.fnc(a)?a(c.target,c.id,c.total):a}function E(a,c){if(c in a.style)return getComputedStyle(a).getPropertyValue(c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function J(a,c){if(h.dom(a)&&
14
- u(W,c))return"transform";if(h.dom(a)&&(a.getAttribute(c)||h.svg(a)&&a[c]))return"attribute";if(h.dom(a)&&"transform"!==c&&E(a,c))return"css";if(null!=a[c])return"object"}function X(a,c){var d=V(c),d=-1<c.indexOf("scale")?1:0+d;a=a.style.transform;if(!a)return d;for(var b=[],f=[],n=[],k=/(\w+)\((.+?)\)/g;b=k.exec(a);)f.push(b[1]),n.push(b[2]);a=r(n,function(a,b){return f[b]===c});return a.length?a[0]:d}function K(a,c){switch(J(a,c)){case "transform":return X(a,c);case "css":return E(a,c);case "attribute":return a.getAttribute(c)}return a[c]||
15
- 0}function L(a,c){var d=/^(\*=|\+=|-=)/.exec(a);if(!d)return a;var b=y(a)||0;c=parseFloat(c);a=parseFloat(a.replace(d[0],""));switch(d[0][0]){case "+":return c+a+b;case "-":return c-a+b;case "*":return c*a+b}}function F(a,c){return Math.sqrt(Math.pow(c.x-a.x,2)+Math.pow(c.y-a.y,2))}function M(a){a=a.points;for(var c=0,d,b=0;b<a.numberOfItems;b++){var f=a.getItem(b);0<b&&(c+=F(d,f));d=f}return c}function N(a){if(a.getTotalLength)return a.getTotalLength();switch(a.tagName.toLowerCase()){case "circle":return 2*
16
- Math.PI*a.getAttribute("r");case "rect":return 2*a.getAttribute("width")+2*a.getAttribute("height");case "line":return F({x:a.getAttribute("x1"),y:a.getAttribute("y1")},{x:a.getAttribute("x2"),y:a.getAttribute("y2")});case "polyline":return M(a);case "polygon":var c=a.points;return M(a)+F(c.getItem(c.numberOfItems-1),c.getItem(0))}}function Y(a,c){function d(b){b=void 0===b?0:b;return a.el.getPointAtLength(1<=c+b?c+b:0)}var b=d(),f=d(-1),n=d(1);switch(a.property){case "x":return b.x;case "y":return b.y;
17
- case "angle":return 180*Math.atan2(n.y-f.y,n.x-f.x)/Math.PI}}function O(a,c){var d=/-?\d*\.?\d+/g,b;b=h.pth(a)?a.totalLength:a;if(h.col(b))if(h.rgb(b)){var f=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(b);b=f?"rgba("+f[1]+",1)":b}else b=h.hex(b)?T(b):h.hsl(b)?U(b):void 0;else f=(f=y(b))?b.substr(0,b.length-f.length):b,b=c&&!/\s/g.test(b)?f+c:f;b+="";return{original:b,numbers:b.match(d)?b.match(d).map(Number):[0],strings:h.str(a)||c?b.split(d):[]}}function P(a){a=a?p(h.arr(a)?a.map(m):m(a)):[];return r(a,
18
- function(a,d,b){return b.indexOf(a)===d})}function Z(a){var c=P(a);return c.map(function(a,b){return{target:a,id:b,total:c.length}})}function aa(a,c){var d=C(c);if(h.arr(a)){var b=a.length;2!==b||h.obj(a[0])?h.fnc(c.duration)||(d.duration=c.duration/b):a={value:a}}return m(a).map(function(a,b){b=b?0:c.delay;a=h.obj(a)&&!h.pth(a)?a:{value:a};h.und(a.delay)&&(a.delay=b);return a}).map(function(a){return z(a,d)})}function ba(a,c){var d={},b;for(b in a){var f=I(a[b],c);h.arr(f)&&(f=f.map(function(a){return I(a,
19
- c)}),1===f.length&&(f=f[0]));d[b]=f}d.duration=parseFloat(d.duration);d.delay=parseFloat(d.delay);return d}function ca(a){return h.arr(a)?A.apply(this,a):Q[a]}function da(a,c){var d;return a.tweens.map(function(b){b=ba(b,c);var f=b.value,e=K(c.target,a.name),k=d?d.to.original:e,k=h.arr(f)?f[0]:k,w=L(h.arr(f)?f[1]:f,k),e=y(w)||y(k)||y(e);b.from=O(k,e);b.to=O(w,e);b.start=d?d.end:a.offset;b.end=b.start+b.delay+b.duration;b.easing=ca(b.easing);b.elasticity=(1E3-Math.min(Math.max(b.elasticity,1),999))/
20
- 1E3;b.isPath=h.pth(f);b.isColor=h.col(b.from.original);b.isColor&&(b.round=1);return d=b})}function ea(a,c){return r(p(a.map(function(a){return c.map(function(b){var c=J(a.target,b.name);if(c){var d=da(b,a);b={type:c,property:b.name,animatable:a,tweens:d,duration:d[d.length-1].end,delay:d[0].delay}}else b=void 0;return b})})),function(a){return!h.und(a)})}function R(a,c,d,b){var f="delay"===a;return c.length?(f?Math.min:Math.max).apply(Math,c.map(function(b){return b[a]})):f?b.delay:d.offset+b.delay+
21
- b.duration}function fa(a){var c=D(ga,a),d=D(S,a),b=Z(a.targets),f=[],e=z(c,d),k;for(k in a)e.hasOwnProperty(k)||"targets"===k||f.push({name:k,offset:e.offset,tweens:aa(a[k],d)});a=ea(b,f);return z(c,{children:[],animatables:b,animations:a,duration:R("duration",a,c,d),delay:R("delay",a,c,d)})}function q(a){function c(){return window.Promise&&new Promise(function(a){return p=a})}function d(a){return g.reversed?g.duration-a:a}function b(a){for(var b=0,c={},d=g.animations,f=d.length;b<f;){var e=d[b],
22
- k=e.animatable,h=e.tweens,n=h.length-1,l=h[n];n&&(l=r(h,function(b){return a<b.end})[0]||l);for(var h=Math.min(Math.max(a-l.start-l.delay,0),l.duration)/l.duration,w=isNaN(h)?1:l.easing(h,l.elasticity),h=l.to.strings,p=l.round,n=[],m=void 0,m=l.to.numbers.length,t=0;t<m;t++){var x=void 0,x=l.to.numbers[t],q=l.from.numbers[t],x=l.isPath?Y(l.value,w*x):q+w*(x-q);p&&(l.isColor&&2<t||(x=Math.round(x*p)/p));n.push(x)}if(l=h.length)for(m=h[0],w=0;w<l;w++)p=h[w+1],t=n[w],isNaN(t)||(m=p?m+(t+p):m+(t+" "));
23
- else m=n[0];ha[e.type](k.target,e.property,m,c,k.id);e.currentValue=m;b++}if(b=Object.keys(c).length)for(d=0;d<b;d++)H||(H=E(document.body,"transform")?"transform":"-webkit-transform"),g.animatables[d].target.style[H]=c[d].join(" ");g.currentTime=a;g.progress=a/g.duration*100}function f(a){if(g[a])g[a](g)}function e(){g.remaining&&!0!==g.remaining&&g.remaining--}function k(a){var k=g.duration,n=g.offset,w=n+g.delay,r=g.currentTime,x=g.reversed,q=d(a);if(g.children.length){var u=g.children,v=u.length;
24
- if(q>=g.currentTime)for(var G=0;G<v;G++)u[G].seek(q);else for(;v--;)u[v].seek(q)}if(q>=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&q<k)b(q);else if(q<=n&&0!==r&&(b(0),x&&e()),q>=k&&r!==k||!k)b(k),x||e();f("update");a>=k&&(g.remaining?(t=h,"alternate"===g.direction&&(g.reversed=!g.reversed)):(g.pause(),g.completed||(g.completed=!0,f("complete"),"Promise"in window&&(p(),m=c()))),l=0)}a=void 0===a?{}:a;var h,t,l=0,p=null,m=c(),g=fa(a);g.reset=function(){var a=g.direction,c=g.loop;g.currentTime=
25
- 0;g.progress=0;g.paused=!0;g.began=!1;g.completed=!1;g.reversed="reverse"===a;g.remaining="alternate"===a&&1===c?2:c;b(0);for(a=g.children.length;a--;)g.children[a].reset()};g.tick=function(a){h=a;t||(t=h);k((l+h-t)*q.speed)};g.seek=function(a){k(d(a))};g.pause=function(){var a=v.indexOf(g);-1<a&&v.splice(a,1);g.paused=!0};g.play=function(){g.paused&&(g.paused=!1,t=0,l=d(g.currentTime),v.push(g),B||ia())};g.reverse=function(){g.reversed=!g.reversed;t=0;l=d(g.currentTime)};g.restart=function(){g.pause();
26
- g.reset();g.play()};g.finished=m;g.reset();g.autoplay&&g.play();return g}var ga={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},S={duration:1E3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},W="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),H,h={arr:function(a){return Array.isArray(a)},obj:function(a){return-1<Object.prototype.toString.call(a).indexOf("Object")},
27
- pth:function(a){return h.obj(a)&&a.hasOwnProperty("totalLength")},svg:function(a){return a instanceof SVGElement},dom:function(a){return a.nodeType||h.svg(a)},str:function(a){return"string"===typeof a},fnc:function(a){return"function"===typeof a},und:function(a){return"undefined"===typeof a},hex:function(a){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)},rgb:function(a){return/^rgb/.test(a)},hsl:function(a){return/^hsl/.test(a)},col:function(a){return h.hex(a)||h.rgb(a)||h.hsl(a)}},A=function(){function a(a,
28
- d,b){return(((1-3*b+3*d)*a+(3*b-6*d))*a+3*d)*a}return function(c,d,b,f){if(0<=c&&1>=c&&0<=b&&1>=b){var e=new Float32Array(11);if(c!==d||b!==f)for(var k=0;11>k;++k)e[k]=a(.1*k,c,b);return function(k){if(c===d&&b===f)return k;if(0===k)return 0;if(1===k)return 1;for(var h=0,l=1;10!==l&&e[l]<=k;++l)h+=.1;--l;var l=h+(k-e[l])/(e[l+1]-e[l])*.1,n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(.001<=n){for(h=0;4>h;++h){n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(0===n)break;var m=a(l,c,b)-k,l=l-m/n}k=l}else if(0===
29
- n)k=l;else{var l=h,h=h+.1,g=0;do m=l+(h-l)/2,n=a(m,c,b)-k,0<n?h=m:l=m;while(1e-7<Math.abs(n)&&10>++g);k=m}return a(k,d,f)}}}}(),Q=function(){function a(a,b){return 0===a||1===a?a:-Math.pow(2,10*(a-1))*Math.sin(2*(a-1-b/(2*Math.PI)*Math.asin(1))*Math.PI/b)}var c="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),d={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],a],Out:[[.25,
30
- .46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(b,c){return 1-a(1-b,c)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(b,c){return.5>b?a(2*b,c)/2:1-a(-2*b+2,c)/2}]},b={linear:A(.25,.25,.75,.75)},f={},e;for(e in d)f.type=e,d[f.type].forEach(function(a){return function(d,f){b["ease"+a.type+c[f]]=h.fnc(d)?
31
- d:A.apply($jscomp$this,d)}}(f)),f={type:f.type};return b}(),ha={css:function(a,c,d){return a.style[c]=d},attribute:function(a,c,d){return a.setAttribute(c,d)},object:function(a,c,d){return a[c]=d},transform:function(a,c,d,b,f){b[f]||(b[f]=[]);b[f].push(c+"("+d+")")}},v=[],B=0,ia=function(){function a(){B=requestAnimationFrame(c)}function c(c){var b=v.length;if(b){for(var d=0;d<b;)v[d]&&v[d].tick(c),d++;a()}else cancelAnimationFrame(B),B=0}return a}();q.version="2.2.0";q.speed=1;q.running=v;q.remove=
32
- function(a){a=P(a);for(var c=v.length;c--;)for(var d=v[c],b=d.animations,f=b.length;f--;)u(a,b[f].animatable.target)&&(b.splice(f,1),b.length||d.pause())};q.getValue=K;q.path=function(a,c){var d=h.str(a)?e(a)[0]:a,b=c||100;return function(a){return{el:d,property:a,totalLength:N(d)*(b/100)}}};q.setDashoffset=function(a){var c=N(a);a.setAttribute("stroke-dasharray",c);return c};q.bezier=A;q.easings=Q;q.timeline=function(a){var c=q(a);c.pause();c.duration=0;c.add=function(d){c.children.forEach(function(a){a.began=
1
+ /*
2
+ 2017 Julian Garnier
3
+ Released under the MIT license
4
+ */
5
+ var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,r,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[r]=p.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
6
+ $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++};
7
+ $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var r=0;return $jscomp.iteratorPrototype(function(){return r<e.length?{done:!1,value:e[r++]}:{done:!0}})};
8
+ $jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this};return e};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(e,r){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var p=0,m={next:function(){if(p<e.length){var u=p++;return{value:r(u,e[u]),done:!1}}m.next=function(){return{done:!0,value:void 0}};return m.next()}};m[Symbol.iterator]=function(){return m};return m};
9
+ $jscomp.polyfill=function(e,r,p,m){if(r){p=$jscomp.global;e=e.split(".");for(m=0;m<e.length-1;m++){var u=e[m];u in p||(p[u]={});p=p[u]}e=e[e.length-1];m=p[e];r=r(m);r!=m&&null!=r&&$jscomp.defineProperty(p,e,{configurable:!0,writable:!0,value:r})}};$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(e){return e})}},"es6-impl","es3");var $jscomp$this=this;
10
+ (function(e,r){"function"===typeof define&&define.amd?define([],r):"object"===typeof module&&module.exports?module.exports=r():e.anime=r()})(this,function(){function e(a){if(!h.col(a))try{return document.querySelectorAll(a)}catch(c){}}function r(a,c){for(var d=a.length,b=2<=arguments.length?arguments[1]:void 0,f=[],n=0;n<d;n++)if(n in a){var k=a[n];c.call(b,k,n,a)&&f.push(k)}return f}function p(a){return a.reduce(function(a,d){return a.concat(h.arr(d)?p(d):d)},[])}function m(a){if(h.arr(a))return a;
11
+ h.str(a)&&(a=e(a)||a);return a instanceof NodeList||a instanceof HTMLCollection?[].slice.call(a):[a]}function u(a,c){return a.some(function(a){return a===c})}function C(a){var c={},d;for(d in a)c[d]=a[d];return c}function D(a,c){var d=C(a),b;for(b in a)d[b]=c.hasOwnProperty(b)?c[b]:a[b];return d}function z(a,c){var d=C(a),b;for(b in c)d[b]=h.und(a[b])?c[b]:a[b];return d}function T(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,d,k){return c+c+d+d+k+k});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);
12
+ a=parseInt(c[1],16);var d=parseInt(c[2],16),c=parseInt(c[3],16);return"rgba("+a+","+d+","+c+",1)"}function U(a){function c(a,c,b){0>b&&(b+=1);1<b&&--b;return b<1/6?a+6*(c-a)*b:.5>b?c:b<2/3?a+(c-a)*(2/3-b)*6:a}var d=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a);a=parseInt(d[1])/360;var b=parseInt(d[2])/100,f=parseInt(d[3])/100,d=d[4]||1;if(0==b)f=b=a=f;else{var n=.5>f?f*(1+b):f+b-f*b,k=2*f-n,f=c(k,n,a+1/3),b=c(k,n,a);a=c(k,n,a-1/3)}return"rgba("+
13
+ 255*f+","+255*b+","+255*a+","+d+")"}function y(a){if(a=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a))return a[2]}function V(a){if(-1<a.indexOf("translate")||"perspective"===a)return"px";if(-1<a.indexOf("rotate")||-1<a.indexOf("skew"))return"deg"}function I(a,c){return h.fnc(a)?a(c.target,c.id,c.total):a}function E(a,c){if(c in a.style)return getComputedStyle(a).getPropertyValue(c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function J(a,c){if(h.dom(a)&&
14
+ u(W,c))return"transform";if(h.dom(a)&&(a.getAttribute(c)||h.svg(a)&&a[c]))return"attribute";if(h.dom(a)&&"transform"!==c&&E(a,c))return"css";if(null!=a[c])return"object"}function X(a,c){var d=V(c),d=-1<c.indexOf("scale")?1:0+d;a=a.style.transform;if(!a)return d;for(var b=[],f=[],n=[],k=/(\w+)\((.+?)\)/g;b=k.exec(a);)f.push(b[1]),n.push(b[2]);a=r(n,function(a,b){return f[b]===c});return a.length?a[0]:d}function K(a,c){switch(J(a,c)){case "transform":return X(a,c);case "css":return E(a,c);case "attribute":return a.getAttribute(c)}return a[c]||
15
+ 0}function L(a,c){var d=/^(\*=|\+=|-=)/.exec(a);if(!d)return a;var b=y(a)||0;c=parseFloat(c);a=parseFloat(a.replace(d[0],""));switch(d[0][0]){case "+":return c+a+b;case "-":return c-a+b;case "*":return c*a+b}}function F(a,c){return Math.sqrt(Math.pow(c.x-a.x,2)+Math.pow(c.y-a.y,2))}function M(a){a=a.points;for(var c=0,d,b=0;b<a.numberOfItems;b++){var f=a.getItem(b);0<b&&(c+=F(d,f));d=f}return c}function N(a){if(a.getTotalLength)return a.getTotalLength();switch(a.tagName.toLowerCase()){case "circle":return 2*
16
+ Math.PI*a.getAttribute("r");case "rect":return 2*a.getAttribute("width")+2*a.getAttribute("height");case "line":return F({x:a.getAttribute("x1"),y:a.getAttribute("y1")},{x:a.getAttribute("x2"),y:a.getAttribute("y2")});case "polyline":return M(a);case "polygon":var c=a.points;return M(a)+F(c.getItem(c.numberOfItems-1),c.getItem(0))}}function Y(a,c){function d(b){b=void 0===b?0:b;return a.el.getPointAtLength(1<=c+b?c+b:0)}var b=d(),f=d(-1),n=d(1);switch(a.property){case "x":return b.x;case "y":return b.y;
17
+ case "angle":return 180*Math.atan2(n.y-f.y,n.x-f.x)/Math.PI}}function O(a,c){var d=/-?\d*\.?\d+/g,b;b=h.pth(a)?a.totalLength:a;if(h.col(b))if(h.rgb(b)){var f=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(b);b=f?"rgba("+f[1]+",1)":b}else b=h.hex(b)?T(b):h.hsl(b)?U(b):void 0;else f=(f=y(b))?b.substr(0,b.length-f.length):b,b=c&&!/\s/g.test(b)?f+c:f;b+="";return{original:b,numbers:b.match(d)?b.match(d).map(Number):[0],strings:h.str(a)||c?b.split(d):[]}}function P(a){a=a?p(h.arr(a)?a.map(m):m(a)):[];return r(a,
18
+ function(a,d,b){return b.indexOf(a)===d})}function Z(a){var c=P(a);return c.map(function(a,b){return{target:a,id:b,total:c.length}})}function aa(a,c){var d=C(c);if(h.arr(a)){var b=a.length;2!==b||h.obj(a[0])?h.fnc(c.duration)||(d.duration=c.duration/b):a={value:a}}return m(a).map(function(a,b){b=b?0:c.delay;a=h.obj(a)&&!h.pth(a)?a:{value:a};h.und(a.delay)&&(a.delay=b);return a}).map(function(a){return z(a,d)})}function ba(a,c){var d={},b;for(b in a){var f=I(a[b],c);h.arr(f)&&(f=f.map(function(a){return I(a,
19
+ c)}),1===f.length&&(f=f[0]));d[b]=f}d.duration=parseFloat(d.duration);d.delay=parseFloat(d.delay);return d}function ca(a){return h.arr(a)?A.apply(this,a):Q[a]}function da(a,c){var d;return a.tweens.map(function(b){b=ba(b,c);var f=b.value,e=K(c.target,a.name),k=d?d.to.original:e,k=h.arr(f)?f[0]:k,w=L(h.arr(f)?f[1]:f,k),e=y(w)||y(k)||y(e);b.from=O(k,e);b.to=O(w,e);b.start=d?d.end:a.offset;b.end=b.start+b.delay+b.duration;b.easing=ca(b.easing);b.elasticity=(1E3-Math.min(Math.max(b.elasticity,1),999))/
20
+ 1E3;b.isPath=h.pth(f);b.isColor=h.col(b.from.original);b.isColor&&(b.round=1);return d=b})}function ea(a,c){return r(p(a.map(function(a){return c.map(function(b){var c=J(a.target,b.name);if(c){var d=da(b,a);b={type:c,property:b.name,animatable:a,tweens:d,duration:d[d.length-1].end,delay:d[0].delay}}else b=void 0;return b})})),function(a){return!h.und(a)})}function R(a,c,d,b){var f="delay"===a;return c.length?(f?Math.min:Math.max).apply(Math,c.map(function(b){return b[a]})):f?b.delay:d.offset+b.delay+
21
+ b.duration}function fa(a){var c=D(ga,a),d=D(S,a),b=Z(a.targets),f=[],e=z(c,d),k;for(k in a)e.hasOwnProperty(k)||"targets"===k||f.push({name:k,offset:e.offset,tweens:aa(a[k],d)});a=ea(b,f);return z(c,{children:[],animatables:b,animations:a,duration:R("duration",a,c,d),delay:R("delay",a,c,d)})}function q(a){function c(){return window.Promise&&new Promise(function(a){return p=a})}function d(a){return g.reversed?g.duration-a:a}function b(a){for(var b=0,c={},d=g.animations,f=d.length;b<f;){var e=d[b],
22
+ k=e.animatable,h=e.tweens,n=h.length-1,l=h[n];n&&(l=r(h,function(b){return a<b.end})[0]||l);for(var h=Math.min(Math.max(a-l.start-l.delay,0),l.duration)/l.duration,w=isNaN(h)?1:l.easing(h,l.elasticity),h=l.to.strings,p=l.round,n=[],m=void 0,m=l.to.numbers.length,t=0;t<m;t++){var x=void 0,x=l.to.numbers[t],q=l.from.numbers[t],x=l.isPath?Y(l.value,w*x):q+w*(x-q);p&&(l.isColor&&2<t||(x=Math.round(x*p)/p));n.push(x)}if(l=h.length)for(m=h[0],w=0;w<l;w++)p=h[w+1],t=n[w],isNaN(t)||(m=p?m+(t+p):m+(t+" "));
23
+ else m=n[0];ha[e.type](k.target,e.property,m,c,k.id);e.currentValue=m;b++}if(b=Object.keys(c).length)for(d=0;d<b;d++)H||(H=E(document.body,"transform")?"transform":"-webkit-transform"),g.animatables[d].target.style[H]=c[d].join(" ");g.currentTime=a;g.progress=a/g.duration*100}function f(a){if(g[a])g[a](g)}function e(){g.remaining&&!0!==g.remaining&&g.remaining--}function k(a){var k=g.duration,n=g.offset,w=n+g.delay,r=g.currentTime,x=g.reversed,q=d(a);if(g.children.length){var u=g.children,v=u.length;
24
+ if(q>=g.currentTime)for(var G=0;G<v;G++)u[G].seek(q);else for(;v--;)u[v].seek(q)}if(q>=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&q<k)b(q);else if(q<=n&&0!==r&&(b(0),x&&e()),q>=k&&r!==k||!k)b(k),x||e();f("update");a>=k&&(g.remaining?(t=h,"alternate"===g.direction&&(g.reversed=!g.reversed)):(g.pause(),g.completed||(g.completed=!0,f("complete"),"Promise"in window&&(p(),m=c()))),l=0)}a=void 0===a?{}:a;var h,t,l=0,p=null,m=c(),g=fa(a);g.reset=function(){var a=g.direction,c=g.loop;g.currentTime=
25
+ 0;g.progress=0;g.paused=!0;g.began=!1;g.completed=!1;g.reversed="reverse"===a;g.remaining="alternate"===a&&1===c?2:c;b(0);for(a=g.children.length;a--;)g.children[a].reset()};g.tick=function(a){h=a;t||(t=h);k((l+h-t)*q.speed)};g.seek=function(a){k(d(a))};g.pause=function(){var a=v.indexOf(g);-1<a&&v.splice(a,1);g.paused=!0};g.play=function(){g.paused&&(g.paused=!1,t=0,l=d(g.currentTime),v.push(g),B||ia())};g.reverse=function(){g.reversed=!g.reversed;t=0;l=d(g.currentTime)};g.restart=function(){g.pause();
26
+ g.reset();g.play()};g.finished=m;g.reset();g.autoplay&&g.play();return g}var ga={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},S={duration:1E3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},W="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),H,h={arr:function(a){return Array.isArray(a)},obj:function(a){return-1<Object.prototype.toString.call(a).indexOf("Object")},
27
+ pth:function(a){return h.obj(a)&&a.hasOwnProperty("totalLength")},svg:function(a){return a instanceof SVGElement},dom:function(a){return a.nodeType||h.svg(a)},str:function(a){return"string"===typeof a},fnc:function(a){return"function"===typeof a},und:function(a){return"undefined"===typeof a},hex:function(a){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)},rgb:function(a){return/^rgb/.test(a)},hsl:function(a){return/^hsl/.test(a)},col:function(a){return h.hex(a)||h.rgb(a)||h.hsl(a)}},A=function(){function a(a,
28
+ d,b){return(((1-3*b+3*d)*a+(3*b-6*d))*a+3*d)*a}return function(c,d,b,f){if(0<=c&&1>=c&&0<=b&&1>=b){var e=new Float32Array(11);if(c!==d||b!==f)for(var k=0;11>k;++k)e[k]=a(.1*k,c,b);return function(k){if(c===d&&b===f)return k;if(0===k)return 0;if(1===k)return 1;for(var h=0,l=1;10!==l&&e[l]<=k;++l)h+=.1;--l;var l=h+(k-e[l])/(e[l+1]-e[l])*.1,n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(.001<=n){for(h=0;4>h;++h){n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(0===n)break;var m=a(l,c,b)-k,l=l-m/n}k=l}else if(0===
29
+ n)k=l;else{var l=h,h=h+.1,g=0;do m=l+(h-l)/2,n=a(m,c,b)-k,0<n?h=m:l=m;while(1e-7<Math.abs(n)&&10>++g);k=m}return a(k,d,f)}}}}(),Q=function(){function a(a,b){return 0===a||1===a?a:-Math.pow(2,10*(a-1))*Math.sin(2*(a-1-b/(2*Math.PI)*Math.asin(1))*Math.PI/b)}var c="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),d={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],a],Out:[[.25,
30
+ .46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(b,c){return 1-a(1-b,c)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(b,c){return.5>b?a(2*b,c)/2:1-a(-2*b+2,c)/2}]},b={linear:A(.25,.25,.75,.75)},f={},e;for(e in d)f.type=e,d[f.type].forEach(function(a){return function(d,f){b["ease"+a.type+c[f]]=h.fnc(d)?
31
+ d:A.apply($jscomp$this,d)}}(f)),f={type:f.type};return b}(),ha={css:function(a,c,d){return a.style[c]=d},attribute:function(a,c,d){return a.setAttribute(c,d)},object:function(a,c,d){return a[c]=d},transform:function(a,c,d,b,f){b[f]||(b[f]=[]);b[f].push(c+"("+d+")")}},v=[],B=0,ia=function(){function a(){B=requestAnimationFrame(c)}function c(c){var b=v.length;if(b){for(var d=0;d<b;)v[d]&&v[d].tick(c),d++;a()}else cancelAnimationFrame(B),B=0}return a}();q.version="2.2.0";q.speed=1;q.running=v;q.remove=
32
+ function(a){a=P(a);for(var c=v.length;c--;)for(var d=v[c],b=d.animations,f=b.length;f--;)u(a,b[f].animatable.target)&&(b.splice(f,1),b.length||d.pause())};q.getValue=K;q.path=function(a,c){var d=h.str(a)?e(a)[0]:a,b=c||100;return function(a){return{el:d,property:a,totalLength:N(d)*(b/100)}}};q.setDashoffset=function(a){var c=N(a);a.setAttribute("stroke-dasharray",c);return c};q.bezier=A;q.easings=Q;q.timeline=function(a){var c=q(a);c.pause();c.duration=0;c.add=function(d){c.children.forEach(function(a){a.began=
33
33
  !0;a.completed=!0});m(d).forEach(function(b){var d=z(b,D(S,a||{}));d.targets=d.targets||a.targets;b=c.duration;var e=d.offset;d.autoplay=!1;d.direction=c.direction;d.offset=h.und(e)?b:L(e,b);c.began=!0;c.completed=!0;c.seek(d.offset);d=q(d);d.began=!0;d.completed=!0;d.duration>b&&(c.duration=d.duration);c.children.push(d)});c.seek(0);c.reset();c.autoplay&&c.restart();return c};return c};q.random=function(a,c){return Math.floor(Math.random()*(c-a+1))+a};return q});
package/js/canvas.js CHANGED
@@ -1,24 +1,24 @@
1
- // 渐变背景初始化,如果要使用渐变背景把下面的那一行注释去掉即可
2
- // 下面的几行都是渐变的一套,自定义头部内还有一个关联的自定义CSS
3
- // <canvas id="canvas-basic"></canvas>
4
- <script src="https://npm.elemecdn.com/granim@2.0.0/dist/granim.min.js"></script>
5
- var granimInstance = new Granim({
6
- element: '#canvas-basic',
7
- direction: 'left-right',
8
- isPausedWhenNotInView: true,
9
- states: {
10
- "default-state": {
11
- gradients: [
12
- ['#a18cd1', '#fbc2eb'],
13
- ['#fff1eb', '#ace0f9'],
14
- ['#d4fc79', '#96e6a1'],
15
- ['#a1c4fd', '#c2e9fb'],
16
- ['#a8edea', '#fed6e3'],
17
- ['#9890e3', '#b1f4cf'],
18
- ['#a1c4fd', '#c2e9fb'],
19
- ['#fff1eb', '#ace0f9']
20
-
21
- ]
22
- }
23
- }
1
+ // 渐变背景初始化,如果要使用渐变背景把下面的那一行注释去掉即可
2
+ // 下面的几行都是渐变的一套,自定义头部内还有一个关联的自定义CSS
3
+ // <canvas id="canvas-basic"></canvas>
4
+ <script src="https://npm.elemecdn.com/granim@2.0.0/dist/granim.min.js"></script>
5
+ var granimInstance = new Granim({
6
+ element: '#canvas-basic',
7
+ direction: 'left-right',
8
+ isPausedWhenNotInView: true,
9
+ states: {
10
+ "default-state": {
11
+ gradients: [
12
+ ['#a18cd1', '#fbc2eb'],
13
+ ['#fff1eb', '#ace0f9'],
14
+ ['#d4fc79', '#96e6a1'],
15
+ ['#a1c4fd', '#c2e9fb'],
16
+ ['#a8edea', '#fed6e3'],
17
+ ['#9890e3', '#b1f4cf'],
18
+ ['#a1c4fd', '#c2e9fb'],
19
+ ['#fff1eb', '#ace0f9']
20
+
21
+ ]
22
+ }
23
+ }
24
24
  });
package/js/clock.js CHANGED
@@ -1,117 +1,117 @@
1
- // 设置id='day_show'
2
- // <strong><span class='fas fa-clock'></span>本站已稳定运行:</strong>
3
- // <strong id='day_show'>运行时间</strong>
4
- var now = new Date();
5
- function createtime() {
6
- var grt = new Date('08/02/2022 00:00:00');
7
- now.setTime(now.getTime() + 250);
8
- days = (now - grt) / 1000 / 60 / 60 / 24;
9
- dnum = Math.floor(days);
10
- hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
11
- hnum = Math.floor(hours);
12
- if (String(hnum).length == 1) { hnum = '0' + hnum; }
13
- minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
14
- mnum = Math.floor(minutes);
15
- if (String(mnum).length == 1) { mnum = '0' + mnum; }
16
- seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
17
- snum = Math.round(seconds);
18
- if (String(snum).length == 1) { snum = '0' + snum; }
19
- document.getElementById('day_show').innerHTML = dnum + '天' + hnum + '时' + mnum + '分' + snum + '秒';
20
- }
21
- setInterval('createtime()', 250);
22
- //<div id='delay' style='display:none;'>
23
- // function showmsg() { $('#delay').show(); }
24
- // function showmsg() { var element = document.getElementById('delay'); if (element) { element.style.display = 'block';} }
25
- // setInterval(showmsg, 2000); //2秒后显示
26
-
27
- /* 方案二 */
28
- {/* <span id='momk' fr-fix-stroke='true'>本站已运行:</span>
29
- <span id='span_dt_dt' fr-fix-stroke='true'>180天18小时13分6秒</span> */}
30
- /* 2022/08/10 */
31
- /* id='span_dt_dt' */
32
-
33
- // function show_date_time() {
34
- // window.setTimeout('show_date_time()', 1e3);
35
- // var BirthDay = new Date('2022/08/10'), today = new Date
36
- // timeold = today.getTime() - BirthDay.getTime();
37
- // msPerDay = 864e5;
38
- // e_daysold = timeold / msPerDay;
39
- // daysold = Math.floor(e_daysold);
40
- // e_hrsold = 24 * (e_daysold - daysold);
41
- // hrsold = Math.floor(e_hrsold);
42
- // e_minsold = 60 * (e_hrsold - hrsold);
43
- // minsold = Math.floor(60 * (e_hrsold - hrsold));
44
- // seconds = Math.floor(60 * (e_minsold - minsold));
45
- // span_dt_dt.innerHTML = daysold + '天' + hrsold + '小时' + minsold + '分' + seconds + '秒';
46
- // }
47
- // show_date_time();
48
-
49
- /* 方案三 */
50
- {/* <link rel='stylesheet' href='https://lib.lib.luckyphoenix.eu.org/css/fontwaesome.css'></link>
51
- <strong><span class='fas fa-layer-group'></span>本站已稳定运行:</strong>
52
- <strong id='day_show'>载入中...</strong>
53
- <strong><span class='fas fa-clock'></span> 当前时辰:</strong>
54
- <strong id='time_show'>载入中...</strong>
55
- <span>|</span>
56
- <strong><span class='fas fa-heart'></span> 页面载入耗时:</strong>
57
- <strong id='load_show'>载入中...</strong> */}
58
-
59
- // var start = new Date().getTime();
60
- // function timestamp() {
61
- // let outcome = Math.round(new Date().getTime() / 1000).toString();
62
- // return outcome
63
- // }
64
- // function timer(intDiff) {
65
- // myTimer = window.setInterval(function () {
66
- // var day = 0,
67
- // hour = 0,
68
- // minute = 0,
69
- // second = 0;//时间默认值
70
- // if (intDiff > 0) {
71
- // day = Math.floor(intDiff / (60 * 60 * 24));
72
- // hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
73
- // minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
74
- // second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
75
- // }
76
- // if (hour <= 9) hour = '0' + hour;
77
- // if (minute <= 9) minute = '0' + minute;
78
- // if (second <= 9) second = '0' + second;
79
-
80
- // $('#day_show').html(day + '天' + hour + '时' + minute + '分' + second + '秒');
81
-
82
- // var now = new Date();
83
- // var year = now.getFullYear(); // 得到年份
84
- // var month = now.getMonth(); // 得到月份
85
- // var date = now.getDate(); // 得到日期
86
- // var day = now.getDay(); // 得到周几
87
- // var hour = now.getHours(); // 得到小时
88
- // var minu = now.getMinutes(); // 得到分钟
89
- // var sec = now.getSeconds(); // 得到秒钟
90
-
91
- // if (hour > 0 && hour <= 2) text = '丑时';
92
- // else if (hour > 2 && hour <= 4) text = '寅时';
93
- // else if (hour > 4 && hour <= 6) text = '卯时';
94
- // else if (hour > 6 && hour <= 8) text = '辰时';
95
- // else if (hour > 8 && hour <= 10) text = '巳时';
96
- // else if (hour > 10 && hour <= 12) text = '午时';
97
- // else if (hour > 12 && hour <= 14) text = '未时';
98
- // else if (hour > 14 && hour <= 16) text = '申时';
99
- // else if (hour > 16 && hour <= 18) text = '酉时';
100
- // else if (hour > 18 && hour <= 20) text = '戌时';
101
- // else if (hour > 20 && hour <= 22) text = '亥时';
102
- // else text = '子时';
103
- // $('#time_show').html('<a href='https://www.beijing-time.org/shichen' target='_blank' rel='noopener noreferrer'>' + text + '</a>');
104
-
105
- // intDiff++;
106
- // }, 1000);
107
- // }
108
- // var nowtime = timestamp(); // 现行时间戳
109
- // var mytime = 1570681975; // 设置安装时间(安装日期时间戳)
110
- // timer(nowtime - mytime); // 启动循环
111
-
112
- // // 页面加载完成后执行
113
- // $(function () {
114
- // // $('.footer-new').hide(); // 隐藏底部
115
- // // $('.footer-new').show(); // 显示底部
116
- // $('#load_show').html((new Date().getTime() - start) + 'ms');
1
+ // 设置id='day_show'
2
+ // <strong><span class='fas fa-clock'></span>本站已稳定运行:</strong>
3
+ // <strong id='day_show'>运行时间</strong>
4
+ var now = new Date();
5
+ function createtime() {
6
+ var grt = new Date('08/02/2022 00:00:00');
7
+ now.setTime(now.getTime() + 250);
8
+ days = (now - grt) / 1000 / 60 / 60 / 24;
9
+ dnum = Math.floor(days);
10
+ hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
11
+ hnum = Math.floor(hours);
12
+ if (String(hnum).length == 1) { hnum = '0' + hnum; }
13
+ minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
14
+ mnum = Math.floor(minutes);
15
+ if (String(mnum).length == 1) { mnum = '0' + mnum; }
16
+ seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
17
+ snum = Math.round(seconds);
18
+ if (String(snum).length == 1) { snum = '0' + snum; }
19
+ document.getElementById('day_show').innerHTML = dnum + '天' + hnum + '时' + mnum + '分' + snum + '秒';
20
+ }
21
+ setInterval('createtime()', 250);
22
+ //<div id='delay' style='display:none;'>
23
+ // function showmsg() { $('#delay').show(); }
24
+ // function showmsg() { var element = document.getElementById('delay'); if (element) { element.style.display = 'block';} }
25
+ // setInterval(showmsg, 2000); //2秒后显示
26
+
27
+ /* 方案二 */
28
+ {/* <span id='momk' fr-fix-stroke='true'>本站已运行:</span>
29
+ <span id='span_dt_dt' fr-fix-stroke='true'>180天18小时13分6秒</span> */}
30
+ /* 2022/08/10 */
31
+ /* id='span_dt_dt' */
32
+
33
+ // function show_date_time() {
34
+ // window.setTimeout('show_date_time()', 1e3);
35
+ // var BirthDay = new Date('2022/08/10'), today = new Date
36
+ // timeold = today.getTime() - BirthDay.getTime();
37
+ // msPerDay = 864e5;
38
+ // e_daysold = timeold / msPerDay;
39
+ // daysold = Math.floor(e_daysold);
40
+ // e_hrsold = 24 * (e_daysold - daysold);
41
+ // hrsold = Math.floor(e_hrsold);
42
+ // e_minsold = 60 * (e_hrsold - hrsold);
43
+ // minsold = Math.floor(60 * (e_hrsold - hrsold));
44
+ // seconds = Math.floor(60 * (e_minsold - minsold));
45
+ // span_dt_dt.innerHTML = daysold + '天' + hrsold + '小时' + minsold + '分' + seconds + '秒';
46
+ // }
47
+ // show_date_time();
48
+
49
+ /* 方案三 */
50
+ {/* <link rel='stylesheet' href='https://lib.lib.luckyphoenix.eu.org/css/fontwaesome.css'></link>
51
+ <strong><span class='fas fa-layer-group'></span>本站已稳定运行:</strong>
52
+ <strong id='day_show'>载入中...</strong>
53
+ <strong><span class='fas fa-clock'></span> 当前时辰:</strong>
54
+ <strong id='time_show'>载入中...</strong>
55
+ <span>|</span>
56
+ <strong><span class='fas fa-heart'></span> 页面载入耗时:</strong>
57
+ <strong id='load_show'>载入中...</strong> */}
58
+
59
+ // var start = new Date().getTime();
60
+ // function timestamp() {
61
+ // let outcome = Math.round(new Date().getTime() / 1000).toString();
62
+ // return outcome
63
+ // }
64
+ // function timer(intDiff) {
65
+ // myTimer = window.setInterval(function () {
66
+ // var day = 0,
67
+ // hour = 0,
68
+ // minute = 0,
69
+ // second = 0;//时间默认值
70
+ // if (intDiff > 0) {
71
+ // day = Math.floor(intDiff / (60 * 60 * 24));
72
+ // hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
73
+ // minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
74
+ // second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
75
+ // }
76
+ // if (hour <= 9) hour = '0' + hour;
77
+ // if (minute <= 9) minute = '0' + minute;
78
+ // if (second <= 9) second = '0' + second;
79
+
80
+ // $('#day_show').html(day + '天' + hour + '时' + minute + '分' + second + '秒');
81
+
82
+ // var now = new Date();
83
+ // var year = now.getFullYear(); // 得到年份
84
+ // var month = now.getMonth(); // 得到月份
85
+ // var date = now.getDate(); // 得到日期
86
+ // var day = now.getDay(); // 得到周几
87
+ // var hour = now.getHours(); // 得到小时
88
+ // var minu = now.getMinutes(); // 得到分钟
89
+ // var sec = now.getSeconds(); // 得到秒钟
90
+
91
+ // if (hour > 0 && hour <= 2) text = '丑时';
92
+ // else if (hour > 2 && hour <= 4) text = '寅时';
93
+ // else if (hour > 4 && hour <= 6) text = '卯时';
94
+ // else if (hour > 6 && hour <= 8) text = '辰时';
95
+ // else if (hour > 8 && hour <= 10) text = '巳时';
96
+ // else if (hour > 10 && hour <= 12) text = '午时';
97
+ // else if (hour > 12 && hour <= 14) text = '未时';
98
+ // else if (hour > 14 && hour <= 16) text = '申时';
99
+ // else if (hour > 16 && hour <= 18) text = '酉时';
100
+ // else if (hour > 18 && hour <= 20) text = '戌时';
101
+ // else if (hour > 20 && hour <= 22) text = '亥时';
102
+ // else text = '子时';
103
+ // $('#time_show').html('<a href='https://www.beijing-time.org/shichen' target='_blank' rel='noopener noreferrer'>' + text + '</a>');
104
+
105
+ // intDiff++;
106
+ // }, 1000);
107
+ // }
108
+ // var nowtime = timestamp(); // 现行时间戳
109
+ // var mytime = 1570681975; // 设置安装时间(安装日期时间戳)
110
+ // timer(nowtime - mytime); // 启动循环
111
+
112
+ // // 页面加载完成后执行
113
+ // $(function () {
114
+ // // $('.footer-new').hide(); // 隐藏底部
115
+ // // $('.footer-new').show(); // 显示底部
116
+ // $('#load_show').html((new Date().getTime() - start) + 'ms');
117
117
  // });
@@ -1,12 +1,12 @@
1
- // 今日诗词
2
- <script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
3
- {/* <div id="poem_sentence">日暮苍山远,天寒白屋贫。</div>
4
- <div id="poem_info">【唐代】刘长卿《逢雪宿芙蓉山主人》</div> */}
5
- {/* <script type="text/javascript"> */ }
6
- jinrishici.load(function (result) {
7
- var sentence = document.querySelector("#poem_sentence")
8
- var info = document.querySelector("#poem_info")
9
- sentence.innerHTML = result.data.content
10
- info.innerHTML = '【' + result.data.origin.dynasty + '】' + result.data.origin.author + '《' + result.data.origin.title + '》'
11
- });
1
+ // 今日诗词
2
+ <script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
3
+ {/* <div id="poem_sentence">日暮苍山远,天寒白屋贫。</div>
4
+ <div id="poem_info">【唐代】刘长卿《逢雪宿芙蓉山主人》</div> */}
5
+ {/* <script type="text/javascript"> */ }
6
+ jinrishici.load(function (result) {
7
+ var sentence = document.querySelector("#poem_sentence")
8
+ var info = document.querySelector("#poem_info")
9
+ sentence.innerHTML = result.data.content
10
+ info.innerHTML = '【' + result.data.origin.dynasty + '】' + result.data.origin.author + '《' + result.data.origin.title + '》'
11
+ });
12
12
  // </script>