1 Star 0 Fork 0

daly/yuxusheng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
search.json 203.52 KB
一键复制 编辑 原始数据 按行查看 历史
ondaly 提交于 2020-11-29 22:47 . Site updated: 2020-11-29 22:46:49
[{"title":"最方便的 Hexo 部署","url":"/2.html","content":"<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">deploy:</span><br><span class=\"line\"> - type: git</span><br><span class=\"line\"> repo:</span><br><span class=\"line\"> github:</span><br><span class=\"line\"> url: https:&#x2F;&#x2F;github.com:name&#x2F;name.git</span><br><span class=\"line\"> branch: master</span><br><span class=\"line\"> token: GitHub_Personal_Access_Token</span><br><span class=\"line\"> name: name</span><br><span class=\"line\"> email: email@163.com</span><br></pre></td></tr></table></figure>\n\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93ZWlsaW5pbmcuY2YvMy5odG1s\">获取 GitHub Personal Access Token 方法<i class=\"fa fa-external-link-alt\"></i></span></p>\n<a id=\"more\"></a>\n\n\n\n","categories":["default"],"tags":["default"]},{"title":"获取 GitHub Personal Access Token 方法","url":"/3.html","content":"<a id=\"more\"></a>\n\n<p>要将博客部署到 GitHub Pages 上, push 操作自然是免不了的,这就要求要有相应的仓库权限。直接用帐号密码无疑是十分不安全的,所以这里通过 GitHub Personal Access Token 来实现。</p>\n<p>点击 GitHub <span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3NldHRpbmdzL3Byb2ZpbGU=\">用户设置页面<i class=\"fa fa-external-link-alt\"></i></span> 最下方的 <span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3NldHRpbmdzL2FwcHM=\">Developer setting<i class=\"fa fa-external-link-alt\"></i></span> ,然后选择 <code>Personal access tokens</code> 来生成一个 token,由于我们只需要能够对普通仓库 push 就行了,所以把 <code>repo</code> 部分勾上即可。<br><img data-src=\"/3/1240.jpeg\" alt=\"GitHub Personal Access Token\" loading=\"lazy\"></p>\n","categories":["default"],"tags":["default"]},{"title":"最简单的 Hexo npm 版本升级","url":"/4.html","content":"<p>[TOC]</p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3JhaW5lb3JzaGluZS9ucG0tY2hlY2stdXBkYXRlcw==\">GitHub<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h2 id=\"安装npm-check-updates\"><a href=\"#安装npm-check-updates\" class=\"headerlink\" title=\"安装npm-check-updates\"></a>安装npm-check-updates</h2><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">sudo npm install -g npm-check-updates</span><br></pre></td></tr></table></figure>\n\n<a id=\"more\"></a>\n\n<h2 id=\"更新-Hexo\"><a href=\"#更新-Hexo\" class=\"headerlink\" title=\"更新 Hexo\"></a>更新 Hexo</h2><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">sudo npm install hexo-cli -g</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"更新所有插件\"><a href=\"#更新所有插件\" class=\"headerlink\" title=\"更新所有插件\"></a>更新所有插件</h2><h3 id=\"检测版本\"><a href=\"#检测版本\" class=\"headerlink\" title=\"检测版本\"></a>检测版本</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">ncu</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"更新package-json\"><a href=\"#更新package-json\" class=\"headerlink\" title=\"更新package.json\"></a>更新package.json</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">ncu -u</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"安装package-json新版本\"><a href=\"#安装package-json新版本\" class=\"headerlink\" title=\"安装package.json新版本\"></a>安装package.json新版本</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"脚本\"><a href=\"#脚本\" class=\"headerlink\" title=\"脚本\"></a>脚本</h2><p><code>vi update.sh</code></p>\n<figure class=\"highlight bash\"><table><tr><td class=\"code\"><pre><span class=\"line\">ncu</span><br><span class=\"line\">ncu -u</span><br><span class=\"line\">npm install</span><br></pre></td></tr></table></figure>\n\n<p><code>bash update.sh</code></p>\n","categories":["default"],"tags":["default"]},{"title":"彻底解决 hexo init 卡顿问题","url":"/5.html","content":"<p>[TOC]</p>\n<p><code>hexo init blog</code>卡住?<span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS9zZWFyY2g/cT0lRTUlQkQlQkIlRTUlQkElOTUlRTglQTclQTMlRTUlODYlQjMraGV4bytpbml0KyVFNSU4RCVBMSVFOSVBMSVCRiVFOSU5NyVBRSVFOSVBMiU5OCZvcT0lRTUlQkQlQkIlRTUlQkElOTUlRTglQTclQTMlRTUlODYlQjMraGV4bytpbml0KyVFNSU4RCVBMSVFOSVBMSVCRiVFOSU5NyVBRSVFOSVBMiU5OCZhcXM9Y2hyb21lLi42OWk1Ny40MDZqMGoxJnNvdXJjZWlkPWNocm9tZSZpZT1VVEYtOA==\">Google<i class=\"fa fa-external-link-alt\"></i></span>谷姐没好办法,分享下自己办法(其实是在翻译源码换gitee源)</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm config set registry http:&#x2F;&#x2F;registry.npm.taobao.org</span><br><span class=\"line\">npm install hexo-cli@latest -g</span><br><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;gitee.com&#x2F;weilining&#x2F;hexo-starter.git blog</span><br><span class=\"line\">cd blog</span><br><span class=\"line\">## git submodule init</span><br><span class=\"line\">## git submodule update</span><br><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;gitee.com&#x2F;weilining&#x2F;hexo-theme-landscape.git themes&#x2F;landscape</span><br><span class=\"line\">npm i</span><br><span class=\"line\">hexo server</span><br></pre></td></tr></table></figure>\n\n\n\n<a id=\"more\"></a>\n\n<h2 id=\"源码\"><a href=\"#源码\" class=\"headerlink\" title=\"源码\"></a>源码</h2><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL2hleG9qcy9oZXhvLWNsaS9ibG9iL21hc3Rlci9saWIvY29uc29sZS9pbml0Lmpz\">GitHub<i class=\"fa fa-external-link-alt\"></i></span></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">hexo init blog</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"解析\"><a href=\"#解析\" class=\"headerlink\" title=\"解析\"></a>解析</h2><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;github.com&#x2F;hexojs&#x2F;hexo-starter.git blog</span><br><span class=\"line\">cd blog</span><br><span class=\"line\">git submodule init</span><br><span class=\"line\">git submodule update</span><br><span class=\"line\">npm i</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"换gitee\"><a href=\"#换gitee\" class=\"headerlink\" title=\"换gitee\"></a>换gitee</h2><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;gitee.com&#x2F;weilining&#x2F;hexo-starter.git blog</span><br><span class=\"line\">cd blog</span><br><span class=\"line\">git submodule init</span><br><span class=\"line\">git submodule update</span><br><span class=\"line\">npm config set registry http:&#x2F;&#x2F;registry.npm.taobao.org</span><br><span class=\"line\">npm i</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"参考\"><a href=\"#参考\" class=\"headerlink\" title=\"参考\"></a>参考</h2><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXQtc2NtLmNvbS9ib29rL3poL3YyL0dpdC0lRTUlQjclQTUlRTUlODUlQjctJUU1JUFEJTkwJUU2JUE4JUExJUU1JTlEJTk3\">Git 工具 - 子模块<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL2hleG9qcw==\">hexojs<i class=\"fa fa-external-link-alt\"></i></span></p>\n","categories":["default"],"tags":["default"]},{"title":"解决 GitHub Pages 出现独角兽","url":"/6.html","content":"<p><img data-src=\"/6/image-20201021023637217.png\" alt=\"image-20201021023637217\" loading=\"lazy\"></p>\n<a id=\"more\"></a>\n\n<p><strong>We&#39;re having a really bad day.</strong></p>\n<p>The Unicorns have taken over. We&#39;re doing our best to get them under control and get GitHub back up and running.</p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL2NvbnRhY3Q=\">Contact Support<i class=\"fa fa-external-link-alt\"></i></span> — <span class=\"exturl\" data-url=\"aHR0cHM6Ly9zdGF0dXMuZ2l0aHViLmNvbS8=\">GitHub Status<i class=\"fa fa-external-link-alt\"></i></span> — <span class=\"exturl\" data-url=\"aHR0cHM6Ly90d2l0dGVyLmNvbS9naXRodWJzdGF0dXM=\">@githubstatus<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><a href=\"https://weilining.cf/\"><img data-src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEQUM1QkUxRUI0MUMxMUUyQUQzREIxQzRENUFFNUM5NiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEQUM1QkUxRkI0MUMxMUUyQUQzREIxQzRENUFFNUM5NiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkUxNkJENjdGQjNGMDExRTJBRDNEQjFDNEQ1QUU1Qzk2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkUxNkJENjgwQjNGMDExRTJBRDNEQjFDNEQ1QUU1Qzk2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hfPRaQAAB6lJREFUeNrsW2mME2UYbodtt+2222u35QheoCCYGBQligIJgkZJNPzgigoaTEj8AdFEMfADfyABkgWiiWcieK4S+QOiHAYUj2hMNKgYlEujpNttu9vttbvdw+chU1K6M535pt3ubHCSyezR+b73eb73+t7vrfXsufOW4bz6+vom9/b23ovnNNw34b5xYGAgODg46Mbt4mesVmsWd1qSpHhdXd2fuP/Afcput5/A88xwymcdBgLqenp6FuRyuWV4zu/v759QyWBjxoz5t76+/gun09mK5xFyakoCAPSaTCazNpvNPoYVbh6O1YKGRF0u13sNDQ27QMzfpiAAKj0lnU6/gBVfAZW2WWpwwVzy0IgP3G73FpjI6REhAGA9qVRqA1b9mVoBVyIC2tDi8Xg24+dUzQiAbS/s7Ox8G2o/3mKCC+Zw0efzPQEfcVjYrARX3dbV1bUtHo8fMgt42f+Mp0yUTVQbdWsAHVsikdiHkHaPxcQXQufXgUBgMRxme9U0AAxfH4vFvjM7eF6UkbJS5qoQwEQGA57Ac5JllFyUVZZ5ckUEgMVxsK2jlSYzI+QXJsiyjzNEAJyJAzb/KQa41jJKL8pODMQiTEAymXw5n8/P0IjD3bh7Rgog59aanxiIRTVvV/oj0tnHca/WMrVwODwB3raTGxzkBg/gnZVapFV62Wy2n5AO70HM/5wbJ0QnXyQSaVPDIuNZzY0V3ntHMwxiwHA0Gj2Np7ecIBDgaDAYXKCQJM1DhrgJ3nhulcPbl8j4NmHe46X/g60fwbz3aewjkqFQaAqebWU1AOqyQwt8Id6qEHMc97zu7u7FGGsn7HAiVuosVw7P35C1nccdgSCxop1dHeZswmfHMnxBo6ZTk+jN8dl/vF7vWofDsa+MLN9oEUBMxOb3+1eoEsBVw6Zmua49r8YmhAKDiEPcMwBsxMiqQ+ixzPFxZyqRpXARG/YOr1ObFJ0gUskXBbamcR1OKmMUvDxHRAu8/LmY3jFLMUpFqz9HxG65smYJdyKyECOxDiEAe/p1gjF2oonivZAsxVgl2daa4EQWCW6J55qFAFFZiJWYLxNQy2qOSUzGRsyXCUDIeliwAHEO4WSlWQBRFoZakXcKmCXmyXAKs0Ve9vl8q42WoIYpJU4hV3hKcNs8m9gl7p/xQ73eF5kB4j5mNrWmTJRNwAzqiV1CxjVTZCIkEq+Z1bZFZSN2CenmVAFVy4Plz8xKAGWjjAKFk6lCBMDR/MJjLLMSQNm43xAiQKTaA+9/wewhDjL+JVI1kkTSSOTcKbMTwPqESAot6dn6Fr1gHwVJju6IRuyiByPuUUBAg5DGkAgBmxlvdgIEK9gDkohdY/BJo4CAG0R8miRSsGABkgVQs4KXu098IgUXSSRsFAoKZiVAVDY2WUiiPTjYRi41KwGisrGsLtlsth8Fiwnz2fBkQvWfRtlE3iF2yW63/yCacXZ1dW02GwGyTFaRd4idJnCKHRaCxYRHoG5LTKT6SyiToP1fJHbmAYPYRR0UnZQtMnA6s0zg+GZBlt0Gdo7EPHgpE3Q6nZ8YyLhc8Xj8MJh/aKTAY+5FPAKHLE7RdwuYJZmNwzyCMkBCYyKROJBMJl9B/PXXCjjmCmDOVzH3fiPpObEWGqoKe4EBl8v1hlqsdLvd23mkxHM9pc9kMpmno9HoeTii7ewbHEZPPx1ztLS1tV3AnGuMjiNjvbQFuHw6zDo5By7dTPAQNBgMLrRarTkSls1mnwT7uwp9virx9QzbW/HuV/j5d/b+6jniKlllP8lkeONJDk+dq9GsQTnC4fB1heO0K47Hwe7WdDr9nAKgXwOBwHI+C45Htj1d6sd429TUNEcmUdc+PRaLHcvn87dXW4ugzdsaGxufL94NFv9zi1J7GVbhlvb2dnaJ3SVrxfc+n2+NTsZ7/H7/Mr3g5XdSIHyJSH1PZ+7fToyl2+ErqilgZ4NaLYB9goVGaHjR93Hv1ZrU4XDsFT20kH3PObzbWk0CgG1jacVIUnAQb9F+VexyLMzkpcLv0IJV7AHQIOCAUYHx7v5qgScmYHtTqSAyZLEJTK22Bie4iq3xsqpm4SAf9Hq9a2DnJ4uLK3SEULcdRvp3i3zHySqpficxEdsQc1NrlYXXvR+O7qASSezXB+h1SuUomgg9LL8BUoV4749EIolKh+EiqWmqVEZlDgHks2pxHw7xTqUQw9J5NcAXOK10AGIoZ6Zli6JY6Z1Q461KoZ4NiKLHarW+KDsxlDUPHZ5zPQZqUVDPJsTqb5n9malbpAh8C2XXDLl62+WZIDFRUlNVOiwencnNU3aQEkL+cDMSoLvZo2fQB7AJssNAuFuvorlDVVkkg2I87+jo2K2QAVphDrfyViK5VqtO34OkaxXCp+7drdDBCAdubm6eidX+2WwqT5komwh4YQLk+H4aE93h8Xg2gvHekQZOGSgLZTLyDTLJ4Lx9/KZWKBSainT4Iy3FqQBfnUZR42PKQFksBr9QKVXCPusD3OiA/RkQ5kP8qV/Jl1WywAp/6+dcmPM2zL1UrUahe4JqfnWWKXIul3uUbfP8njAFLW1OFr3gdFtZ72cNH+PtQT7/brW+NXqJAHh0y9V8/U/A1U7AfwIMAD7mS3pCbuWJAAAAAElFTkSuQmCC\" alt=\"img\" loading=\"lazy\"></a> </p>\n<p>[TOC]</p>\n<h2 id=\"裸yourname-github-io\"><a href=\"#裸yourname-github-io\" class=\"headerlink\" title=\"裸yourname.github.io\"></a>裸yourname.github.io</h2><p>只能等GitHub Pages恢复正常</p>\n<h2 id=\"域名绑定GitHub-Pages\"><a href=\"#域名绑定GitHub-Pages\" class=\"headerlink\" title=\"域名绑定GitHub Pages\"></a>域名绑定GitHub Pages</h2><p>当GitHub Pages出现独角兽,站点文件可以托管到<span class=\"exturl\" data-url=\"aHR0cHM6Ly92ZXJjZWwuY29tLw==\">vercel<i class=\"fa fa-external-link-alt\"></i></span>、<span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cubmV0bGlmeS5jb20v\">netlify<i class=\"fa fa-external-link-alt\"></i></span>,域名可以解析到托管平台。</p>\n<h3 id=\"部署到vercel\"><a href=\"#部署到vercel\" class=\"headerlink\" title=\"部署到vercel\"></a>部署到vercel</h3><p>不支持QQ邮箱、163邮箱,换句话说,请使用谷歌邮箱</p>\n<h4 id=\"使用谷歌邮箱注册登陆gitlab\"><a href=\"#使用谷歌邮箱注册登陆gitlab\" class=\"headerlink\" title=\"使用谷歌邮箱注册登陆gitlab\"></a>使用谷歌邮箱注册登陆gitlab</h4><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRsYWIuY29tL3VzZXJzL3NpZ25faW4=\">https://gitlab.com/users/sign_in<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"使用gitlab注册登陆vercel\"><a href=\"#使用gitlab注册登陆vercel\" class=\"headerlink\" title=\"使用gitlab注册登陆vercel\"></a>使用gitlab注册登陆vercel</h4><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly92ZXJjZWwuY29tLw==\">https://vercel.com<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"导入github的repo\"><a href=\"#导入github的repo\" class=\"headerlink\" title=\"导入github的repo\"></a>导入github的repo</h4><h4 id=\"vercel的Domains绑定域名\"><a href=\"#vercel的Domains绑定域名\" class=\"headerlink\" title=\"vercel的Domains绑定域名\"></a>vercel的Domains绑定域名</h4><h4 id=\"域名解析\"><a href=\"#域名解析\" class=\"headerlink\" title=\"域名解析\"></a>域名解析</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">A记录解析76.76.21.21 || CNAME记录解析cname.vercel-dns.com</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"部署到netlify\"><a href=\"#部署到netlify\" class=\"headerlink\" title=\"部署到netlify\"></a>部署到netlify</h3><p>要科学,<span class=\"exturl\" data-url=\"aHR0cHM6Ly9hcGkubmV0bGlmeS5jb23miZPkuI3lvIDlsLHnp5HlrablkKcv\">https://api.netlify.com打不开就科学吧<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"GitHub登陆\"><a href=\"#GitHub登陆\" class=\"headerlink\" title=\"GitHub登陆\"></a>GitHub登陆</h4><h4 id=\"导入GitHub-repo\"><a href=\"#导入GitHub-repo\" class=\"headerlink\" title=\"导入GitHub repo\"></a>导入GitHub repo</h4><h4 id=\"绑定域名\"><a href=\"#绑定域名\" class=\"headerlink\" title=\"绑定域名\"></a>绑定域名</h4><h4 id=\"域名解析-1\"><a href=\"#域名解析-1\" class=\"headerlink\" title=\"域名解析\"></a>域名解析</h4><h2 id=\"PS\"><a href=\"#PS\" class=\"headerlink\" title=\"PS\"></a>PS</h2><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9kb2NzLmdpdGh1Yi5jb20vY24vZnJlZS1wcm8tdGVhbUBsYXRlc3QvZ2l0aHViL3dvcmtpbmctd2l0aC1naXRodWItcGFnZXMvYWJvdXQtZ2l0aHViLXBhZ2Vz\">关于 GitHub Pages<i class=\"fa fa-external-link-alt\"></i></span>流量每月100GB</p>\n","categories":["default"],"tags":["default"]},{"title":"最简单的使用 jsdelivr 加速网站","url":"/8.html","content":"<p>[TOC]</p>\n<h2 id=\"jsdelivr加速效果\"><a href=\"#jsdelivr加速效果\" class=\"headerlink\" title=\"jsdelivr加速效果\"></a>jsdelivr加速效果</h2><p>使用 jsDelivr 为 Hexo 博客提供高效免费的CDN加速,节省服务器流量且减少宽带占用</p>\n<p><span class=\"exturl\" data-url=\"aHR0cDovL3BpbmcuY2hpbmF6LmNvbS9jZG4uanNkZWxpdnIubmV0\">http://ping.chinaz.com/cdn.jsdelivr.net<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>感受下jsdelivr的加速效果</p>\n<a id=\"more\"></a>\n\n<h2 id=\"使用-jsdelivr-加速-Github-仓库资源背景等图\"><a href=\"#使用-jsdelivr-加速-Github-仓库资源背景等图\" class=\"headerlink\" title=\"使用 jsdelivr 加速 Github 仓库资源背景等图\"></a>使用 jsdelivr 加速 Github 仓库资源背景等图</h2><p>当我们使用 <code>Github</code> 仓库资源时,会因为一些奇怪的原因而掉链子,但我们可以通过 jsdelivr 做 CDN 加速</p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuanNkZWxpdnIuY29tLw==\">jsdelivr<i class=\"fa fa-external-link-alt\"></i></span> 是一个免费的开源 CDN</p>\n<h3 id=\"使用方式:\"><a href=\"#使用方式:\" class=\"headerlink\" title=\"使用方式:\"></a>使用方式:</h3><p><code>https://cdn.jsdelivr.net/gh/</code> Github 用户名/仓库名/资源路径</p>\n<p>默认会访问 <code>master</code> 分支下的资源,可以通过 仓库名拼接 @ + <code>release / commit / branch</code> 来访问特定版本下的资源</p>\n<h3 id=\"例子:\"><a href=\"#例子:\" class=\"headerlink\" title=\"例子:\"></a>例子:</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL3dlaWxpbmluZy9ibG9nLmlvL21hc3Rlci9pbWFnZXMvYmFja2dyb3VuZC1kYXJrLmpwZw==\">https://raw.githubusercontent.com/weilining/blog.io/master/images/background-dark.jpg<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvL2ltYWdlcy9iYWNrZ3JvdW5kLWRhcmsuanBn\">https://cdn.jsdelivr.net/gh/weilining/blog.io/images/background-dark.jpg<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"背景图\"><a href=\"#背景图\" class=\"headerlink\" title=\"背景图\"></a>背景图</h3><p>GitHub仓库:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3dlaWxpbmluZy9ibG9nLmlvL2Jsb2IvbWFzdGVyL2ltYWdlcy9iYWNrZ3JvdW5kLWRhcmsuanBn\">https://github.com/weilining/blog.io/blob/master/images/background-dark.jpg<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>对应jsdelivr地址:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvL2ltYWdlcy9iYWNrZ3JvdW5kLWRhcmsuanBn\">https://cdn.jsdelivr.net/gh/weilining/blog.io/images/background-dark.jpg<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>修改地址:<code>blog/source/_data/styles.styl</code></p>\n<h4 id=\"本地\"><a href=\"#本地\" class=\"headerlink\" title=\"本地\"></a>本地</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">body&#123;</span><br><span class=\"line\"> background:url(&#x2F;images&#x2F;background-dark.jpg);</span><br><span class=\"line\">&#125;</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"套jsdelivr作为CDN\"><a href=\"#套jsdelivr作为CDN\" class=\"headerlink\" title=\"套jsdelivr作为CDN\"></a>套jsdelivr作为CDN</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">body&#123;</span><br><span class=\"line\"> background:url(&#39;https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;background-dark.jpg&#39;);</span><br><span class=\"line\">&#125;</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"头像\"><a href=\"#头像\" class=\"headerlink\" title=\"头像\"></a>头像</h3><p>GitHub地址:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3dlaWxpbmluZy9ibG9nLmlvL2Jsb2IvbWFzdGVyL2ltYWdlcy9sb2dvLnN2Zw==\">https://github.com/weilining/blog.io/blob/master/images/logo.svg<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>jsdelivr地址:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvL2ltYWdlcy9sb2dvLnN2Zw==\">https://cdn.jsdelivr.net/gh/weilining/blog.io/images/logo.svg<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>修改地址:<code>_config.next.yml</code></p>\n<h4 id=\"本地-1\"><a href=\"#本地-1\" class=\"headerlink\" title=\"本地\"></a>本地</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">avatar:</span><br><span class=\"line\"> url: &#x2F;images&#x2F;logo.svg</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"套jsdelivr作为CDN-1\"><a href=\"#套jsdelivr作为CDN-1\" class=\"headerlink\" title=\"套jsdelivr作为CDN\"></a>套jsdelivr作为CDN</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">avatar:</span><br><span class=\"line\"> url: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;logo.svg</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"鼠标点击特效:社会主义价值观\"><a href=\"#鼠标点击特效:社会主义价值观\" class=\"headerlink\" title=\"鼠标点击特效:社会主义价值观\"></a>鼠标点击特效:社会主义价值观</h3><p>GitHub地址:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3dlaWxpbmluZy9ibG9nLmlvL2Jsb2IvbWFzdGVyL2pzL2N1cnNvci9jbGljay13b3JkLmpz\">https://github.com/weilining/blog.io/blob/master/js/cursor/click-word.js<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>jsdelivr地址:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvL2pzL2N1cnNvci9jbGljay13b3JkLmpz\">https://cdn.jsdelivr.net/gh/weilining/blog.io/js/cursor/click-word.js<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"本地-2\"><a href=\"#本地-2\" class=\"headerlink\" title=\"本地\"></a>本地</h4><p><code>source/_data/head.njk</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&lt;!-- jquery --&gt;</span><br><span class=\"line\">&lt;script src&#x3D;&quot;https:&#x2F;&#x2F;code.jquery.com&#x2F;jquery-3.4.1.min.js&quot;&gt;&lt;&#x2F;script&gt;</span><br><span class=\"line\">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;&#x2F;js&#x2F;cursor&#x2F;click-loveword.js&quot;&gt;&lt;&#x2F;script&gt;</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"套jsdelivr作为CDN-2\"><a href=\"#套jsdelivr作为CDN-2\" class=\"headerlink\" title=\"套jsdelivr作为CDN\"></a>套jsdelivr作为CDN</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&lt;!-- jquery --&gt;</span><br><span class=\"line\">&lt;script src&#x3D;&quot;https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;npm&#x2F;jquery@3.4.1&#x2F;dist&#x2F;jquery.min.js&quot;&gt;&lt;&#x2F;script&gt;</span><br><span class=\"line\">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;js&#x2F;cursor&#x2F;click-loveword.js&quot;&gt;&lt;&#x2F;script&gt;</span><br></pre></td></tr></table></figure>\n\n<p><code>click-loveword.js</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&#x2F;* 社会主体核心价值观效果 *&#x2F;</span><br><span class=\"line\">var a_idx &#x3D; 0;</span><br><span class=\"line\">jQuery(document).ready(function($) &#123;</span><br><span class=\"line\"> $(&quot;body&quot;).click(function(e) &#123;</span><br><span class=\"line\"> &#x2F;&#x2F; var a &#x3D; new Array(&quot;❤富强❤&quot;,&quot;❤民主❤&quot;,&quot;❤文明❤&quot;,&quot;❤和谐❤&quot;,&quot;❤自由❤&quot;,&quot;❤平等❤&quot;,&quot;❤公正❤&quot;,&quot;❤法治❤&quot;,&quot;❤爱国❤&quot;,&quot;❤敬业❤&quot;,&quot;❤诚信❤&quot;,&quot;❤友善❤&quot;);</span><br><span class=\"line\"> var a &#x3D; new Array(&quot;富强&quot;,&quot;民主&quot;,&quot;文明&quot;,&quot;和谐&quot;,&quot;自由&quot;,&quot;平等&quot;,&quot;公正&quot;,&quot;法治&quot;,&quot;爱国&quot;,&quot;敬业&quot;,&quot;诚信&quot;,&quot;友善&quot;);</span><br><span class=\"line\"> var $i &#x3D; $(&quot;&lt;span&gt;&lt;&#x2F;span&gt;&quot;).text(a[a_idx]);</span><br><span class=\"line\"> a_idx &#x3D; (a_idx + 1) % a.length;</span><br><span class=\"line\"> var x &#x3D; e.pageX,</span><br><span class=\"line\"> y &#x3D; e.pageY;</span><br><span class=\"line\"> $i.css(&#123;</span><br><span class=\"line\"> &quot;z-index&quot;: 999999999999999999999999999999999999999999999999999999999999999999999,</span><br><span class=\"line\"> &quot;top&quot;: y - 20,</span><br><span class=\"line\"> &quot;left&quot;: x,</span><br><span class=\"line\"> &quot;position&quot;: &quot;absolute&quot;,</span><br><span class=\"line\"> &quot;font-weight&quot;: &quot;bold&quot;,</span><br><span class=\"line\"> &quot;color&quot;: &quot;rgb(&quot;+~~(255*Math.random())+&quot;,&quot;+~~(255*Math.random())+&quot;,&quot;+~~(255*Math.random())+&quot;)&quot;</span><br><span class=\"line\"> &#125;);</span><br><span class=\"line\"> $(&quot;body&quot;).append($i);</span><br><span class=\"line\"> $i.animate(&#123;</span><br><span class=\"line\"> &quot;top&quot;: y - 180,</span><br><span class=\"line\"> &quot;opacity&quot;: 0</span><br><span class=\"line\"> &#125;,</span><br><span class=\"line\"> 1500,</span><br><span class=\"line\"> function() &#123;</span><br><span class=\"line\"> $i.remove();</span><br><span class=\"line\"> &#125;);</span><br><span class=\"line\"> &#125;);</span><br><span class=\"line\">&#125;);</span><br><span class=\"line\">&#x2F;* 爱心特效 *&#x2F;</span><br><span class=\"line\">! function (e, t, a) &#123;</span><br><span class=\"line\"> function n() &#123;</span><br><span class=\"line\"> c(&quot;.heart&#123;width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);&#125;.heart:after,.heart:before&#123;content: &#39;&#39;;width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;&#125;.heart:after&#123;top: -5px;&#125;.heart:before&#123;left: -5px;&#125;&quot;), o(), r()</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"></span><br><span class=\"line\"> function r() &#123;</span><br><span class=\"line\"> for (var e &#x3D; 0; e &lt; d.length; e++) d[e].alpha &lt;&#x3D; 0 ? (t.body.removeChild(d[e].el), d.splice(e, 1)) : (d[e].y--, d[e].scale +&#x3D; .004, d[e].alpha -&#x3D; .013, d[e].el.style.cssText &#x3D; &quot;left:&quot; + d[e].x + &quot;px;top:&quot; + d[e].y + &quot;px;opacity:&quot; + d[e].alpha + &quot;;transform:scale(&quot; + d[e].scale + &quot;,&quot; + d[e].scale + &quot;) rotate(45deg);background:&quot; + d[e].color + &quot;;z-index:99999&quot;);</span><br><span class=\"line\"> requestAnimationFrame(r)</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"></span><br><span class=\"line\"> function o() &#123;</span><br><span class=\"line\"> var t &#x3D; &quot;function&quot; &#x3D;&#x3D; typeof e.onclick &amp;&amp; e.onclick;</span><br><span class=\"line\"> e.onclick &#x3D; function (e) &#123;</span><br><span class=\"line\"> t &amp;&amp; t(), i(e)</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"></span><br><span class=\"line\"> function i(e) &#123;</span><br><span class=\"line\"> var a &#x3D; t.createElement(&quot;div&quot;);</span><br><span class=\"line\"> a.className &#x3D; &quot;heart&quot;, d.push(&#123;</span><br><span class=\"line\"> el: a,</span><br><span class=\"line\"> x: e.clientX - 5,</span><br><span class=\"line\"> y: e.clientY - 5,</span><br><span class=\"line\"> scale: 1,</span><br><span class=\"line\"> alpha: 1,</span><br><span class=\"line\"> color: s()</span><br><span class=\"line\"> &#125;), t.body.appendChild(a)</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"></span><br><span class=\"line\"> function c(e) &#123;</span><br><span class=\"line\"> var a &#x3D; t.createElement(&quot;style&quot;);</span><br><span class=\"line\"> a.type &#x3D; &quot;text&#x2F;css&quot;;</span><br><span class=\"line\"> try &#123;</span><br><span class=\"line\"> a.appendChild(t.createTextNode(e))</span><br><span class=\"line\"> &#125; catch (t) &#123;</span><br><span class=\"line\"> a.styleSheet.cssText &#x3D; e</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"> t.getElementsByTagName(&quot;head&quot;)[0].appendChild(a)</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"></span><br><span class=\"line\"> function s() &#123;</span><br><span class=\"line\"> return &quot;rgb(&quot; + ~~(255 * Math.random()) + &quot;,&quot; + ~~(255 * Math.random()) + &quot;,&quot; + ~~(255 * Math.random()) + &quot;)&quot;</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"> var d &#x3D; [];</span><br><span class=\"line\"> e.requestAnimationFrame &#x3D; function () &#123;</span><br><span class=\"line\"> return e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) &#123;</span><br><span class=\"line\"> setTimeout(e, 1e3 &#x2F; 60)</span><br><span class=\"line\"> &#125;</span><br><span class=\"line\"> &#125;(), n()</span><br><span class=\"line\">&#125;(window, document);</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"PS\"><a href=\"#PS\" class=\"headerlink\" title=\"PS\"></a>PS</h2><p>jsdelivr github 延迟,建议使用<code>https://cdn.jsdelivr.net/gh/</code> Github 用户名/仓库名/资源路径</p>\n<p>有延迟:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvQG1hc3Rlci9qcy9jdXJzb3Iv\">https://cdn.jsdelivr.net/gh/weilining/blog.io@master/js/cursor/<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>无延迟:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvL2pzL2N1cnNvci8=\">https://cdn.jsdelivr.net/gh/weilining/blog.io/js/cursor/<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>无延迟:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doL3dlaWxpbmluZy9ibG9nLmlvQDEuMC9qcy9jdXJzb3Iv\">https://cdn.jsdelivr.net/gh/weilining/blog.io@1.0/js/cursor/<i class=\"fa fa-external-link-alt\"></i></span></p>\n","categories":["default"],"tags":["default"]},{"title":"最简单的 LaTeX 入门","url":"/7.html","content":"<p>mac下使用Typora添加数学公式<code>command+option+B</code></p>\n<h2 id=\"下标\"><a href=\"#下标\" class=\"headerlink\" title=\"下标\"></a>下标</h2><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">R_&#123;ij&#125;</span><br></pre></td></tr></table></figure>\n<h2 id=\"长分式\"><a href=\"#长分式\" class=\"headerlink\" title=\"长分式\"></a>长分式</h2><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">\\frac&#123;X&#125;&#123;Y&#125;</span><br></pre></td></tr></table></figure>\n<p>好用!</p>\n<h2 id=\"练手\"><a href=\"#练手\" class=\"headerlink\" title=\"练手\"></a>练手</h2><p>$$<br>R_i=\\sum_{i}^{n}{\\frac{X_i}{x}}\\ln(\\frac{\\frac{X_i}{X}}{\\frac{Y_i}{Y}})<br>$$</p>\n<p>$$<br>R_{ai}=\\sum_{i}{\\frac{X_{ji}}{X_j}}\\ln(\\frac{\\frac{X_ji}{Xj}}{\\frac{P_ji}{P_j}})<br>$$</p>\n<p>$$<br>R_a=\\sum_{j}{\\frac{X_j}{x}}R_{ai}<br>$$</p>\n<p>$$<br>R_b=\\sum_{j}{\\frac{Xj}{X}}\\ln(\\frac{\\frac{X_j}{X}}{\\frac{P_j}{P}})<br>$$</p>\n<p>$$<br>R=R_a+{R_b}<br>$$</p>\n<p>$$<br>Z_a=\\frac{R_a}{R}<br>$$</p>\n<p>$$<br>Z_b=\\frac{R_b}{R}<br>$$</p>\n<p>$$<br>Z_j=\\frac{X_jR_{ai}}{XR}<br>$$</p>\n","categories":["default"],"tags":["default"]},{"title":"2020 Hexo NexT 最简单的深度美化","url":"/1.html","content":"<p>[TOC]</p>\n<h2 id=\"1分钟教程\"><a href=\"#1分钟教程\" class=\"headerlink\" title=\"1分钟教程\"></a>1分钟教程</h2><p>看完1分钟教程,后面初始化用来理解和查缺补漏</p>\n<h3 id=\"安装\"><a href=\"#安装\" class=\"headerlink\" title=\"安装\"></a>安装</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm config set registry http:&#x2F;&#x2F;registry.npm.taobao.org</span><br><span class=\"line\">npm install hexo-cli@latest -g</span><br><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;gitee.com&#x2F;weilining&#x2F;hexo-starter.git blog</span><br><span class=\"line\">cd blog</span><br><span class=\"line\"></span><br><span class=\"line\">npm i</span><br><span class=\"line\">npm install hexo-theme-next@latest</span><br></pre></td></tr></table></figure>\n\n\n\n\n\n<h2 id=\"初始化\"><a href=\"#初始化\" class=\"headerlink\" title=\"初始化\"></a>初始化</h2><h2 id=\"开始\"><a href=\"#开始\" class=\"headerlink\" title=\"开始\"></a>开始</h2><p>先配置好以下环境</p>\n<ul>\n<li><p>Git</p>\n</li>\n<li><p>Node.js</p>\n</li>\n</ul>\n<a id=\"more\"></a>\n\n<h3 id=\"Hexo-amp-amp-NexT安装\"><a href=\"#Hexo-amp-amp-NexT安装\" class=\"headerlink\" title=\"Hexo&amp;&amp;NexT安装\"></a>Hexo&amp;&amp;NexT安装</h3><h4 id=\"正常\"><a href=\"#正常\" class=\"headerlink\" title=\"正常\"></a>正常</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install hexo-cli@latest -g</span><br><span class=\"line\">hexo init blog</span><br><span class=\"line\">cd blog</span><br><span class=\"line\">npm install hexo-theme-next@latest ### https:&#x2F;&#x2F;github.com&#x2F;next-theme&#x2F;hexo-theme-next</span><br></pre></td></tr></table></figure>\n<h4 id=\"代理快速安装\"><a href=\"#代理快速安装\" class=\"headerlink\" title=\"代理快速安装\"></a>代理快速安装</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm config set registry http:&#x2F;&#x2F;registry.npm.taobao.org</span><br><span class=\"line\">npm install hexo-cli@latest -g</span><br><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;gitee.com&#x2F;weilining&#x2F;hexo-starter.git blog</span><br><span class=\"line\">cd blog</span><br><span class=\"line\">git clone --depth 1 https:&#x2F;&#x2F;gitee.com&#x2F;weilining&#x2F;hexo-theme-landscape.git themes&#x2F;landscape</span><br><span class=\"line\">npm i</span><br><span class=\"line\">npm install hexo-theme-next@latest</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"配置\"><a href=\"#配置\" class=\"headerlink\" title=\"配置\"></a>配置</h3><p><code>_config.yml</code>的<code>theme: landscape</code>改成下面的</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">theme: next</span><br></pre></td></tr></table></figure>\n<h3 id=\"本地预览\"><a href=\"#本地预览\" class=\"headerlink\" title=\"本地预览\"></a>本地预览</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">hexo cl &amp;&amp; hexo s</span><br></pre></td></tr></table></figure>\n\n<p><span class=\"exturl\" data-url=\"aHR0cDovL2xvY2FsaG9zdDo0MDAwLw==\">http://localhost:4000<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"生成静态网页文件\"><a href=\"#生成静态网页文件\" class=\"headerlink\" title=\"生成静态网页文件\"></a>生成静态网页文件</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">hexo cl &amp;&amp; hexo g</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"进阶\"><a href=\"#进阶\" class=\"headerlink\" title=\"进阶\"></a>进阶</h2><p>先准备好以下</p>\n<ul>\n<li><p>GitHub账号</p>\n</li>\n<li><p>创建<code>_config.next.yml</code>(在<code>_config.yml</code>旁边)</p>\n</li>\n</ul>\n<h3 id=\"网页个人信息\"><a href=\"#网页个人信息\" class=\"headerlink\" title=\"网页个人信息\"></a>网页个人信息</h3><p><code>_config.yml</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">title: Ln&#39;s Blog</span><br><span class=\"line\">subtitle: &#39;有朋自远方来,不亦乐乎&#39;</span><br><span class=\"line\">description: &#39;算法、技术&#39;</span><br><span class=\"line\">keywords:</span><br><span class=\"line\">author: Lining Wei</span><br><span class=\"line\">language: zh-CN</span><br><span class=\"line\">timezone: &#39;Asia&#x2F;ShangHai</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"快速配置\"><a href=\"#快速配置\" class=\"headerlink\" title=\"快速配置\"></a>快速配置</h3><p>使用快速配置可以直接跳过进阶,直达高级</p>\n<p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">scheme: Gemini</span><br><span class=\"line\">darkmode: true</span><br><span class=\"line\">creative_commons:</span><br><span class=\"line\"> license: by-nc-sa</span><br><span class=\"line\"> sidebar: false</span><br><span class=\"line\"> post: true #文章底部是否显示</span><br><span class=\"line\">menu:</span><br><span class=\"line\"> home: &#x2F; || fa fa-bell</span><br><span class=\"line\"> archives: &#x2F;archives&#x2F; || fa fa-archive</span><br><span class=\"line\"> categories: &#x2F;categories&#x2F; || fa fa-th</span><br><span class=\"line\"> tags: &#x2F;tags&#x2F; || fa fa-tags</span><br><span class=\"line\"> sitemap: &#x2F;sitemap.xml || fa fa-sitemap</span><br><span class=\"line\"> baidusitemap: &#x2F;baidusitemap.xml || fa fa-cloud</span><br><span class=\"line\">menu_settings:</span><br><span class=\"line\"> icons: true</span><br><span class=\"line\"> badges: true</span><br><span class=\"line\">sidebar:</span><br><span class=\"line\"> position: left</span><br><span class=\"line\"> display: post</span><br><span class=\"line\"> padding: 18</span><br><span class=\"line\"> offset: 12</span><br><span class=\"line\">avatar:</span><br><span class=\"line\"> url: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;logo.svg</span><br><span class=\"line\"> rounded: true #设置图片是否为圆形,当图片为正方形时为圆,否则为椭圆</span><br><span class=\"line\"> rotated: true #设置鼠标移到图片上后头像是否转动</span><br><span class=\"line\">social:</span><br><span class=\"line\"> GitHub: https:&#x2F;&#x2F;github.com&#x2F;weilining&#x2F;blog.io || fab fa-github</span><br><span class=\"line\">social_icons:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> icons_only: true</span><br><span class=\"line\"> transition: true</span><br><span class=\"line\">toc:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> number: true</span><br><span class=\"line\"> wrap: true # 如果为true,则如果标题宽度比侧栏宽度长,则所有单词将放在下一行。</span><br><span class=\"line\">footer:</span><br><span class=\"line\"> since: 2015</span><br><span class=\"line\"> icon:</span><br><span class=\"line\"> name: fa fa-heart</span><br><span class=\"line\"> animated: true</span><br><span class=\"line\"> color: &quot;#808080&quot;</span><br><span class=\"line\"> copyright: Ln</span><br><span class=\"line\"> powered: false</span><br><span class=\"line\">post_meta:</span><br><span class=\"line\"> updated_at:</span><br><span class=\"line\"> enable: true # 文章“更新于”显示</span><br><span class=\"line\">post_edit:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> url: https:&#x2F;&#x2F;github.com&#x2F;weilining&#x2F;blogbackup.io&#x2F;edit&#x2F;main&#x2F;source&#x2F;</span><br><span class=\"line\">mobile_layout_economy: true # 手机文章紧挨着</span><br><span class=\"line\">codeblock:</span><br><span class=\"line\"> theme:</span><br><span class=\"line\"> light: default</span><br><span class=\"line\"> dark: tomorrow-night</span><br><span class=\"line\"> copy_button:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> style: mac</span><br><span class=\"line\">back2top:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> sidebar: false</span><br><span class=\"line\"> scrollpercent: true</span><br><span class=\"line\">github_banner:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> permalink: https:&#x2F;&#x2F;github.com&#x2F;weilining&#x2F;blog.io</span><br><span class=\"line\"> title: Fork NexT on GitHub</span><br><span class=\"line\">math:</span><br><span class=\"line\"> mathjax:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\">pjax: true</span><br><span class=\"line\">mediumzoom: true</span><br><span class=\"line\">livere_uid: MTAyMC80NDkyOC8yMTQ1MA&#x3D;&#x3D;</span><br><span class=\"line\">google_analytics:</span><br><span class=\"line\"> tracking_id: UA-108155018-3</span><br><span class=\"line\">note:</span><br><span class=\"line\"> style: simple</span><br><span class=\"line\"> icons: true</span><br><span class=\"line\"> light_bg_offset: -3</span><br><span class=\"line\">tabs:</span><br><span class=\"line\"> transition:</span><br><span class=\"line\"> tabs: true</span><br><span class=\"line\"> labels: true</span><br><span class=\"line\">mermaid:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\">motion:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> async: true</span><br><span class=\"line\">vendors:</span><br><span class=\"line\"> internal: jsdelivr</span><br><span class=\"line\">quicklink:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> home: true</span><br><span class=\"line\"> archive: true</span><br><span class=\"line\"> delay: true</span><br><span class=\"line\"> timeout: 3000</span><br><span class=\"line\"> priority: true</span><br><span class=\"line\"> ignores:</span><br><span class=\"line\">nprogress:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> spinner: true</span><br><span class=\"line\">tag_icon: true</span><br><span class=\"line\">favicon:</span><br><span class=\"line\"> small: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;favicon-16x16-next.png</span><br><span class=\"line\"> medium: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;favicon-32x32-next.png</span><br><span class=\"line\"> apple_touch_icon: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;apple-touch-icon-next.png</span><br><span class=\"line\"> safari_pinned_tab: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;logo.svg</span><br><span class=\"line\">reward_settings:</span><br><span class=\"line\"> enable: true </span><br><span class=\"line\"> animation: true</span><br><span class=\"line\"> comment: Buy me a coffee #这里填你的提示语</span><br><span class=\"line\">reward:</span><br><span class=\"line\"> wechatpay: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io@master&#x2F;images&#x2F;apple-touch-icon-next.png</span><br><span class=\"line\"> alipay: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io@master&#x2F;images&#x2F;apple-touch-icon-next.png</span><br><span class=\"line\">canvas_ribbon:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> size: 300 # The width of the ribbon</span><br><span class=\"line\"> alpha: 0.6 # The transparency of the ribbon</span><br><span class=\"line\"> zIndex: -1 # The display level of the ribbon</span><br><span class=\"line\">links_settings:</span><br><span class=\"line\"> icon: fa fa-globe</span><br><span class=\"line\"> title: 友情链接</span><br><span class=\"line\"> # Available values: block | inline</span><br><span class=\"line\"> layout: inline</span><br><span class=\"line\">links:</span><br><span class=\"line\"> Ln: https:&#x2F;&#x2F;weilining.github.io</span><br><span class=\"line\">busuanzi_count:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> total_visitors: true</span><br><span class=\"line\"> total_visitors_icon: fa fa-user</span><br><span class=\"line\"> total_views: true</span><br><span class=\"line\"> total_views_icon: fa fa-eye</span><br><span class=\"line\"> post_views: true</span><br><span class=\"line\"> post_views_icon: far fa-eye</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"换Gemini主题\"><a href=\"#换Gemini主题\" class=\"headerlink\" title=\"换Gemini主题\"></a>换Gemini主题</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">scheme: Gemini</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"暗黑模式\"><a href=\"#暗黑模式\" class=\"headerlink\" title=\"暗黑模式\"></a>暗黑模式</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">darkmode: true</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"打赏\"><a href=\"#打赏\" class=\"headerlink\" title=\"打赏\"></a>打赏</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">reward_settings:</span><br><span class=\"line\"> enable: true </span><br><span class=\"line\"> animation: true</span><br><span class=\"line\"> comment: Buy me a coffee #这里填你的提示语</span><br><span class=\"line\">reward:</span><br><span class=\"line\"> wechatpay: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io@master&#x2F;images&#x2F;apple-touch-icon-next.png</span><br><span class=\"line\"> alipay: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io@master&#x2F;images&#x2F;apple-touch-icon-next.png</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"打开jsdelivr加速\"><a href=\"#打开jsdelivr加速\" class=\"headerlink\" title=\"打开jsdelivr加速\"></a>打开jsdelivr加速</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">vendors:</span><br><span class=\"line\"> internal: jsdelivr</span><br><span class=\"line\"> plugins: jsdelivr</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"打开动画异步加载\"><a href=\"#打开动画异步加载\" class=\"headerlink\" title=\"打开动画异步加载\"></a>打开动画异步加载</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">motion:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> async: true</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"代码mac风格-amp-amp-粘贴按钮\"><a href=\"#代码mac风格-amp-amp-粘贴按钮\" class=\"headerlink\" title=\"代码mac风格&amp;&amp;粘贴按钮\"></a>代码mac风格&amp;&amp;粘贴按钮</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">codeblock:</span><br><span class=\"line\"> copy_button:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> style: mac</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"阅读百分比显示\"><a href=\"#阅读百分比显示\" class=\"headerlink\" title=\"阅读百分比显示\"></a>阅读百分比显示</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">back2top:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> scrollpercent: true</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"进度条\"><a href=\"#进度条\" class=\"headerlink\" title=\"进度条\"></a>进度条</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">nprogress:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> spinner: true</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"版权声明\"><a href=\"#版权声明\" class=\"headerlink\" title=\"版权声明\"></a>版权声明</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">creative_commons:</span><br><span class=\"line\"> license: by-nc-sa</span><br><span class=\"line\"> sidebar: false</span><br><span class=\"line\"> post: true #文章底部是否显示</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"菜单栏\"><a href=\"#菜单栏\" class=\"headerlink\" title=\"菜单栏\"></a>菜单栏</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">menu:</span><br><span class=\"line\"> home: &#x2F; || fa fa-bell</span><br><span class=\"line\"> archives: &#x2F;archives&#x2F; || fa fa-archive</span><br><span class=\"line\"> categories: &#x2F;categories&#x2F; || fa fa-th</span><br><span class=\"line\"> tags: &#x2F;tags&#x2F; || fa fa-tags</span><br><span class=\"line\"> sitemap: &#x2F;sitemap.xml || fa fa-sitemap</span><br><span class=\"line\"> baidusitemap: &#x2F;baidusitemap.xml || fa fa-cloud</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"菜单栏设置\"><a href=\"#菜单栏设置\" class=\"headerlink\" title=\"菜单栏设置\"></a>菜单栏设置</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">menu_settings:</span><br><span class=\"line\"> icons: true</span><br><span class=\"line\"> badges: true</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"侧边栏设置\"><a href=\"#侧边栏设置\" class=\"headerlink\" title=\"侧边栏设置\"></a>侧边栏设置</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">sidebar:</span><br><span class=\"line\"> position: left</span><br><span class=\"line\"> display: post</span><br><span class=\"line\"> padding: 18</span><br><span class=\"line\"> offset: 12</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"头像设置\"><a href=\"#头像设置\" class=\"headerlink\" title=\"头像设置\"></a>头像设置</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">avatar:</span><br><span class=\"line\"> # url: &#x2F;images&#x2F;logo.svg</span><br><span class=\"line\"> url: https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;logo.svg</span><br><span class=\"line\"> rounded: true #设置图片是否为圆形,当图片为正方形时为圆,否则为椭圆</span><br><span class=\"line\"> rotated: true #设置鼠标移到图片上后头像是否转动</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"联系方式\"><a href=\"#联系方式\" class=\"headerlink\" title=\"联系方式\"></a>联系方式</h3><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">social:</span><br><span class=\"line\"> GitHub: https:&#x2F;&#x2F;github.com&#x2F;weilining&#x2F;blog.io || fab fa-github</span><br><span class=\"line\">social_icons:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> icons_only: true</span><br><span class=\"line\"> transition: true</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"目录\"><a href=\"#目录\" class=\"headerlink\" title=\"目录\"></a>目录</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">toc:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> number: true</span><br><span class=\"line\"> wrap: true # 如果为true,则如果标题宽度比侧栏宽度长,则所有单词将放在下一行。</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"底部设置\"><a href=\"#底部设置\" class=\"headerlink\" title=\"底部设置\"></a>底部设置</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">footer:</span><br><span class=\"line\"> since: 2015</span><br><span class=\"line\"> icon:</span><br><span class=\"line\"> name: fa fa-heart</span><br><span class=\"line\"> animated: true</span><br><span class=\"line\"> color: &quot;#808080&quot;</span><br><span class=\"line\"> copyright: Ln</span><br><span class=\"line\"> powered: false</span><br></pre></td></tr></table></figure>\n\n\n\n<h3 id=\"部署到GitHub\"><a href=\"#部署到GitHub\" class=\"headerlink\" title=\"部署到GitHub\"></a>部署到GitHub</h3><h4 id=\"GitHub创建仓库并打开GitHub-Pages功能\"><a href=\"#GitHub创建仓库并打开GitHub-Pages功能\" class=\"headerlink\" title=\"GitHub创建仓库并打开GitHub Pages功能\"></a>GitHub创建仓库并打开GitHub Pages功能</h4><p>仓库名:Github 用户名.github.io</p>\n<p>例如:weilining.github.io</p>\n<p>验证仓库是否创建成功:<span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3dlaWxpbmluZy93ZWlsaW5pbmcuZ2l0aHViLmlv\">https://github.com/weilining/weilining.github.io<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>PS:记得打开GitHub Pages</p>\n<p><code>setting-&gt;GitHub Pages</code></p>\n<h4 id=\"URL设置\"><a href=\"#URL设置\" class=\"headerlink\" title=\"URL设置\"></a>URL设置</h4><p><code>_config.yml</code>的<code>url: http://example.com</code>改成下面的</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">url: https:&#x2F;&#x2F;weilining.github.io</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"安装模块\"><a href=\"#安装模块\" class=\"headerlink\" title=\"安装模块\"></a>安装模块</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install hexo-deployer-git</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"配置-1\"><a href=\"#配置-1\" class=\"headerlink\" title=\"配置\"></a>配置</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">deploy:</span><br><span class=\"line\"> - type: git</span><br><span class=\"line\"> repo:</span><br><span class=\"line\"> github:</span><br><span class=\"line\"> url: https:&#x2F;&#x2F;github.com&#x2F;weilining&#x2F;weilining.github.io.git # https:&#x2F;&#x2F;github.com&#x2F;Github 用户名&#x2F;仓库名&#x2F;资源路径</span><br><span class=\"line\"> branch: master</span><br><span class=\"line\"> token: f7e4ee8c4b57d3fab8c0680e192c11111fa844f6 # GitHub Personal Access Token </span><br><span class=\"line\"> name: weilining # Github 用户名</span><br><span class=\"line\"> email: email@gmail.com # Github 登陆邮箱</span><br></pre></td></tr></table></figure>\n\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93ZWlsaW5pbmcuY2YvMy5odG1s\">获取 GitHub Personal Access Token 方法<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"GitHub-Pages预览\"><a href=\"#GitHub-Pages预览\" class=\"headerlink\" title=\"GitHub Pages预览\"></a>GitHub Pages预览</h4><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93ZWlsaW5pbmcuZ2l0aHViLmlvLw==\">https://weilining.github.io<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h2 id=\"高级\"><a href=\"#高级\" class=\"headerlink\" title=\"高级\"></a>高级</h2><p>先准备好以下</p>\n<ul>\n<li>创建<code>blog/source/_data/styles.styl</code></li>\n</ul>\n<h3 id=\"搜索\"><a href=\"#搜索\" class=\"headerlink\" title=\"搜索\"></a>搜索</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL25leHQtdGhlbWUvaGV4by1nZW5lcmF0b3Itc2VhcmNoZGI=\">GitHub<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"插件安装\"><a href=\"#插件安装\" class=\"headerlink\" title=\"插件安装\"></a>插件安装</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install hexo-generator-searchdb</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"配置-2\"><a href=\"#配置-2\" class=\"headerlink\" title=\"配置\"></a>配置</h4><p><code>_config.yml</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">search:</span><br><span class=\"line\"> path: search.json</span><br><span class=\"line\"> field: all</span><br></pre></td></tr></table></figure>\n\n<p><code>_config.next.yml</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">local_search:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> trigger: auto</span><br><span class=\"line\"> top_n_per_article: 1</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"订阅\"><a href=\"#订阅\" class=\"headerlink\" title=\"订阅\"></a>订阅</h3><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm i hexo-generator-feed</span><br></pre></td></tr></table></figure>\n\n<p><code>_config.next.yml</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">social:</span><br><span class=\"line\"> RSS: &#x2F;atom.xml || fa fa-rss</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"宠物\"><a href=\"#宠物\" class=\"headerlink\" title=\"宠物\"></a>宠物</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL0VZSE4vaGV4by1oZWxwZXItbGl2ZTJkL2Jsb2IvbWFzdGVyL1JFQURNRS56aC1DTi5tZA==\">官方<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3hpYXpleXUvbGl2ZTJkLXdpZGdldC1tb2RlbHM=\">模型<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"模块安装\"><a href=\"#模块安装\" class=\"headerlink\" title=\"模块安装\"></a>模块安装</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install hexo-helper-live2d</span><br><span class=\"line\">npm install live2d-widget-model-wanko</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"配置-3\"><a href=\"#配置-3\" class=\"headerlink\" title=\"配置\"></a>配置</h4><p><code>_config.yml</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">live2d:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> scriptFrom: local</span><br><span class=\"line\"> pluginRootPath: live2dw&#x2F;</span><br><span class=\"line\"> pluginJsPath: lib&#x2F;</span><br><span class=\"line\"> pluginModelPath: assets&#x2F;</span><br><span class=\"line\"> tagMode: false</span><br><span class=\"line\"> log: false</span><br><span class=\"line\"> model:</span><br><span class=\"line\"> use: live2d-widget-model-wanko</span><br><span class=\"line\"> display:</span><br><span class=\"line\"> position: right</span><br><span class=\"line\"> width: 150</span><br><span class=\"line\"> height: 300</span><br><span class=\"line\"> mobile:</span><br><span class=\"line\"> show: true</span><br><span class=\"line\"> react:</span><br><span class=\"line\"> opacity: 0.7</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"背景透明\"><a href=\"#背景透明\" class=\"headerlink\" title=\"背景透明\"></a>背景透明</h3><p><code>blog/source/_data/styles.styl</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&#x2F;&#x2F; 背景透明</span><br><span class=\"line\">.main &#123;</span><br><span class=\"line\"> opacity: 0.9;</span><br><span class=\"line\">&#125;</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"加背景\"><a href=\"#加背景\" class=\"headerlink\" title=\"加背景\"></a>加背景</h3><p><code>blog/source/_data/styles.styl</code></p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&#x2F;&#x2F;背景</span><br><span class=\"line\">body&#123;</span><br><span class=\"line\"> background:url(&#39;https:&#x2F;&#x2F;cdn.jsdelivr.net&#x2F;gh&#x2F;weilining&#x2F;blog.io&#x2F;images&#x2F;background-dark.jpg&#39;);</span><br><span class=\"line\"> height:100%;</span><br><span class=\"line\"> width:100%;</span><br><span class=\"line\"> background-repeat:repeat-x;</span><br><span class=\"line\"> background-attachment:fixed;</span><br><span class=\"line\"> background-size:cover;</span><br><span class=\"line\">&#125;</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"插入图片\"><a href=\"#插入图片\" class=\"headerlink\" title=\"插入图片\"></a>插入图片</h3><p><code>_config.yml</code> 的<code>post_asset_folder: true</code>改成下面的</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">### https:&#x2F;&#x2F;hexo.io&#x2F;zh-cn&#x2F;docs&#x2F;asset-folders</span><br><span class=\"line\">post_asset_folder: true</span><br><span class=\"line\">marked:</span><br><span class=\"line\"> prependRoot: true</span><br><span class=\"line\"> postAsset: true</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"顶级\"><a href=\"#顶级\" class=\"headerlink\" title=\"顶级\"></a>顶级</h2><h3 id=\"百度SEO\"><a href=\"#百度SEO\" class=\"headerlink\" title=\"百度SEO\"></a>百度SEO</h3><h4 id=\"安装站点地图模块\"><a href=\"#安装站点地图模块\" class=\"headerlink\" title=\"安装站点地图模块\"></a>安装站点地图模块</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install hexo-generator-baidu-sitemap</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"配置-4\"><a href=\"#配置-4\" class=\"headerlink\" title=\"配置\"></a>配置</h4><p><code>_config.yml</code>后面加上以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">baidusitemap:</span><br><span class=\"line\"> path: baidusitemap.xml</span><br></pre></td></tr></table></figure>\n\n<p><code>hexo cl &amp;&amp; hexo s</code></p>\n<p><span class=\"exturl\" data-url=\"aHR0cDovL2xvY2FsaG9zdDo0MDAwL2JhaWR1c2l0ZW1hcC54bWw=\">http://localhost:4000/baidusitemap.xml<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h4 id=\"安装主动推送模块\"><a href=\"#安装主动推送模块\" class=\"headerlink\" title=\"安装主动推送模块\"></a>安装主动推送模块</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install --save hexo-submit-urls-to-search-engine</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"配置-5\"><a href=\"#配置-5\" class=\"headerlink\" title=\"配置\"></a>配置</h4><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly96aXl1YW4uYmFpZHUuY29tL3NpdGUvaW5kZXgjIyMv\">百度站点管理<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>普通收录-&gt;资源提交-&gt;API提交-&gt;推送接口里有token</p>\n<p><code>_config.yml</code>后面加上以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">hexo_submit_urls_to_search_engine:</span><br><span class=\"line\"> submit_condition: count ###链接被提交的条件,可选值:count | period 现仅支持count</span><br><span class=\"line\"> count: 10 ### 提交最新的10个链接</span><br><span class=\"line\"> period: 900 ### 提交修改时间在 900 秒内的链接</span><br><span class=\"line\"> google: 0 ### 是否向Google提交,可选值:1 | 0(0:否;1:是)</span><br><span class=\"line\"> bing: 1 ### 是否向bing提交,可选值:1 | 0(0:否;1:是)</span><br><span class=\"line\"> baidu: 1 ### 是否向baidu提交,可选值:1 | 0(0:否;1:是)</span><br><span class=\"line\"> txt_path: submit_urls.txt #### 文本文档名, 需要推送的链接会保存在此文本文档里</span><br><span class=\"line\"> baidu_host: https:&#x2F;&#x2F;cjh0613.github.io #### 在百度站长平台中注册的域名</span><br><span class=\"line\"> baidu_token: 请按照文档说明获取 #### 请注意这是您的秘钥, 所以请不要把它直接发布在公众仓库里!</span><br><span class=\"line\"> bing_host: https:&#x2F;&#x2F;cjh0613.github.io #### 在bing站长平台中注册的域名</span><br><span class=\"line\"> bing_token: 请按照文档说明获取 #### 请注意这是您的秘钥, 所以请不要把它直接发布在公众仓库里!</span><br><span class=\"line\"> google_host: https:&#x2F;&#x2F;cjh0613.github.io #### 在google站长平台中注册的域名</span><br><span class=\"line\"> google_key_file: Project.json ###存放google key的json文件,放于网站根目录(与hexo _config.yml文件位置相同),请不要把json文件内容直接发布在公众仓库里!</span><br><span class=\"line\"> replace: 0 ### 是否替换链接中的部分字符串,可选值:1 | 0(0:否;1:是)</span><br><span class=\"line\"> find_what: http:&#x2F;&#x2F;cjh0613.github.io&#x2F;blog</span><br><span class=\"line\"> replace_with: https:&#x2F;&#x2F;cjh0613.com</span><br></pre></td></tr></table></figure>\n\n<p><code>_config.yml</code>的<code>deploy:</code>改成</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">deploy:</span><br><span class=\"line\"> - type: &#39;&#39;</span><br><span class=\"line\"> - type: baidu_url_submitter ### 主动提交百度爬虫</span><br></pre></td></tr></table></figure>\n\n<p><code>_config.yml</code>的<code>url: http://example.com</code>改成</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">url: https:&#x2F;&#x2F;weilining.cf</span><br></pre></td></tr></table></figure>\n\n<p><code>hexo cl &amp;&amp; hexo d</code>最后出现<code>&#123;&quot;remain&quot;:2996,&quot;success&quot;:2&#125;</code>即可</p>\n<h4 id=\"缩短url\"><a href=\"#缩短url\" class=\"headerlink\" title=\"缩短url\"></a>缩短url</h4><p><code>_config.yml</code>的<code>permalink: :year/:month/:day/:title/</code>改成</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">permalink: :title.html</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"NexT防止外链搜索及SEO设置\"><a href=\"#NexT防止外链搜索及SEO设置\" class=\"headerlink\" title=\"NexT防止外链搜索及SEO设置\"></a>NexT防止外链搜索及SEO设置</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">cd blog</span><br><span class=\"line\">vi _config.next.yml</span><br></pre></td></tr></table></figure>\n\n<p><code>_config.next.yml</code>写入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">disable_baidu_transformation: true ### 禁用移动设备上的百度转换,建议 true</span><br><span class=\"line\">index_with_subtitle: true ### 带副标题的索引,开启后会在标签标题后面自动加上网站名称,建议 true</span><br><span class=\"line\">### nofollow防止外链搜索</span><br><span class=\"line\">exturl: true ### 使用Base64加密和解密自动添加外部URL。</span><br><span class=\"line\">baidu_site_verification: code-wFDrn4lvkD</span><br><span class=\"line\">baidu_push: true ###建议 true ###启用百度推送,这样博客会自动把网址推到百度,这对SEO很有帮助。</span><br></pre></td></tr></table></figure>\n\n<p><code>hexo cl &amp;&amp; hexo s</code></p>\n<h4 id=\"quicklink加载性能优化\"><a href=\"#quicklink加载性能优化\" class=\"headerlink\" title=\"quicklink加载性能优化\"></a>quicklink加载性能优化</h4><p><code>_config.next.yml</code>加入以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">quicklink:</span><br><span class=\"line\"> enable: true</span><br><span class=\"line\"> home: true</span><br><span class=\"line\"> archive: true</span><br><span class=\"line\"> delay: true</span><br><span class=\"line\"> timeout: 3000</span><br><span class=\"line\"> priority: true</span><br><span class=\"line\"> ignores:</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"robots-txt\"><a href=\"#robots-txt\" class=\"headerlink\" title=\"robots.txt\"></a>robots.txt</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">cd blog</span><br><span class=\"line\">vi source&#x2F;robots.txt</span><br></pre></td></tr></table></figure>\n\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">User-agent: *</span><br><span class=\"line\">Allow: &#x2F;</span><br><span class=\"line\"></span><br><span class=\"line\">Sitemap: https:&#x2F;&#x2F;weilining.cf&#x2F;sitemap.xml</span><br><span class=\"line\">Sitemap: https:&#x2F;&#x2F;weilining.cf&#x2F;baidusitemap.xml</span><br></pre></td></tr></table></figure>\n\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS93ZWJtYXN0ZXJzL3Rvb2xzL3JvYm90cy10ZXN0aW5nLXRvb2w/dXRtX3NvdXJjZT1zdXBwb3J0Lmdvb2dsZS5jb20vd2VibWFzdGVycy8mdXRtX21lZGl1bT1yZWZlcnJhbCZ1dG1fY2FtcGFpZ249NjA2MjU5OA==\">打开“robots.txt 测试工具”<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"谷歌SEO\"><a href=\"#谷歌SEO\" class=\"headerlink\" title=\"谷歌SEO\"></a>谷歌SEO</h3><h4 id=\"安装站点地图模块-1\"><a href=\"#安装站点地图模块-1\" class=\"headerlink\" title=\"安装站点地图模块\"></a>安装站点地图模块</h4><figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">npm install hexo-generator-sitemap</span><br></pre></td></tr></table></figure>\n\n<h4 id=\"配置-6\"><a href=\"#配置-6\" class=\"headerlink\" title=\"配置\"></a>配置</h4><p><code>_config.yml</code>后面加上以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">sitemap:</span><br><span class=\"line\"> path: sitemap.xml</span><br></pre></td></tr></table></figure>\n\n<p><code>hexo cl &amp;&amp; hexo s</code></p>\n<p><span class=\"exturl\" data-url=\"aHR0cDovL2xvY2FsaG9zdDo0MDAwL3NpdGVtYXAueG1s\">http://localhost:4000/sitemap.xml<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><code>_config.next.yml</code>加上以下代码</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">google_site_verification: KZjcRcBkV43JHcyiH4z1Yk2xu-mqlS1fQNk5Dzv7_q0</span><br></pre></td></tr></table></figure>\n\n<h3 id=\"部署到服务器\"><a href=\"#部署到服务器\" class=\"headerlink\" title=\"部署到服务器\"></a>部署到服务器</h3><p><code>blog/public</code>下所有文件复制到nginx的web服务器根目录</p>\n<h3 id=\"CDN\"><a href=\"#CDN\" class=\"headerlink\" title=\"CDN\"></a>CDN</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9kYXNoLmNsb3VkZmxhcmUuY29tLw==\">cloudflare<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p>建议:要开启CDN,先删除其他A/AAAA,只留一条。关闭CDN之后再加多条A/AAAA。</p>\n<h3 id=\"MarkDown书写\"><a href=\"#MarkDown书写\" class=\"headerlink\" title=\"MarkDown书写\"></a>MarkDown书写</h3><p>二级标题后紧跟的子标题级别必须是三级标题。<br>一个页面一个H1标签,以二级标题为起点,二级标题不要太多。</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">## 标题</span><br></pre></td></tr></table></figure>\n<h3 id=\"添加一言\"><a href=\"#添加一言\" class=\"headerlink\" title=\"添加一言\"></a>添加一言</h3><p><code>blog/source/_data/sidebar.njk</code></p>\n<p>将下面这段代码放入页面内需要展示一句话的位置即可。</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&#123;# 一言 #&#125;</span><br><span class=\"line\">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;https:&#x2F;&#x2F;api.uixsj.cn&#x2F;hitokoto&#x2F;w.php?code&#x3D;js&quot;&gt;&lt;&#x2F;script&gt;&lt;div id&#x3D;&quot;xsjhitokoto&quot;&gt;&lt;script&gt;xsjhitokoto()&lt;&#x2F;script&gt;&lt;&#x2F;div&gt;</span><br></pre></td></tr></table></figure>\n\n<p>中英文版 使用方法同上</p>\n<figure class=\"highlight plain\"><table><tr><td class=\"code\"><pre><span class=\"line\">&lt;script type&#x3D;&quot;text&#x2F;javascript&quot; src&#x3D;&quot;https:&#x2F;&#x2F;api.uixsj.cn&#x2F;hitokoto&#x2F;en.php?code&#x3D;js&quot;&gt;&lt;&#x2F;script&gt;&lt;div id&#x3D;&quot;enhitokoto&quot;&gt;&lt;script&gt;enhitokoto()&lt;&#x2F;script&gt;&lt;&#x2F;div&gt;</span><br></pre></td></tr></table></figure>\n\n<h2 id=\"工具\"><a href=\"#工具\" class=\"headerlink\" title=\"工具\"></a>工具</h2><h3 id=\"网页Get测试\"><a href=\"#网页Get测试\" class=\"headerlink\" title=\"网页Get测试\"></a>网页Get测试</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuMTdjZS5jb20v\">https://www.17ce.com/<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"页面加载性能测试\"><a href=\"#页面加载性能测试\" class=\"headerlink\" title=\"页面加载性能测试\"></a>页面加载性能测试</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9kZXZlbG9wZXJzLmdvb2dsZS5jb20vc3BlZWQvcGFnZXNwZWVkL2luc2lnaHRzLw==\">Google PageSpeed Insights<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly90aGVtZS1uZXh0LmpzLm9yZy8=\">NexT<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93ZWlsaW5pbmcuY2Yv\">Ln&#39;s Blog<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"各平台收录查询\"><a href=\"#各平台收录查询\" class=\"headerlink\" title=\"各平台收录查询\"></a>各平台收录查询</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuYmFpZHUuY29tL3M/d2Q9c2l0ZTp3ZWlsaW5pbmcuY2Y=\">百度收录weilining.cf查询<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly9jbi5iaW5nLmNvbS9zZWFyY2g/cT1zaXRlOndlaWxpbmluZy5jZg==\">必应收录weilining.cf查询<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS9zZWFyY2g/cT1zaXRlOndlaWxpbmluZy5jZg==\">谷歌收录weilining.cf查询<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuc28uY29tL3M/cT1zaXRlOndlaWxpbmluZy5jZg==\">360收录weilining.cf查询<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly95YW5kZXguY29tL3NlYXJjaC8/dGV4dD1zaXRlOndlaWxpbmluZy5jZg==\">yandex收录weilining.cf查询<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuc29nb3UuY29tL3dlYj9xdWVyeT1zaXRlOndlaWxpbmluZy5jZg==\">搜狗收录weilining.cf查询<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"各平台-Robots-txt-测试工具\"><a href=\"#各平台-Robots-txt-测试工具\" class=\"headerlink\" title=\"各平台 Robots.txt 测试工具\"></a>各平台 Robots.txt 测试工具</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly96aXl1YW4uYmFpZHUuY29tL3JvYm90cw==\">百度<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuYmluZy5jb20vd2VibWFzdGVycy9yb2JvdHN0eHR0ZXN0ZXI=\">必应<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS93ZWJtYXN0ZXJzL3Rvb2xzL3JvYm90cy10ZXN0aW5nLXRvb2w=\">谷歌<i class=\"fa fa-external-link-alt\"></i></span><br><span class=\"exturl\" data-url=\"aHR0cHM6Ly93ZWJtYXN0ZXIueWFuZGV4LnJ1L3NpdGUvaHR0cHM6d2VpbGluaW5nLmNmOjQ0My90b29scy9yb2JvdHN0eHQv\">Yandex<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"各平台管理\"><a href=\"#各平台管理\" class=\"headerlink\" title=\"各平台管理\"></a>各平台管理</h3><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuYmluZy5jb20vd2VibWFzdGVycy9ob21lP3NpdGVVcmw9aHR0cHM6Ly93ZWlsaW5pbmcuY2Yv\">必应<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly96aXl1YW4uYmFpZHUuY29tL2Rhc2hib2FyZC9pbmRleD9zaXRlPWh0dHBzOi8vd2VpbGluaW5nLmNmLw==\">百度<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93ZWJtYXN0ZXIueWFuZGV4LnJ1L3NpdGUvaHR0cHM6d2VpbGluaW5nLmNm\">Yandex<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS93ZWJtYXN0ZXJz\">谷歌<i class=\"fa fa-external-link-alt\"></i></span></p>\n<h3 id=\"插件\"><a href=\"#插件\" class=\"headerlink\" title=\"插件\"></a>插件</h3><table>\n<thead>\n<tr>\n<th>插件名</th>\n<th>版本号</th>\n<th>官方文档</th>\n<th>功能</th>\n<th>NexT集成</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>hexo-related-popular-posts</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-related-popular-posts?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3RlYTMvaGV4by1yZWxhdGVkLXBvcHVsYXItcG9zdHM=\">GitHub<i class=\"fa fa-external-link-alt\"></i></span></td>\n<td>相关文章</td>\n<td>是</td>\n</tr>\n<tr>\n<td>hexo-generator-baidu-sitemap</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-generator-baidu-sitemap?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>百度站点地图</td>\n<td>否</td>\n</tr>\n<tr>\n<td>hexo-generator-sitemap</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-generator-sitemap?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>谷歌站点地图</td>\n<td>否</td>\n</tr>\n<tr>\n<td>hexo-deployer-git</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-deployer-git?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>部署</td>\n<td>否</td>\n</tr>\n<tr>\n<td>hexo-generator-searchdb</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-generator-searchdb?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>本地搜索</td>\n<td>是</td>\n</tr>\n<tr>\n<td>hexo-generator-feed</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-generator-feed?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>RSS</td>\n<td>是</td>\n</tr>\n<tr>\n<td>hexo-submit-urls-to-search-engine</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-submit-urls-to-search-engine?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>百度主动推送</td>\n<td>否</td>\n</tr>\n<tr>\n<td>hexo-word-counter</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-word-counter?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>文字数</td>\n<td>是</td>\n</tr>\n<tr>\n<td>hexo-theme-next</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-theme-next?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td></td>\n<td>NexT主题</td>\n<td>是</td>\n</tr>\n<tr>\n<td>hexo-helper-live2d</td>\n<td><img data-src=\"https://img.shields.io/npm/v/hexo-helper-live2d?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL0VZSE4vaGV4by1oZWxwZXItbGl2ZTJkL2Jsb2IvbWFzdGVyL1JFQURNRS56aC1DTi5tZA==\">GitHub<i class=\"fa fa-external-link-alt\"></i></span></td>\n<td>宠物</td>\n<td>否</td>\n</tr>\n<tr>\n<td>live2d-widget-model-wanko</td>\n<td><img data-src=\"https://img.shields.io/npm/v/live2d-widget-model-wanko?color=red&logo=npm&style=flat-square\" alt=\"npm\" loading=\"lazy\"></td>\n<td><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL3hpYXpleXUvbGl2ZTJkLXdpZGdldC1tb2RlbHM=\">模型<i class=\"fa fa-external-link-alt\"></i></span></td>\n<td>宠物模型</td>\n<td>否</td>\n</tr>\n</tbody></table>\n<h2 id=\"参考\"><a href=\"#参考\" class=\"headerlink\" title=\"参考\"></a>参考</h2><p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRlZS5jb20vd2VpbGluaW5nL2hleG8tc3RhcnRlci9ibG9iL21hc3Rlci9fY29uZmlnLnltbA==\">https://gitee.com/weilining/hexo-starter/blob/master/_config.yml<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL25leHQtdGhlbWUvdGhlbWUtbmV4dC1kb2NzL2Jsb2IvbWFzdGVyL19jb25maWcubmV4dC55bWw=\">theme-next-docs/_config.next.yml<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL25leHQtdGhlbWUvdGhlbWUtbmV4dC1kb2NzL2Jsb2IvbWFzdGVyL19jb25maWcueW1s\">theme-next-docs/_config.yml<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL25leHQtdGhlbWUvdGhlbWUtbmV4dC1kb2Nz\">theme-next-docs<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly90aGVtZS1uZXh0LmpzLm9yZy9kb2Nz\">NexT docs<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9naXRodWIuY29tL2hleG9qcy9oZXhv\">Hexo<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly93d3cuY25ibG9ncy5jb20vYW9ndWFpL3AvMTEyMzkxODIuaHRtbA==\">2019Hexo博客Next主题深度美化 打造一个炫酷博客(2)-奥怪的小栈<i class=\"fa fa-external-link-alt\"></i></span></p>\n<p><span class=\"exturl\" data-url=\"aHR0cHM6Ly9ibG9nLmJpbGwubW9lL2hleG8tdGhlbWUtbmV4dC1jb25maWctb3B0aW1pemF0aW9uLw==\">https://blog.bill.moe/hexo-theme-next-config-optimization/<i class=\"fa fa-external-link-alt\"></i></span></p>\n","categories":["default"],"tags":["default"]},{"title":"404 Not Found:该页无法显示","url":"//404.html","content":"<script type=\"text/javascript\" src=\"//qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js\" homepagename='返回主页' homepageurl=\"/\" charset=\"utf-8\"></script>"},{"title":"分类","url":"/categories/index.html","content":""},{"title":"标签","url":"/tags/index.html","content":""},{"url":"/js/cursor/fireworks.js","content":"\"use strict\";function updateCoords(e){pointerX=(e.clientX||e.touches[0].clientX)-canvasEl.getBoundingClientRect().left,pointerY=e.clientY||e.touches[0].clientY-canvasEl.getBoundingClientRect().top}function setParticuleDirection(e){var t=anime.random(0,360)*Math.PI/180,a=anime.random(50,180),n=[-1,1][anime.random(0,1)]*a;return{x:e.x+n*Math.cos(t),y:e.y+n*Math.sin(t)}}function createParticule(e,t){var a={};return a.x=e,a.y=t,a.color=colors[anime.random(0,colors.length-1)],a.radius=anime.random(16,32),a.endPos=setParticuleDirection(a),a.draw=function(){ctx.beginPath(),ctx.arc(a.x,a.y,a.radius,0,2*Math.PI,!0),ctx.fillStyle=a.color,ctx.fill()},a}function createCircle(e,t){var a={};return a.x=e,a.y=t,a.color=\"#F00\",a.radius=0.1,a.alpha=0.5,a.lineWidth=6,a.draw=function(){ctx.globalAlpha=a.alpha,ctx.beginPath(),ctx.arc(a.x,a.y,a.radius,0,2*Math.PI,!0),ctx.lineWidth=a.lineWidth,ctx.strokeStyle=a.color,ctx.stroke(),ctx.globalAlpha=1},a}function renderParticule(e){for(var t=0;t<e.animatables.length;t++){e.animatables[t].target.draw()}}function animateParticules(e,t){for(var a=createCircle(e,t),n=[],i=0;i<numberOfParticules;i++){n.push(createParticule(e,t))}anime.timeline().add({targets:n,x:function(e){return e.endPos.x},y:function(e){return e.endPos.y},radius:0.1,duration:anime.random(1200,1800),easing:\"easeOutExpo\",update:renderParticule}).add({targets:a,radius:anime.random(80,160),lineWidth:0,alpha:{value:0,easing:\"linear\",duration:anime.random(600,800)},duration:anime.random(1200,1800),easing:\"easeOutExpo\",update:renderParticule,offset:0})}function debounce(e,t){var a;return function(){var n=this,i=arguments;clearTimeout(a),a=setTimeout(function(){e.apply(n,i)},t)}}var canvasEl=document.querySelector(\".fireworks\");if(canvasEl){var ctx=canvasEl.getContext(\"2d\"),numberOfParticules=30,pointerX=0,pointerY=0,tap=\"mousedown\",colors=[\"#FF1461\",\"#18FF92\",\"#5A87FF\",\"#FBF38C\"],setCanvasSize=debounce(function(){canvasEl.width=2*window.innerWidth,canvasEl.height=2*window.innerHeight,canvasEl.style.width=window.innerWidth+\"px\",canvasEl.style.height=window.innerHeight+\"px\",canvasEl.getContext(\"2d\").scale(2,2)},500),render=anime({duration:1/0,update:function(){ctx.clearRect(0,0,canvasEl.width,canvasEl.height)}});document.addEventListener(tap,function(e){\"sidebar\"!==e.target.id&&\"toggle-sidebar\"!==e.target.id&&\"A\"!==e.target.nodeName&&\"IMG\"!==e.target.nodeName&&(render.play(),updateCoords(e),animateParticules(pointerX,pointerY))},!1),setCanvasSize(),window.addEventListener(\"resize\",setCanvasSize,!1)}\"use strict\";function updateCoords(e){pointerX=(e.clientX||e.touches[0].clientX)-canvasEl.getBoundingClientRect().left,pointerY=e.clientY||e.touches[0].clientY-canvasEl.getBoundingClientRect().top}function setParticuleDirection(e){var t=anime.random(0,360)*Math.PI/180,a=anime.random(50,180),n=[-1,1][anime.random(0,1)]*a;return{x:e.x+n*Math.cos(t),y:e.y+n*Math.sin(t)}}function createParticule(e,t){var a={};return a.x=e,a.y=t,a.color=colors[anime.random(0,colors.length-1)],a.radius=anime.random(16,32),a.endPos=setParticuleDirection(a),a.draw=function(){ctx.beginPath(),ctx.arc(a.x,a.y,a.radius,0,2*Math.PI,!0),ctx.fillStyle=a.color,ctx.fill()},a}function createCircle(e,t){var a={};return a.x=e,a.y=t,a.color=\"#F00\",a.radius=0.1,a.alpha=0.5,a.lineWidth=6,a.draw=function(){ctx.globalAlpha=a.alpha,ctx.beginPath(),ctx.arc(a.x,a.y,a.radius,0,2*Math.PI,!0),ctx.lineWidth=a.lineWidth,ctx.strokeStyle=a.color,ctx.stroke(),ctx.globalAlpha=1},a}function renderParticule(e){for(var t=0;t<e.animatables.length;t++){e.animatables[t].target.draw()}}function animateParticules(e,t){for(var a=createCircle(e,t),n=[],i=0;i<numberOfParticules;i++){n.push(createParticule(e,t))}anime.timeline().add({targets:n,x:function(e){return e.endPos.x},y:function(e){return e.endPos.y},radius:0.1,duration:anime.random(1200,1800),easing:\"easeOutExpo\",update:renderParticule}).add({targets:a,radius:anime.random(80,160),lineWidth:0,alpha:{value:0,easing:\"linear\",duration:anime.random(600,800)},duration:anime.random(1200,1800),easing:\"easeOutExpo\",update:renderParticule,offset:0})}function debounce(e,t){var a;return function(){var n=this,i=arguments;clearTimeout(a),a=setTimeout(function(){e.apply(n,i)},t)}}var canvasEl=document.querySelector(\".fireworks\");if(canvasEl){var ctx=canvasEl.getContext(\"2d\"),numberOfParticules=30,pointerX=0,pointerY=0,tap=\"mousedown\",colors=[\"#FF1461\",\"#18FF92\",\"#5A87FF\",\"#FBF38C\"],setCanvasSize=debounce(function(){canvasEl.width=2*window.innerWidth,canvasEl.height=2*window.innerHeight,canvasEl.style.width=window.innerWidth+\"px\",canvasEl.style.height=window.innerHeight+\"px\",canvasEl.getContext(\"2d\").scale(2,2)},500),render=anime({duration:1/0,update:function(){ctx.clearRect(0,0,canvasEl.width,canvasEl.height)}});document.addEventListener(tap,function(e){\"sidebar\"!==e.target.id&&\"toggle-sidebar\"!==e.target.id&&\"A\"!==e.target.nodeName&&\"IMG\"!==e.target.nodeName&&(render.play(),updateCoords(e),animateParticules(pointerX,pointerY))},!1),setCanvasSize(),window.addEventListener(\"resize\",setCanvasSize,!1)};"},{"url":"/js/cursor/candy.min.js","content":"class Circle{constructor({origin:t,speed:i,color:e,angle:s,context:n}){this.origin=t,this.position={...this.origin},this.color=e,this.speed=i,this.angle=s,this.context=n,this.renderCount=0}draw(){this.context.fillStyle=this.color,this.context.beginPath(),this.context.arc(this.position.x,this.position.y,2,0,2*Math.PI),this.context.fill()}move(){this.position.x=Math.sin(this.angle)*this.speed+this.position.x,this.position.y=Math.cos(this.angle)*this.speed+this.position.y+.3*this.renderCount,this.renderCount++}}class Boom{constructor({origin:t,context:i,circleCount:e=10,area:s}){this.origin=t,this.context=i,this.circleCount=e,this.area=s,this.stop=!1,this.circles=[]}randomArray(t){const i=t.length;return t[Math.floor(i*Math.random())]}randomColor(){const t=[\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\"];return\"#\"+this.randomArray(t)+this.randomArray(t)+this.randomArray(t)+this.randomArray(t)+this.randomArray(t)+this.randomArray(t)}randomRange(t,i){return(i-t)*Math.random()+t}init(){for(let t=0;t<this.circleCount;t++){const t=new Circle({context:this.context,origin:this.origin,color:this.randomColor(),angle:this.randomRange(Math.PI-1,Math.PI+1),speed:this.randomRange(1,6)});this.circles.push(t)}}move(){this.circles.forEach((t,i)=>{if(t.position.x>this.area.width||t.position.y>this.area.height)return this.circles.splice(i,1);t.move()}),0==this.circles.length&&(this.stop=!0)}draw(){this.circles.forEach(t=>t.draw())}}class CursorSpecialEffects{constructor(){this.computerCanvas=document.createElement(\"canvas\"),this.renderCanvas=document.createElement(\"canvas\"),this.computerContext=this.computerCanvas.getContext(\"2d\"),this.renderContext=this.renderCanvas.getContext(\"2d\"),this.globalWidth=window.innerWidth,this.globalHeight=window.innerHeight,this.booms=[],this.running=!1}handleMouseDown(t){const i=new Boom({origin:{x:t.clientX,y:t.clientY},context:this.computerContext,area:{width:this.globalWidth,height:this.globalHeight}});i.init(),this.booms.push(i),this.running||this.run()}handlePageHide(){this.booms=[],this.running=!1}init(){const t=this.renderCanvas.style;t.position=\"fixed\",t.top=t.left=0,t.zIndex=\"999999999999999999999999999999999999999999\",t.pointerEvents=\"none\",t.width=this.renderCanvas.width=this.computerCanvas.width=this.globalWidth,t.height=this.renderCanvas.height=this.computerCanvas.height=this.globalHeight,document.body.append(this.renderCanvas),window.addEventListener(\"mousedown\",this.handleMouseDown.bind(this)),window.addEventListener(\"pagehide\",this.handlePageHide.bind(this))}run(){if(this.running=!0,0==this.booms.length)return this.running=!1;requestAnimationFrame(this.run.bind(this)),this.computerContext.clearRect(0,0,this.globalWidth,this.globalHeight),this.renderContext.clearRect(0,0,this.globalWidth,this.globalHeight),this.booms.forEach((t,i)=>{if(t.stop)return this.booms.splice(i,1);t.move(),t.draw()}),this.renderContext.drawImage(this.computerCanvas,0,0,this.globalWidth,this.globalHeight)}}const cursorSpecialEffects=new CursorSpecialEffects;cursorSpecialEffects.init();"},{"url":"/js/cursor/love.min.js","content":"! function (e, t, a) {\n function n() {\n c(\".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}\"), o(), r()\n }\n\n function r() {\n for (var e = 0; e < d.length; e++) d[e].alpha <= 0 ? (t.body.removeChild(d[e].el), d.splice(e, 1)) : (d[e].y--, d[e].scale += .004, d[e].alpha -= .013, d[e].el.style.cssText = \"left:\" + d[e].x + \"px;top:\" + d[e].y + \"px;opacity:\" + d[e].alpha + \";transform:scale(\" + d[e].scale + \",\" + d[e].scale + \") rotate(45deg);background:\" + d[e].color + \";z-index:99999\");\n requestAnimationFrame(r)\n }\n\n function o() {\n var t = \"function\" == typeof e.onclick && e.onclick;\n e.onclick = function (e) {\n t && t(), i(e)\n }\n }\n\n function i(e) {\n var a = t.createElement(\"div\");\n a.className = \"heart\", d.push({\n el: a,\n x: e.clientX - 5,\n y: e.clientY - 5,\n scale: 1,\n alpha: 1,\n color: s()\n }), t.body.appendChild(a)\n }\n\n function c(e) {\n var a = t.createElement(\"style\");\n a.type = \"text/css\";\n try {\n a.appendChild(t.createTextNode(e))\n } catch (t) {\n a.styleSheet.cssText = e\n }\n t.getElementsByTagName(\"head\")[0].appendChild(a)\n }\n\n function s() {\n return \"rgb(\" + ~~(255 * Math.random()) + \",\" + ~~(255 * Math.random()) + \",\" + ~~(255 * Math.random()) + \")\"\n }\n var d = [];\n e.requestAnimationFrame = function () {\n return e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {\n setTimeout(e, 1e3 / 60)\n }\n }(), n()\n}(window, document);\n"},{"url":"/js/cursor/text.js","content":"/* 社会主体核心价值观效果 */\nvar a_idx = 0;\njQuery(document).ready(function($) {\n $(\"body\").click(function(e) {\n // var a = new Array(\"❤富强❤\",\"❤民主❤\",\"❤文明❤\",\"❤和谐❤\",\"❤自由❤\",\"❤平等❤\",\"❤公正❤\",\"❤法治❤\",\"❤爱国❤\",\"❤敬业❤\",\"❤诚信❤\",\"❤友善❤\");\n var a = new Array(\"富强\",\"民主\",\"文明\",\"和谐\",\"自由\",\"平等\",\"公正\",\"法治\",\"爱国\",\"敬业\",\"诚信\",\"友善\");\n var $i = $(\"<span></span>\").text(a[a_idx]);\n a_idx = (a_idx + 1) % a.length;\n var x = e.pageX,\n y = e.pageY;\n $i.css({\n \"z-index\": 999999999999999999999999999999999999999999999999999999999999999999999,\n \"top\": y - 20,\n \"left\": x,\n \"position\": \"absolute\",\n \"font-weight\": \"bold\",\n \"color\": \"rgb(\"+~~(255*Math.random())+\",\"+~~(255*Math.random())+\",\"+~~(255*Math.random())+\")\"\n });\n $(\"body\").append($i);\n $i.animate({\n \"top\": y - 180,\n \"opacity\": 0\n },\n 1500,\n function() {\n $i.remove();\n });\n });\n});"},{"url":"/js/dist/APlayer.min.css","content":".aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:0 0;transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;-webkit-transform:scaleX(0);transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{-webkit-transform:rotateY(0);transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{-webkit-transform:scale(1);transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2);background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplayer-pause svg{position:absolute;top:2px;left:2px;height:12px;width:12px}.aplayer .aplayer-info{margin-left:66px;padding:14px 7px 0 10px;height:66px;box-sizing:border-box}.aplayer .aplayer-info .aplayer-music{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 13px 5px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default;padding-bottom:2px;height:20px}.aplayer .aplayer-info .aplayer-music .aplayer-title{font-size:14px}.aplayer .aplayer-info .aplayer-music .aplayer-author{font-size:12px;color:#666}.aplayer .aplayer-info .aplayer-controller{position:relative;display:flex}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer!important;flex:1}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap:hover .aplayer-bar .aplayer-played .aplayer-thumb{-webkit-transform:scale(1);transform:scale(1)}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;transition:all .5s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:10px;width:10px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;-webkit-transform:scale(0);transform:scale(0)}.aplayer .aplayer-info .aplayer-controller .aplayer-time{position:relative;right:0;bottom:4px;height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-time-inner{vertical-align:middle}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;transition:all .2s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:#666}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-loop{margin-right:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{fill:#000}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap{position:relative;display:inline-block;margin-left:3px;cursor:pointer!important}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap{position:absolute;bottom:15px;right:-3px;width:25px;height:0;z-index:99;overflow:hidden;transition:all .2s ease-in-out}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;right:10px;width:5px;height:35px;background:#aaa;border-radius:2.5px;overflow:hidden}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;right:0;width:5px;transition:all .1s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon svg{position:absolute;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.aplayer .aplayer-lrc{display:none;position:relative;height:30px;text-align:center;overflow:hidden;margin:-10px 0 7px}.aplayer .aplayer-lrc:before{top:0;height:10%;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#ffffff\",endColorstr=\"#00ffffff\",GradientType=0)}.aplayer .aplayer-lrc:after,.aplayer .aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:\" \"}.aplayer .aplayer-lrc:after{bottom:0;height:33%;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#00ffffff\",endColorstr=\"#ccffffff\",GradientType=0)}.aplayer .aplayer-lrc p{font-size:12px;color:#666;line-height:16px!important;height:16px!important;padding:0!important;margin:0!important;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer .aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto!important;min-height:16px}.aplayer .aplayer-lrc.aplayer-lrc-hide{display:none}.aplayer .aplayer-lrc .aplayer-lrc-contents{width:100%;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default}.aplayer .aplayer-list{overflow:auto;transition:all .5s ease;will-change:height;display:none;overflow:hidden}.aplayer .aplayer-list.aplayer-list-hide{max-height:0!important}.aplayer .aplayer-list ol{list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer .aplayer-list ol::-webkit-scrollbar{width:5px}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer .aplayer-list ol li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;transition:all .2s ease;overflow:hidden;margin:0}.aplayer .aplayer-list ol li:first-child{border-top:none}.aplayer .aplayer-list ol li:hover{background:#efefef}.aplayer .aplayer-list ol li.aplayer-list-light{background:#e9e9e9}.aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer .aplayer-list ol li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-index{color:#666;margin-right:12px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-author{color:#666;float:right;cursor:pointer}.aplayer .aplayer-notice{opacity:0;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:12px;border-radius:4px;padding:5px 10px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none;background-color:#f4f4f5;color:#909399}.aplayer .aplayer-miniswitcher{display:none;position:absolute;top:0;right:0;bottom:0;height:100%;background:#e6e6e6;width:18px;border-radius:0 2px 2px 0}.aplayer .aplayer-miniswitcher .aplayer-icon{height:100%;width:100%;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);transition:all .3s ease}.aplayer .aplayer-miniswitcher .aplayer-icon path{fill:#666}.aplayer .aplayer-miniswitcher .aplayer-icon:hover path{fill:#000}@-webkit-keyframes aplayer-roll{0%{left:0}to{left:-100%}}@keyframes aplayer-roll{0%{left:0}to{left:-100%}}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\n\n/*# sourceMappingURL=APlayer.min.css.map*/"},{"url":"/js/dist/music.js","content":"const ap = new APlayer({\n container: document.getElementById('aplayer'),\n fixed: true,\n autoplay: false,\n audio: [\n\t{\n name: \"平凡之路\",\n artist: '朴树',\n url: 'http://www.ytmp3.cn/down/59211.mp3',\n cover: 'http://p1.music.126.net/W_5XiCv3rGS1-J7EXpHSCQ==/18885211718782327.jpg?param=130y130',\n },\n\t {\n name: '这些民谣 - 一次听个够',\n artist: '翁大涵',\n url: 'http://www.ytmp3.cn/down/60222.mp3',\n cover: 'http://p2.music.126.net/Wx5GNJEpay2JbfVUJc4Aew==/109951163094853876.jpg?param=130y130',\n },\n {\n name: '你的酒馆对我打了烊',\n artist: '陈雪凝',\n url: 'http://www.ytmp3.cn/down/59770.mp3',\n cover: 'http://p1.music.126.net/LiRR__0pJHSivqBHZzbMUw==/109951163816225567.jpg?param=130y130',\n },\n\t {\n name: 'Something Just Like This',\n artist: 'The Chainsmokers',\n url: 'http://www.ytmp3.cn/down/50463.mp3',\n cover: 'http://p2.music.126.net/ggnyubDdMxrhpqYvpZbhEQ==/3302932937412681.jpg?param=130y130',\n },\n {\n name: 'Good Time',\n artist: 'Owl City&Carly Rae Jepsen',\n url: 'http://www.ytmp3.cn/down/34148.mp3',\n cover: 'http://p1.music.126.net/c5NVKUIAUcyN4BQUDbGnEg==/109951163221157827.jpg?param=130y130',\n }\n ]\n});"},{"url":"/js/src/FunnyTitle.js","content":"// 浏览器搞笑标题\nvar OriginTitle = document.title;\nvar titleTime;\ndocument.addEventListener('visibilitychange', function () {\n if (document.hidden) {\n $('[rel=\"icon\"]').attr('href', \"/images/funny.ico\");\n document.title = '╭(°A°`)╮ 页面崩溃啦 ~';\n clearTimeout(titleTime);\n }\n else {\n $('[rel=\"icon\"]').attr('href', \"/images/favicon-16x16-next.png\");\n document.title = '(ฅ>ω<*ฅ) 噫又好啦 ~' + OriginTitle;\n titleTime = setTimeout(function () {\n document.title = OriginTitle;\n }, 2000);\n }\n});\n"},{"url":"/js/src/canvas-nest.js","content":"/**\n * Copyright (c) 2016 hustcc\n * License: MIT\n * Version: v1.0.1\n * GitHub: https://github.com/hustcc/canvas-nest.js\n**/\n! function() {\n //封装方法,压缩之后减少文件大小\n function get_attribute(node, attr, default_value) {\n return node.getAttribute(attr) || default_value;\n }\n //封装方法,压缩之后减少文件大小\n function get_by_tagname(name) {\n return document.getElementsByTagName(name);\n }\n //获取配置参数\n function get_config_option() {\n var scripts = get_by_tagname(\"script\"),\n script_len = scripts.length,\n script = scripts[script_len - 1]; //当前加载的script\n return {\n l: script_len, //长度,用于生成id用\n z: get_attribute(script, \"zIndex\", -1), //z-index\n o: get_attribute(script, \"opacity\", 0.5), //opacity\n c: get_attribute(script, \"color\", \"0,0,0\"), //color\n n: get_attribute(script, \"count\", 99) //count\n };\n }\n //设置canvas的高宽\n function set_canvas_size() {\n canvas_width = the_canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, \n canvas_height = the_canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;\n }\n\n //绘制过程\n function draw_canvas() {\n context.clearRect(0, 0, canvas_width, canvas_height);\n //随机的线条和当前位置联合数组\n var e, i, d, x_dist, y_dist, dist; //临时节点\n //遍历处理每一个点\n random_points.forEach(function(r, idx) {\n r.x += r.xa, \n r.y += r.ya, //移动\n r.xa *= r.x > canvas_width || r.x < 0 ? -1 : 1, \n r.ya *= r.y > canvas_height || r.y < 0 ? -1 : 1, //碰到边界,反向反弹\n context.fillRect(r.x - 0.5, r.y - 0.5, 1, 1); //绘制一个宽高为1的点\n //从下一个点开始\n for (i = idx + 1; i < all_array.length; i++) {\n e = all_array[i];\n // 当前点存在\n if (null !== e.x && null !== e.y) {\n x_dist = r.x - e.x; //x轴距离 l\n y_dist = r.y - e.y; //y轴距离 n\n dist = x_dist * x_dist + y_dist * y_dist; //总距离, m\n\n dist < e.max && (e === current_point && dist >= e.max / 2 && (r.x -= 0.03 * x_dist, r.y -= 0.03 * y_dist), //靠近的时候加速\n d = (e.max - dist) / e.max,\n context.beginPath(),\n context.lineWidth = d / 2,\n context.strokeStyle = \"rgba(\" + config.c + \",\" + (d + 0.2) + \")\",\n context.moveTo(r.x, r.y),\n context.lineTo(e.x, e.y),\n context.stroke());\n }\n }\n }), frame_func(draw_canvas);\n }\n //创建画布,并添加到body中\n var the_canvas = document.createElement(\"canvas\"), //画布\n config = get_config_option(), //配置\n canvas_id = \"c_n\" + config.l, //canvas id\n context = the_canvas.getContext(\"2d\"), canvas_width, canvas_height, \n frame_func = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(func) {\n window.setTimeout(func, 1000 / 45);\n }, random = Math.random, \n current_point = {\n x: null, //当前鼠标x\n y: null, //当前鼠标y\n max: 20000 // 圈半径的平方\n },\n all_array;\n the_canvas.id = canvas_id;\n the_canvas.style.cssText = \"position:fixed;top:0;left:0;z-index:\" + config.z + \";opacity:\" + config.o;\n get_by_tagname(\"body\")[0].appendChild(the_canvas);\n\n //初始化画布大小\n set_canvas_size();\n window.onresize = set_canvas_size;\n //当时鼠标位置存储,离开的时候,释放当前位置信息\n window.onmousemove = function(e) {\n e = e || window.event;\n current_point.x = e.clientX;\n current_point.y = e.clientY;\n }, window.onmouseout = function() {\n current_point.x = null;\n current_point.y = null;\n };\n //随机生成config.n条线位置信息\n for (var random_points = [], i = 0; config.n > i; i++) {\n var x = random() * canvas_width, //随机位置\n y = random() * canvas_height,\n xa = 2 * random() - 1, //随机运动方向\n ya = 2 * random() - 1;\n // 随机点\n random_points.push({\n x: x,\n y: y,\n xa: xa,\n ya: ya,\n max: 6000 //沾附距离\n });\n }\n all_array = random_points.concat([current_point]);\n //0.1秒后绘制\n setTimeout(function() {\n draw_canvas();\n }, 100);\n}();\n"},{"url":"/js/src/jinrishici.js","content":"/**\n * 今日诗词V2 JS-SDK 1.2.2\n * 今日诗词API 是一个可以免费调用的诗词接口:https://www.jinrishici.com\n */\n!function(e){var n,t={},o=\"jinrishici-token\";function i(){return document.getElementById(\"jinrishici-sentence\")||0!=document.getElementsByClassName(\"jinrishici-sentence\").length}function c(){t.load(function(e){var n=document.getElementById(\"jinrishici-sentence\"),t=document.getElementsByClassName(\"jinrishici-sentence\");if(n&&(n.innerText=e.data.content),0!==t.length)for(var o=0;o<t.length;o++)t[o].innerText=e.data.content})}function r(e,n){var t=new XMLHttpRequest;t.open(\"get\",n),t.withCredentials=!0,t.send(),t.onreadystatechange=function(n){if(4===t.readyState){var o=JSON.parse(t.responseText);\"success\"===o.status?e(o):console.error(\"今日诗词API加载失败,错误原因:\"+o.errMessage)}}}t.load=function(n){return e.localStorage&&e.localStorage.getItem(o)?function(e,n){return r(e,\"https://v2.jinrishici.com/one.json?client=browser-sdk/1.2&X-User-Token=\"+encodeURIComponent(n))}(n,e.localStorage.getItem(o)):function(n){return r(function(t){e.localStorage.setItem(o,t.token),n(t)},\"https://v2.jinrishici.com/one.json?client=browser-sdk/1.2\")}(n)},e.jinrishici=t,i()?c():(n=function(){i()&&c()},\"loading\"!=document.readyState?n():document.addEventListener?document.addEventListener(\"DOMContentLoaded\",n):document.attachEvent(\"onreadystatechange\",function(){\"complete\"==document.readyState&&n()}))}(window);"},{"url":"/js/src/time.js","content":"(function(){\n\n var digit=\n [\n [\n [0,0,1,1,1,0,0],\n [0,1,1,0,1,1,0],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,0,1,1,0],\n [0,0,1,1,1,0,0]\n ],//0\n [\n [0,0,0,1,1,0,0],\n [0,1,1,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [1,1,1,1,1,1,1]\n ],//1\n [\n [0,1,1,1,1,1,0],\n [1,1,0,0,0,1,1],\n [0,0,0,0,0,1,1],\n [0,0,0,0,1,1,0],\n [0,0,0,1,1,0,0],\n [0,0,1,1,0,0,0],\n [0,1,1,0,0,0,0],\n [1,1,0,0,0,0,0],\n [1,1,0,0,0,1,1],\n [1,1,1,1,1,1,1]\n ],//2\n [\n [1,1,1,1,1,1,1],\n [0,0,0,0,0,1,1],\n [0,0,0,0,1,1,0],\n [0,0,0,1,1,0,0],\n [0,0,1,1,1,0,0],\n [0,0,0,0,1,1,0],\n [0,0,0,0,0,1,1],\n [0,0,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,1,1,1,0]\n ],//3\n [\n [0,0,0,0,1,1,0],\n [0,0,0,1,1,1,0],\n [0,0,1,1,1,1,0],\n [0,1,1,0,1,1,0],\n [1,1,0,0,1,1,0],\n [1,1,1,1,1,1,1],\n [0,0,0,0,1,1,0],\n [0,0,0,0,1,1,0],\n [0,0,0,0,1,1,0],\n [0,0,0,1,1,1,1]\n ],//4\n [\n [1,1,1,1,1,1,1],\n [1,1,0,0,0,0,0],\n [1,1,0,0,0,0,0],\n [1,1,1,1,1,1,0],\n [0,0,0,0,0,1,1],\n [0,0,0,0,0,1,1],\n [0,0,0,0,0,1,1],\n [0,0,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,1,1,1,0]\n ],//5\n [\n [0,0,0,0,1,1,0],\n [0,0,1,1,0,0,0],\n [0,1,1,0,0,0,0],\n [1,1,0,0,0,0,0],\n [1,1,0,1,1,1,0],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,1,1,1,0]\n ],//6\n [\n [1,1,1,1,1,1,1],\n [1,1,0,0,0,1,1],\n [0,0,0,0,1,1,0],\n [0,0,0,0,1,1,0],\n [0,0,0,1,1,0,0],\n [0,0,0,1,1,0,0],\n [0,0,1,1,0,0,0],\n [0,0,1,1,0,0,0],\n [0,0,1,1,0,0,0],\n [0,0,1,1,0,0,0]\n ],//7\n [\n [0,1,1,1,1,1,0],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,1,1,1,0],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,1,1,1,0]\n ],//8\n [\n [0,1,1,1,1,1,0],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [1,1,0,0,0,1,1],\n [0,1,1,1,0,1,1],\n [0,0,0,0,0,1,1],\n [0,0,0,0,0,1,1],\n [0,0,0,0,1,1,0],\n [0,0,0,1,1,0,0],\n [0,1,1,0,0,0,0]\n ],//9\n [\n [0,0,0,0,0,0,0],\n [0,0,1,1,1,0,0],\n [0,0,1,1,1,0,0],\n [0,0,1,1,1,0,0],\n [0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0],\n [0,0,1,1,1,0,0],\n [0,0,1,1,1,0,0],\n [0,0,1,1,1,0,0],\n [0,0,0,0,0,0,0]\n ]//:\n ];\n \n var canvas = document.getElementById('canvas');\n \n if(canvas.getContext){\n var cxt = canvas.getContext('2d');\n //声明canvas的宽高\n var H = 100,W = 700;\n canvas.height = H;\n canvas.width = W;\n cxt.fillStyle = '#f00';\n cxt.fillRect(10,10,50,50);\n \n //存储时间数据\n var data = [];\n //存储运动的小球\n var balls = [];\n //设置粒子半径\n var R = canvas.height/20-1;\n (function(){\n var temp = /(\\d)(\\d):(\\d)(\\d):(\\d)(\\d)/.exec(new Date());\n //存储时间数字,由十位小时、个位小时、冒号、十位分钟、个位分钟、冒号、十位秒钟、个位秒钟这7个数字组成\n data.push(temp[1],temp[2],10,temp[3],temp[4],10,temp[5],temp[6]);\n })();\n \n /*生成点阵数字*/\n function renderDigit(index,num){\n for(var i = 0; i < digit[num].length; i++){\n for(var j = 0; j < digit[num][i].length; j++){\n if(digit[num][i][j] == 1){\n cxt.beginPath();\n //cxt.fillStyle = '#f00';/*红色数字*/\n //cxt.fillStyle = '#fff';/*白色数字*/\n cxt.fillStyle = '#FAF0BB';/*代码黄数字*/\n cxt.arc(14*(R+2)*index + j*2*(R+1)+(R+1),i*2*(R+1)+(R+1),R,0,2*Math.PI);\n cxt.closePath();\n cxt.fill();\n }\n }\n }\n }\n \n /*更新时钟*/\n function updateDigitTime(){\n var changeNumArray = [];\n var temp = /(\\d)(\\d):(\\d)(\\d):(\\d)(\\d)/.exec(new Date());\n var NewData = [];\n NewData.push(temp[1],temp[2],10,temp[3],temp[4],10,temp[5],temp[6]);\n for(var i = data.length-1; i >=0 ; i--){\n //时间发生变化\n if(NewData[i] !== data[i]){\n //将变化的数字值和在data数组中的索引存储在changeNumArray数组中\n changeNumArray.push(i+'_'+(Number(data[i])+1)%10);\n }\n }\n //增加小球\n for(var i = 0; i< changeNumArray.length; i++){\n addBalls.apply(this,changeNumArray[i].split('_'));\n }\n data = NewData.concat();\n }\n \n /*更新小球状态*/\n function updateBalls(){\n for(var i = 0; i < balls.length; i++){\n balls[i].stepY += balls[i].disY;\n balls[i].x += balls[i].stepX;\n balls[i].y += balls[i].stepY;\n if(balls[i].x > W + R || balls[i].y > H + R){\n balls.splice(i,1);\n i--;\n }\n }\n }\n \n /*增加要运动的小球*/\n function addBalls(index,num){\n var numArray = [1,2,3];\n var colorArray = [\"#3BE\",\"#09C\",\"#A6C\",\"#93C\",\"#9C0\",\"#690\",\"#FB3\",\"#F80\",\"#F44\",\"#C00\"];\n for(var i = 0; i < digit[num].length; i++){\n for(var j = 0; j < digit[num][i].length; j++){\n if(digit[num][i][j] == 1){\n var ball = {\n x:14*(R+2)*index + j*2*(R+1)+(R+1),\n y:i*2*(R+1)+(R+1),\n stepX:Math.floor(Math.random() * 4 -2),\n stepY:-2*numArray[Math.floor(Math.random()*numArray.length)],\n color:colorArray[Math.floor(Math.random()*colorArray.length)],\n disY:1\n };\n balls.push(ball);\n }\n }\n }\n }\n \n /*渲染*/\n function render(){\n //重置画布宽度,达到清空画布的效果\n canvas.height = 100;\n //渲染时钟\n for(var i = 0; i < data.length; i++){\n renderDigit(i,data[i]);\n }\n //渲染小球\n for(var i = 0; i < balls.length; i++){\n cxt.beginPath();\n cxt.arc(balls[i].x,balls[i].y,R,0,2*Math.PI);\n cxt.fillStyle = balls[i].color;\n cxt.closePath();\n cxt.fill();\n }\n }\n \n clearInterval(oTimer);\n var oTimer = setInterval(function(){\n //更新时钟\n updateDigitTime();\n //更新小球状态\n updateBalls();\n //渲染\n render();\n },50);\n }\n \n })();"},{"url":"/js/src/snow.min.js","content":"notMobile&&(()=>{let e={flakeCount:100,minDist:150,color:\"255, 255, 255\",size:2,speed:.5,opacity:.2,stepsize:.5};const t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};window.requestAnimationFrame=t;const i=document.getElementById(\"snow\"),n=i.getContext(\"2d\"),o=e.flakeCount;let a=-100,s=-100,d=[];i.width=window.innerWidth,i.height=window.innerHeight;const h=()=>{n.clearRect(0,0,i.width,i.height);const r=e.minDist;for(let t=0;t<o;t++){let o=d[t];const h=a,m=s,w=o.x,c=o.y,p=Math.sqrt((h-w)*(h-w)+(m-c)*(m-c));if(p<r){const e=(h-w)/p,t=(m-c)/p,i=r/(p*p)/2;o.velX-=i*e,o.velY-=i*t}else o.velX*=.98,o.velY<o.speed&&o.speed-o.velY>.01&&(o.velY+=.01*(o.speed-o.velY)),o.velX+=Math.cos(o.step+=.05)*o.stepSize;n.fillStyle=\"rgba(\"+e.color+\", \"+o.opacity+\")\",o.y+=o.velY,o.x+=o.velX,(o.y>=i.height||o.y<=0)&&l(o),(o.x>=i.width||o.x<=0)&&l(o),n.beginPath(),n.arc(o.x,o.y,o.size,0,2*Math.PI),n.fill()}t(h)},l=e=>{e.x=Math.floor(Math.random()*i.width),e.y=0,e.size=3*Math.random()+2,e.speed=1*Math.random()+.5,e.velY=e.speed,e.velX=0,e.opacity=.5*Math.random()+.3};document.addEventListener(\"mousemove\",e=>{a=e.clientX,s=e.clientY}),window.addEventListener(\"resize\",()=>{i.width=window.innerWidth,i.height=window.innerHeight}),(()=>{for(let t=0;t<o;t++){const t=Math.floor(Math.random()*i.width),n=Math.floor(Math.random()*i.height),o=3*Math.random()+e.size,a=1*Math.random()+e.speed,s=.5*Math.random()+e.opacity;d.push({speed:a,velX:0,velY:a,x:t,y:n,size:o,stepSize:Math.random()/30*e.stepsize,step:0,angle:180,opacity:s})}h()})()})();"},{"url":"/js/src/word.js","content":"var binft =function (r) {function t() {return b[Math.floor(Math.random() *b.length)]\n}\nfunction e() {return String.fromCharCode(94 *Math.random() + 33)\n}\nfunction n(r) {for (var n =document.createDocumentFragment(),i =0;r >i;i++) {var l =document.createElement(\"span\");l.textContent =e(),l.style.color =t(),n.appendChild(l)\n}\nreturn n\n}\nfunction i() {var t =o[c.skillI];c.step ?c.step-- :(c.step =g,c.prefixP < l.length ?(c.prefixP >=0 &&(c.text +=l[c.prefixP]),c.prefixP++) :\"forward\" ===c.direction ?c.skillP < t.length ?(c.text +=t[c.skillP],c.skillP++) :c.delay ?c.delay-- :(c.direction =\"backward\",c.delay =a) :c.skillP >0 ?(c.text =c.text.slice(0,-1),c.skillP--) :(c.skillI =(c.skillI + 1) % o.length,c.direction =\"forward\")),r.textContent =c.text,r.appendChild(n(c.prefixP < l.length ?Math.min(s,s + c.prefixP) :Math.min(s,t.length - c.skillP))),setTimeout(i,d)\n}\nvar l =\"\",o =[\"山有木兮木有枝,心悦君兮君不知。\",\"人生若只如初见,何事秋风悲画扇。\",\"十年生死两茫茫,不思量,自难忘。\",\"曾经沧海难为水,除却巫山不是云。\",\"洛中何郁郁,冠带自相索。\",\"只愿君心似我心,定不负相思意。\",\"愿得一心人,白头不相离。\",\"入我相思门,知我相思苦。\"].map(function (r) {return r + \"\"\n}),a =2,g =1,s =5,d =75,b =[\"rgb(110,64,170)\",\"rgb(150,61,179)\",\"rgb(191,60,175)\",\"rgb(228,65,157)\",\"rgb(254,75,131)\",\"rgb(255,94,99)\",\"rgb(255,120,71)\",\"rgb(251,150,51)\",\"rgb(226,183,47)\",\"rgb(198,214,60)\",\"rgb(175,240,91)\",\"rgb(127,246,88)\",\"rgb(82,246,103)\",\"rgb(48,239,130)\",\"rgb(29,223,163)\",\"rgb(26,199,194)\",\"rgb(35,171,216)\",\"rgb(54,140,225)\",\"rgb(76,110,219)\",\"rgb(96,84,200)\"],c ={text:\"\",prefixP:-s,skillI:0,skillP:0,direction:\"forward\",delay:a,step:g\n};i()\n};binft(document.getElementById('binft'));"},{"url":"/js/src/tw_cn.js","content":"var defaultEncoding = 2; // 网站默认语言,1: 繁體中文, 2: 简体中文\nvar translateDelay = 0; //延迟时间,若不在前, 要设定延迟翻译时间, 如100表示100ms,默认为0\nvar cookieDomain = \"https://tding.top/\"; //更改为你的博客网址\nvar msgToTraditionalChinese = \"繁體\"; //此处可以更改为你想要显示的文字\nvar msgToSimplifiedChinese = \"简体\"; //同上,但两处均不建议更改\nvar translateButtonId = \"translateLink\"; //默认互换id\nvar currentEncoding = defaultEncoding;\nvar targetEncodingCookie = \"targetEncoding\" + cookieDomain.replace(/\\./g, \"\");\nvar targetEncoding = (getCookie(targetEncodingCookie) == null ? defaultEncoding: getCookie(targetEncodingCookie));\nvar translateButtonObject;\nfunction translateText(txt) {\n\tif (txt == \"\" || txt == null) return \"\";\n\tif (currentEncoding == 1 && targetEncoding == 2) return Simplized(txt);\n\telse if (currentEncoding == 2 && targetEncoding == 1) return Traditionalized(txt);\n\telse return txt\n}\nfunction translateBody(fobj) {\n\tif (typeof(fobj) == \"object\") var objs = fobj.childNodes;\n\telse var objs = document.body.childNodes;\n\tfor (var i = 0; i < objs.length; i++) {\n\t\tvar obj = objs.item(i);\n\t\tif (\"||BR|HR|TEXTAREA|\".indexOf(\"|\" + obj.tagName + \"|\") > 0 || obj == translateButtonObject) continue;\n\t\tif (obj.title != \"\" && obj.title != null) obj.title = translateText(obj.title);\n\t\tif (obj.alt != \"\" && obj.alt != null) obj.alt = translateText(obj.alt);\n\t\tif (obj.tagName == \"INPUT\" && obj.value != \"\" && obj.type != \"text\" && obj.type != \"hidden\") obj.value = translateText(obj.value);\n\t\tif (obj.nodeType == 3) obj.data = translateText(obj.data);\n\t\telse translateBody(obj)\n\t}\n}\nfunction translatePage() {\n\tif (targetEncoding == 1) {\n\t\tcurrentEncoding = 1;\n\t\ttargetEncoding = 2;\n\t\ttranslateButtonObject.innerHTML = msgToTraditionalChinese;\n\t\tsetCookie(targetEncodingCookie, targetEncoding, 7);\n\t\ttranslateBody()\n\t} else if (targetEncoding == 2) {\n\t\tcurrentEncoding = 2;\n\t\ttargetEncoding = 1;\n\t\ttranslateButtonObject.innerHTML = msgToSimplifiedChinese;\n\t\tsetCookie(targetEncodingCookie, targetEncoding, 7);\n\t\ttranslateBody()\n\t}\n}\nfunction JTPYStr() {\n\treturn '万与丑专业丛东丝丢两严丧个丬丰临为丽举么义乌乐乔习乡书买乱争于亏云亘亚产亩亲亵亸亿仅从仑仓仪们价众优伙会伛伞伟传伤伥伦伧伪伫体余佣佥侠侣侥侦侧侨侩侪侬俣俦俨俩俪俭债倾偬偻偾偿傥傧储傩儿兑兖党兰关兴兹养兽冁内冈册写军农冢冯冲决况冻净凄凉凌减凑凛几凤凫凭凯击凼凿刍划刘则刚创删别刬刭刽刿剀剂剐剑剥剧劝办务劢动励劲劳势勋勐勚匀匦匮区医华协单卖卢卤卧卫却卺厂厅历厉压厌厍厕厢厣厦厨厩厮县参叆叇双发变叙叠叶号叹叽吁后吓吕吗吣吨听启吴呒呓呕呖呗员呙呛呜咏咔咙咛咝咤咴咸哌响哑哒哓哔哕哗哙哜哝哟唛唝唠唡唢唣唤唿啧啬啭啮啰啴啸喷喽喾嗫呵嗳嘘嘤嘱噜噼嚣嚯团园囱围囵国图圆圣圹场坂坏块坚坛坜坝坞坟坠垄垅垆垒垦垧垩垫垭垯垱垲垴埘埙埚埝埯堑堕塆墙壮声壳壶壸处备复够头夸夹夺奁奂奋奖奥妆妇妈妩妪妫姗姜娄娅娆娇娈娱娲娴婳婴婵婶媪嫒嫔嫱嬷孙学孪宁宝实宠审宪宫宽宾寝对寻导寿将尔尘尧尴尸尽层屃屉届属屡屦屿岁岂岖岗岘岙岚岛岭岳岽岿峃峄峡峣峤峥峦崂崃崄崭嵘嵚嵛嵝嵴巅巩巯币帅师帏帐帘帜带帧帮帱帻帼幂幞干并广庄庆庐庑库应庙庞废庼廪开异弃张弥弪弯弹强归当录彟彦彻径徕御忆忏忧忾怀态怂怃怄怅怆怜总怼怿恋恳恶恸恹恺恻恼恽悦悫悬悭悯惊惧惨惩惫惬惭惮惯愍愠愤愦愿慑慭憷懑懒懔戆戋戏戗战戬户扎扑扦执扩扪扫扬扰抚抛抟抠抡抢护报担拟拢拣拥拦拧拨择挂挚挛挜挝挞挟挠挡挢挣挤挥挦捞损捡换捣据捻掳掴掷掸掺掼揸揽揿搀搁搂搅携摄摅摆摇摈摊撄撑撵撷撸撺擞攒敌敛数斋斓斗斩断无旧时旷旸昙昼昽显晋晒晓晔晕晖暂暧札术朴机杀杂权条来杨杩杰极构枞枢枣枥枧枨枪枫枭柜柠柽栀栅标栈栉栊栋栌栎栏树栖样栾桊桠桡桢档桤桥桦桧桨桩梦梼梾检棂椁椟椠椤椭楼榄榇榈榉槚槛槟槠横樯樱橥橱橹橼檐檩欢欤欧歼殁殇残殒殓殚殡殴毁毂毕毙毡毵氇气氢氩氲汇汉污汤汹沓沟没沣沤沥沦沧沨沩沪沵泞泪泶泷泸泺泻泼泽泾洁洒洼浃浅浆浇浈浉浊测浍济浏浐浑浒浓浔浕涂涌涛涝涞涟涠涡涢涣涤润涧涨涩淀渊渌渍渎渐渑渔渖渗温游湾湿溃溅溆溇滗滚滞滟滠满滢滤滥滦滨滩滪漤潆潇潋潍潜潴澜濑濒灏灭灯灵灾灿炀炉炖炜炝点炼炽烁烂烃烛烟烦烧烨烩烫烬热焕焖焘煅煳熘爱爷牍牦牵牺犊犟状犷犸犹狈狍狝狞独狭狮狯狰狱狲猃猎猕猡猪猫猬献獭玑玙玚玛玮环现玱玺珉珏珐珑珰珲琎琏琐琼瑶瑷璇璎瓒瓮瓯电画畅畲畴疖疗疟疠疡疬疮疯疱疴痈痉痒痖痨痪痫痴瘅瘆瘗瘘瘪瘫瘾瘿癞癣癫癯皑皱皲盏盐监盖盗盘眍眦眬着睁睐睑瞒瞩矫矶矾矿砀码砖砗砚砜砺砻砾础硁硅硕硖硗硙硚确硷碍碛碜碱碹磙礼祎祢祯祷祸禀禄禅离秃秆种积称秽秾稆税稣稳穑穷窃窍窑窜窝窥窦窭竖竞笃笋笔笕笺笼笾筑筚筛筜筝筹签简箓箦箧箨箩箪箫篑篓篮篱簖籁籴类籼粜粝粤粪粮糁糇紧絷纟纠纡红纣纤纥约级纨纩纪纫纬纭纮纯纰纱纲纳纴纵纶纷纸纹纺纻纼纽纾线绀绁绂练组绅细织终绉绊绋绌绍绎经绐绑绒结绔绕绖绗绘给绚绛络绝绞统绠绡绢绣绤绥绦继绨绩绪绫绬续绮绯绰绱绲绳维绵绶绷绸绹绺绻综绽绾绿缀缁缂缃缄缅缆缇缈缉缊缋缌缍缎缏缐缑缒缓缔缕编缗缘缙缚缛缜缝缞缟缠缡缢缣缤缥缦缧缨缩缪缫缬缭缮缯缰缱缲缳缴缵罂网罗罚罢罴羁羟羡翘翙翚耢耧耸耻聂聋职聍联聩聪肃肠肤肷肾肿胀胁胆胜胧胨胪胫胶脉脍脏脐脑脓脔脚脱脶脸腊腌腘腭腻腼腽腾膑臜舆舣舰舱舻艰艳艹艺节芈芗芜芦苁苇苈苋苌苍苎苏苘苹茎茏茑茔茕茧荆荐荙荚荛荜荞荟荠荡荣荤荥荦荧荨荩荪荫荬荭荮药莅莜莱莲莳莴莶获莸莹莺莼萚萝萤营萦萧萨葱蒇蒉蒋蒌蓝蓟蓠蓣蓥蓦蔷蔹蔺蔼蕲蕴薮藁藓虏虑虚虫虬虮虽虾虿蚀蚁蚂蚕蚝蚬蛊蛎蛏蛮蛰蛱蛲蛳蛴蜕蜗蜡蝇蝈蝉蝎蝼蝾螀螨蟏衅衔补衬衮袄袅袆袜袭袯装裆裈裢裣裤裥褛褴襁襕见观觃规觅视觇览觉觊觋觌觍觎觏觐觑觞触觯詟誉誊讠计订讣认讥讦讧讨让讪讫训议讯记讱讲讳讴讵讶讷许讹论讻讼讽设访诀证诂诃评诅识诇诈诉诊诋诌词诎诏诐译诒诓诔试诖诗诘诙诚诛诜话诞诟诠诡询诣诤该详诧诨诩诪诫诬语诮误诰诱诲诳说诵诶请诸诹诺读诼诽课诿谀谁谂调谄谅谆谇谈谊谋谌谍谎谏谐谑谒谓谔谕谖谗谘谙谚谛谜谝谞谟谠谡谢谣谤谥谦谧谨谩谪谫谬谭谮谯谰谱谲谳谴谵谶谷豮贝贞负贠贡财责贤败账货质贩贪贫贬购贮贯贰贱贲贳贴贵贶贷贸费贺贻贼贽贾贿赀赁赂赃资赅赆赇赈赉赊赋赌赍赎赏赐赑赒赓赔赕赖赗赘赙赚赛赜赝赞赟赠赡赢赣赪赵赶趋趱趸跃跄跖跞践跶跷跸跹跻踊踌踪踬踯蹑蹒蹰蹿躏躜躯车轧轨轩轪轫转轭轮软轰轱轲轳轴轵轶轷轸轹轺轻轼载轾轿辀辁辂较辄辅辆辇辈辉辊辋辌辍辎辏辐辑辒输辔辕辖辗辘辙辚辞辩辫边辽达迁过迈运还这进远违连迟迩迳迹适选逊递逦逻遗遥邓邝邬邮邹邺邻郁郄郏郐郑郓郦郧郸酝酦酱酽酾酿释里鉅鉴銮錾钆钇针钉钊钋钌钍钎钏钐钑钒钓钔钕钖钗钘钙钚钛钝钞钟钠钡钢钣钤钥钦钧钨钩钪钫钬钭钮钯钰钱钲钳钴钵钶钷钸钹钺钻钼钽钾钿铀铁铂铃铄铅铆铈铉铊铋铍铎铏铐铑铒铕铗铘铙铚铛铜铝铞铟铠铡铢铣铤铥铦铧铨铪铫铬铭铮铯铰铱铲铳铴铵银铷铸铹铺铻铼铽链铿销锁锂锃锄锅锆锇锈锉锊锋锌锍锎锏锐锑锒锓锔锕锖锗错锚锜锞锟锠锡锢锣锤锥锦锨锩锫锬锭键锯锰锱锲锳锴锵锶锷锸锹锺锻锼锽锾锿镀镁镂镃镆镇镈镉镊镌镍镎镏镐镑镒镕镖镗镙镚镛镜镝镞镟镠镡镢镣镤镥镦镧镨镩镪镫镬镭镮镯镰镱镲镳镴镶长门闩闪闫闬闭问闯闰闱闲闳间闵闶闷闸闹闺闻闼闽闾闿阀阁阂阃阄阅阆阇阈阉阊阋阌阍阎阏阐阑阒阓阔阕阖阗阘阙阚阛队阳阴阵阶际陆陇陈陉陕陧陨险随隐隶隽难雏雠雳雾霁霉霭靓静靥鞑鞒鞯鞴韦韧韨韩韪韫韬韵页顶顷顸项顺须顼顽顾顿颀颁颂颃预颅领颇颈颉颊颋颌颍颎颏颐频颒颓颔颕颖颗题颙颚颛颜额颞颟颠颡颢颣颤颥颦颧风飏飐飑飒飓飔飕飖飗飘飙飚飞飨餍饤饥饦饧饨饩饪饫饬饭饮饯饰饱饲饳饴饵饶饷饸饹饺饻饼饽饾饿馀馁馂馃馄馅馆馇馈馉馊馋馌馍馎馏馐馑馒馓馔馕马驭驮驯驰驱驲驳驴驵驶驷驸驹驺驻驼驽驾驿骀骁骂骃骄骅骆骇骈骉骊骋验骍骎骏骐骑骒骓骔骕骖骗骘骙骚骛骜骝骞骟骠骡骢骣骤骥骦骧髅髋髌鬓魇魉鱼鱽鱾鱿鲀鲁鲂鲄鲅鲆鲇鲈鲉鲊鲋鲌鲍鲎鲏鲐鲑鲒鲓鲔鲕鲖鲗鲘鲙鲚鲛鲜鲝鲞鲟鲠鲡鲢鲣鲤鲥鲦鲧鲨鲩鲪鲫鲬鲭鲮鲯鲰鲱鲲鲳鲴鲵鲶鲷鲸鲹鲺鲻鲼鲽鲾鲿鳀鳁鳂鳃鳄鳅鳆鳇鳈鳉鳊鳋鳌鳍鳎鳏鳐鳑鳒鳓鳔鳕鳖鳗鳘鳙鳛鳜鳝鳞鳟鳠鳡鳢鳣鸟鸠鸡鸢鸣鸤鸥鸦鸧鸨鸩鸪鸫鸬鸭鸮鸯鸰鸱鸲鸳鸴鸵鸶鸷鸸鸹鸺鸻鸼鸽鸾鸿鹀鹁鹂鹃鹄鹅鹆鹇鹈鹉鹊鹋鹌鹍鹎鹏鹐鹑鹒鹓鹔鹕鹖鹗鹘鹚鹛鹜鹝鹞鹟鹠鹡鹢鹣鹤鹥鹦鹧鹨鹩鹪鹫鹬鹭鹯鹰鹱鹲鹳鹴鹾麦麸黄黉黡黩黪黾鼋鼌鼍鼗鼹齄齐齑齿龀龁龂龃龄龅龆龇龈龉龊龋龌龙龚龛龟志制咨只里系范松没尝尝闹面准钟别闲干尽脏拼'\n}\nfunction FTPYStr() {\n\treturn '萬與醜專業叢東絲丟兩嚴喪個爿豐臨為麗舉麼義烏樂喬習鄉書買亂爭於虧雲亙亞產畝親褻嚲億僅從侖倉儀們價眾優夥會傴傘偉傳傷倀倫傖偽佇體餘傭僉俠侶僥偵側僑儈儕儂俁儔儼倆儷儉債傾傯僂僨償儻儐儲儺兒兌兗黨蘭關興茲養獸囅內岡冊寫軍農塚馮衝決況凍淨淒涼淩減湊凜幾鳳鳧憑凱擊氹鑿芻劃劉則剛創刪別剗剄劊劌剴劑剮劍剝劇勸辦務勱動勵勁勞勢勳猛勩勻匭匱區醫華協單賣盧鹵臥衛卻巹廠廳曆厲壓厭厙廁廂厴廈廚廄廝縣參靉靆雙發變敘疊葉號歎嘰籲後嚇呂嗎唚噸聽啟吳嘸囈嘔嚦唄員咼嗆嗚詠哢嚨嚀噝吒噅鹹呱響啞噠嘵嗶噦嘩噲嚌噥喲嘜嗊嘮啢嗩唕喚呼嘖嗇囀齧囉嘽嘯噴嘍嚳囁嗬噯噓嚶囑嚕劈囂謔團園囪圍圇國圖圓聖壙場阪壞塊堅壇壢壩塢墳墜壟壟壚壘墾坰堊墊埡墶壋塏堖塒塤堝墊垵塹墮壪牆壯聲殼壺壼處備複夠頭誇夾奪奩奐奮獎奧妝婦媽嫵嫗媯姍薑婁婭嬈嬌孌娛媧嫻嫿嬰嬋嬸媼嬡嬪嬙嬤孫學孿寧寶實寵審憲宮寬賓寢對尋導壽將爾塵堯尷屍盡層屭屜屆屬屢屨嶼歲豈嶇崗峴嶴嵐島嶺嶽崠巋嶨嶧峽嶢嶠崢巒嶗崍嶮嶄嶸嶔崳嶁脊巔鞏巰幣帥師幃帳簾幟帶幀幫幬幘幗冪襆幹並廣莊慶廬廡庫應廟龐廢廎廩開異棄張彌弳彎彈強歸當錄彠彥徹徑徠禦憶懺憂愾懷態慫憮慪悵愴憐總懟懌戀懇惡慟懨愷惻惱惲悅愨懸慳憫驚懼慘懲憊愜慚憚慣湣慍憤憒願懾憖怵懣懶懍戇戔戲戧戰戩戶紮撲扡執擴捫掃揚擾撫拋摶摳掄搶護報擔擬攏揀擁攔擰撥擇掛摯攣掗撾撻挾撓擋撟掙擠揮撏撈損撿換搗據撚擄摑擲撣摻摜摣攬撳攙擱摟攪攜攝攄擺搖擯攤攖撐攆擷擼攛擻攢敵斂數齋斕鬥斬斷無舊時曠暘曇晝曨顯晉曬曉曄暈暉暫曖劄術樸機殺雜權條來楊榪傑極構樅樞棗櫪梘棖槍楓梟櫃檸檉梔柵標棧櫛櫳棟櫨櫟欄樹棲樣欒棬椏橈楨檔榿橋樺檜槳樁夢檮棶檢欞槨櫝槧欏橢樓欖櫬櫚櫸檟檻檳櫧橫檣櫻櫫櫥櫓櫞簷檁歡歟歐殲歿殤殘殞殮殫殯毆毀轂畢斃氈毿氌氣氫氬氳彙漢汙湯洶遝溝沒灃漚瀝淪滄渢溈滬濔濘淚澩瀧瀘濼瀉潑澤涇潔灑窪浹淺漿澆湞溮濁測澮濟瀏滻渾滸濃潯濜塗湧濤澇淶漣潿渦溳渙滌潤澗漲澀澱淵淥漬瀆漸澠漁瀋滲溫遊灣濕潰濺漵漊潷滾滯灩灄滿瀅濾濫灤濱灘澦濫瀠瀟瀲濰潛瀦瀾瀨瀕灝滅燈靈災燦煬爐燉煒熗點煉熾爍爛烴燭煙煩燒燁燴燙燼熱煥燜燾煆糊溜愛爺牘犛牽犧犢強狀獷獁猶狽麅獮獰獨狹獅獪猙獄猻獫獵獼玀豬貓蝟獻獺璣璵瑒瑪瑋環現瑲璽瑉玨琺瓏璫琿璡璉瑣瓊瑤璦璿瓔瓚甕甌電畫暢佘疇癤療瘧癘瘍鬁瘡瘋皰屙癰痙癢瘂癆瘓癇癡癉瘮瘞瘺癟癱癮癭癩癬癲臒皚皺皸盞鹽監蓋盜盤瞘眥矓著睜睞瞼瞞矚矯磯礬礦碭碼磚硨硯碸礪礱礫礎硜矽碩硤磽磑礄確鹼礙磧磣堿镟滾禮禕禰禎禱禍稟祿禪離禿稈種積稱穢穠穭稅穌穩穡窮竊竅窯竄窩窺竇窶豎競篤筍筆筧箋籠籩築篳篩簹箏籌簽簡籙簀篋籜籮簞簫簣簍籃籬籪籟糴類秈糶糲粵糞糧糝餱緊縶糸糾紆紅紂纖紇約級紈纊紀紉緯紜紘純紕紗綱納紝縱綸紛紙紋紡紵紖紐紓線紺絏紱練組紳細織終縐絆紼絀紹繹經紿綁絨結絝繞絰絎繪給絢絳絡絕絞統綆綃絹繡綌綏絛繼綈績緒綾緓續綺緋綽緔緄繩維綿綬繃綢綯綹綣綜綻綰綠綴緇緙緗緘緬纜緹緲緝縕繢緦綞緞緶線緱縋緩締縷編緡緣縉縛縟縝縫縗縞纏縭縊縑繽縹縵縲纓縮繆繅纈繚繕繒韁繾繰繯繳纘罌網羅罰罷羆羈羥羨翹翽翬耮耬聳恥聶聾職聹聯聵聰肅腸膚膁腎腫脹脅膽勝朧腖臚脛膠脈膾髒臍腦膿臠腳脫腡臉臘醃膕齶膩靦膃騰臏臢輿艤艦艙艫艱豔艸藝節羋薌蕪蘆蓯葦藶莧萇蒼苧蘇檾蘋莖蘢蔦塋煢繭荊薦薘莢蕘蓽蕎薈薺蕩榮葷滎犖熒蕁藎蓀蔭蕒葒葤藥蒞蓧萊蓮蒔萵薟獲蕕瑩鶯蓴蘀蘿螢營縈蕭薩蔥蕆蕢蔣蔞藍薊蘺蕷鎣驀薔蘞藺藹蘄蘊藪槁蘚虜慮虛蟲虯蟣雖蝦蠆蝕蟻螞蠶蠔蜆蠱蠣蟶蠻蟄蛺蟯螄蠐蛻蝸蠟蠅蟈蟬蠍螻蠑螿蟎蠨釁銜補襯袞襖嫋褘襪襲襏裝襠褌褳襝褲襇褸襤繈襴見觀覎規覓視覘覽覺覬覡覿覥覦覯覲覷觴觸觶讋譽謄訁計訂訃認譏訐訌討讓訕訖訓議訊記訒講諱謳詎訝訥許訛論訩訟諷設訪訣證詁訶評詛識詗詐訴診詆謅詞詘詔詖譯詒誆誄試詿詩詰詼誠誅詵話誕詬詮詭詢詣諍該詳詫諢詡譸誡誣語誚誤誥誘誨誑說誦誒請諸諏諾讀諑誹課諉諛誰諗調諂諒諄誶談誼謀諶諜謊諫諧謔謁謂諤諭諼讒諮諳諺諦謎諞諝謨讜謖謝謠謗諡謙謐謹謾謫譾謬譚譖譙讕譜譎讞譴譫讖穀豶貝貞負貟貢財責賢敗賬貨質販貪貧貶購貯貫貳賤賁貰貼貴貺貸貿費賀貽賊贄賈賄貲賃賂贓資賅贐賕賑賚賒賦賭齎贖賞賜贔賙賡賠賧賴賵贅賻賺賽賾贗讚贇贈贍贏贛赬趙趕趨趲躉躍蹌蹠躒踐躂蹺蹕躚躋踴躊蹤躓躑躡蹣躕躥躪躦軀車軋軌軒軑軔轉軛輪軟轟軲軻轤軸軹軼軤軫轢軺輕軾載輊轎輈輇輅較輒輔輛輦輩輝輥輞輬輟輜輳輻輯轀輸轡轅轄輾轆轍轔辭辯辮邊遼達遷過邁運還這進遠違連遲邇逕跡適選遜遞邐邏遺遙鄧鄺鄔郵鄒鄴鄰鬱郤郟鄶鄭鄆酈鄖鄲醞醱醬釅釃釀釋裏钜鑒鑾鏨釓釔針釘釗釙釕釷釺釧釤鈒釩釣鍆釹鍚釵鈃鈣鈈鈦鈍鈔鍾鈉鋇鋼鈑鈐鑰欽鈞鎢鉤鈧鈁鈥鈄鈕鈀鈺錢鉦鉗鈷缽鈳鉕鈽鈸鉞鑽鉬鉭鉀鈿鈾鐵鉑鈴鑠鉛鉚鈰鉉鉈鉍鈹鐸鉶銬銠鉺銪鋏鋣鐃銍鐺銅鋁銱銦鎧鍘銖銑鋌銩銛鏵銓鉿銚鉻銘錚銫鉸銥鏟銃鐋銨銀銣鑄鐒鋪鋙錸鋱鏈鏗銷鎖鋰鋥鋤鍋鋯鋨鏽銼鋝鋒鋅鋶鐦鐧銳銻鋃鋟鋦錒錆鍺錯錨錡錁錕錩錫錮鑼錘錐錦鍁錈錇錟錠鍵鋸錳錙鍥鍈鍇鏘鍶鍔鍤鍬鍾鍛鎪鍠鍰鎄鍍鎂鏤鎡鏌鎮鎛鎘鑷鐫鎳鎿鎦鎬鎊鎰鎔鏢鏜鏍鏰鏞鏡鏑鏃鏇鏐鐔钁鐐鏷鑥鐓鑭鐠鑹鏹鐙鑊鐳鐶鐲鐮鐿鑔鑣鑞鑲長門閂閃閆閈閉問闖閏闈閑閎間閔閌悶閘鬧閨聞闥閩閭闓閥閣閡閫鬮閱閬闍閾閹閶鬩閿閽閻閼闡闌闃闠闊闋闔闐闒闕闞闤隊陽陰陣階際陸隴陳陘陝隉隕險隨隱隸雋難雛讎靂霧霽黴靄靚靜靨韃鞽韉韝韋韌韍韓韙韞韜韻頁頂頃頇項順須頊頑顧頓頎頒頌頏預顱領頗頸頡頰頲頜潁熲頦頤頻頮頹頷頴穎顆題顒顎顓顏額顳顢顛顙顥纇顫顬顰顴風颺颭颮颯颶颸颼颻飀飄飆飆飛饗饜飣饑飥餳飩餼飪飫飭飯飲餞飾飽飼飿飴餌饒餉餄餎餃餏餅餑餖餓餘餒餕餜餛餡館餷饋餶餿饞饁饃餺餾饈饉饅饊饌饢馬馭馱馴馳驅馹駁驢駔駛駟駙駒騶駐駝駑駕驛駘驍罵駰驕驊駱駭駢驫驪騁驗騂駸駿騏騎騍騅騌驌驂騙騭騤騷騖驁騮騫騸驃騾驄驏驟驥驦驤髏髖髕鬢魘魎魚魛魢魷魨魯魴魺鮁鮃鯰鱸鮋鮓鮒鮊鮑鱟鮍鮐鮭鮚鮳鮪鮞鮦鰂鮜鱠鱭鮫鮮鮺鯗鱘鯁鱺鰱鰹鯉鰣鰷鯀鯊鯇鮶鯽鯒鯖鯪鯕鯫鯡鯤鯧鯝鯢鯰鯛鯨鯵鯴鯔鱝鰈鰏鱨鯷鰮鰃鰓鱷鰍鰒鰉鰁鱂鯿鰠鼇鰭鰨鰥鰩鰟鰜鰳鰾鱈鱉鰻鰵鱅鰼鱖鱔鱗鱒鱯鱤鱧鱣鳥鳩雞鳶鳴鳲鷗鴉鶬鴇鴆鴣鶇鸕鴨鴞鴦鴒鴟鴝鴛鴬鴕鷥鷙鴯鴰鵂鴴鵃鴿鸞鴻鵐鵓鸝鵑鵠鵝鵒鷳鵜鵡鵲鶓鵪鶤鵯鵬鵮鶉鶊鵷鷫鶘鶡鶚鶻鶿鶥鶩鷊鷂鶲鶹鶺鷁鶼鶴鷖鸚鷓鷚鷯鷦鷲鷸鷺鸇鷹鸌鸏鸛鸘鹺麥麩黃黌黶黷黲黽黿鼂鼉鞀鼴齇齊齏齒齔齕齗齟齡齙齠齜齦齬齪齲齷龍龔龕龜誌製谘隻裡係範鬆冇嚐嘗鬨麵準鐘彆閒乾儘臟拚'\n}\nfunction Traditionalized(cc) {\n\tvar str = '';\n\tvar ss = JTPYStr();\n\tvar tt = FTPYStr();\n\tfor (var i = 0; i < cc.length; i++) {\n\t\tif (cc.charCodeAt(i) > 10000 && ss.indexOf(cc.charAt(i)) != -1) str += tt.charAt(ss.indexOf(cc.charAt(i)));\n\t\telse str += cc.charAt(i)\n\t}\n\treturn str\n}\nfunction Simplized(cc) {\n\tvar str = '';\n\tvar ss = JTPYStr();\n\tvar tt = FTPYStr();\n\tfor (var i = 0; i < cc.length; i++) {\n\t\tif (cc.charCodeAt(i) > 10000 && tt.indexOf(cc.charAt(i)) != -1) str += ss.charAt(tt.indexOf(cc.charAt(i)));\n\t\telse str += cc.charAt(i)\n\t}\n\treturn str\n}\nfunction setCookie(name, value, days) {\n\tif (days) {\n\t\tvar date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\tvar expires = \"; expires=\" + date.toGMTString()\n\t} else var expires = \"\";\n\tdocument.cookie = name + \"=\" + value + expires + \"; path=/\"\n}\nfunction getCookie(name) {\n\tvar nameEQ = name + \"=\";\n\tvar ca = document.cookie.split(';');\n\tfor (var i = 0; i < ca.length; i++) {\n\t\tvar c = ca[i];\n\t\twhile (c.charAt(0) == ' ') c = c.substring(1, c.length);\n\t\tif (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length)\n\t}\n\treturn null\n}\nfunction translateInitilization() {\n\ttranslateButtonObject = document.getElementById(translateButtonId);\n\tif (translateButtonObject) {\n\t\twith(translateButtonObject) {\n\t\t\tif (typeof(document.all) != \"object\") {\n\t\t\t\thref = \"javascript:translatePage();\"\n\t\t\t} else {\n\t\t\t\thref = \"#\";\n\t\t\t\tonclick = new Function(\"translatePage(); return false;\")\n\t\t\t}\n\t\t}\n\t\tif (currentEncoding != targetEncoding) {\n\t\t\tsetTimeout(\"translateBody()\", translateDelay);\n\t\t\tif (targetEncoding == 1) translateButtonObject.innerHTML = msgToSimplifiedChinese;\n\t\t\telse translateButtonObject.innerHTML = msgToTraditionalChinese\n\t\t}\n\t}\n}\n"},{"url":"/js/dist/APlayer.min.js","content":"!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(\"APlayer\",[],t):\"object\"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,\"__esModule\",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/\",n(n.s=41)}([function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map(function(e){return e<10?\"0\"+e:\"\"+e}).join(\":\")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?\"touchstart\":\"mousedown\",dragMove:i?\"touchmove\":\"mousemove\",dragEnd:i?\"touchend\":\"mouseup\"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map(function(e,t){return t}))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){\"use strict\";e=e||{};var t=\"\",n=i.$each,a=e.audio,r=(e.$value,e.$index,i.$escape),o=e.theme,s=e.index;return n(a,function(e,n){t+='\\n<li>\\n <span class=\"aplayer-list-cur\" style=\"background-color: ',t+=r(e.theme||o),t+=';\"></span>\\n <span class=\"aplayer-list-index\">',t+=r(n+s),t+='</span>\\n <span class=\"aplayer-list-title\">',t+=r(e.name),t+='</span>\\n <span class=\"aplayer-list-author\">',t+=r(e.artist),t+=\"</span>\\n</li>\\n\"}),t}},function(e,t,n){\"use strict\";e.exports=n(15)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){\"use strict\";var i,a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};i=function(){return this}();try{i=i||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"===(\"undefined\"==typeof window?\"undefined\":a(window))&&(i=window)}e.exports=i},function(e,t,n){\"use strict\";var i,a,r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};void 0===(a=\"function\"==typeof(i=function(){if(\"object\"===(\"undefined\"==typeof window?\"undefined\":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if(\"number\"==typeof t)var o=parseInt(t);else var o=function(e,t){return\"HTML\"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?\"function\"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,function(e){location.replace(\"#\"+e.id)})}};return document.addEventListener(\"DOMContentLoaded\",function(){for(var e,t=document.querySelectorAll('a[href^=\"#\"]:not([href=\"#\"])'),i=t.length;e=t[--i];)e.addEventListener(\"click\",n,!1)}),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(1)),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return i(e,[{key:\"bindEvents\",value:function(){var e=this;this.player.template.list.addEventListener(\"click\",function(t){var n=void 0;n=\"LI\"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var i=parseInt(n.getElementsByClassName(\"aplayer-list-index\")[0].innerHTML)-1;i!==e.index?(e.switch(i),e.player.play()):e.player.toggle()})}},{key:\"show\",value:function(){this.player.events.trigger(\"listshow\"),this.player.template.list.classList.remove(\"aplayer-list-hide\"),this.player.template.listOl.scrollTop=33*this.index}},{key:\"hide\",value:function(){this.player.events.trigger(\"listhide\"),this.player.template.list.classList.add(\"aplayer-list-hide\")}},{key:\"toggle\",value:function(){this.player.template.list.classList.contains(\"aplayer-list-hide\")?this.show():this.hide()}},{key:\"add\",value:function(e){this.player.events.trigger(\"listadd\",{audios:e}),\"[object Array]\"!==Object.prototype.toString.call(e)&&(e=[e]),e.map(function(e){return e.name=e.name||e.title||\"Audio name\",e.artist=e.artist||e.author||\"Audio artist\",e.cover=e.cover||e.pic,e.type=e.type||\"normal\",e});var t=!(this.audios.length>1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add(\"aplayer-withlist\"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(\".aplayer-list-cur\"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&(\"random\"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:\"remove\",value:function(e){if(this.player.events.trigger(\"listremove\",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(\".aplayer-list li\");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;n<t.length;n++)t[n].getElementsByClassName(\"aplayer-list-index\")[0].textContent=n;1===this.audios.length&&this.player.container.classList.remove(\"aplayer-withlist\"),this.player.template.listCurs=this.player.container.querySelectorAll(\".aplayer-list-cur\")}else this.clear()}},{key:\"switch\",value:function(e){if(this.player.events.trigger(\"listswitch\",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?\"url('\"+t.cover+\"')\":\"\",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?\" - \"+t.artist:\"\";var n=this.player.container.getElementsByClassName(\"aplayer-list-light\")[0];n&&n.classList.remove(\"aplayer-list-light\"),this.player.container.querySelectorAll(\".aplayer-list li\")[this.index].classList.add(\"aplayer-list-light\"),(0,o.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=r.default.secondToTime(this.player.duration))}}},{key:\"clear\",value:function(){this.player.events.trigger(\"listclear\"),this.index=0,this.player.container.classList.remove(\"aplayer-withlist\"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src=\"\",this.player.template.listOl.innerHTML=\"\",this.player.template.pic.style.backgroundImage=\"\",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=\"No audio\",this.player.template.author.innerHTML=\"\",this.player.bar.set(\"loaded\",0,\"width\"),this.player.template.dtime.innerHTML=r.default.secondToTime(0)}}]),e}();t.default=l},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.events={},this.audioEvents=[\"abort\",\"canplay\",\"canplaythrough\",\"durationchange\",\"emptied\",\"ended\",\"error\",\"loadeddata\",\"loadedmetadata\",\"loadstart\",\"mozaudioavailable\",\"pause\",\"play\",\"playing\",\"progress\",\"ratechange\",\"seeked\",\"seeking\",\"stalled\",\"suspend\",\"timeupdate\",\"volumechange\",\"waiting\"],this.playerEvents=[\"destroy\",\"listshow\",\"listhide\",\"listadd\",\"listremove\",\"listswitch\",\"listclear\",\"noticeshow\",\"noticehide\",\"lrcshow\",\"lrchide\"]}return i(e,[{key:\"on\",value:function(e,t){this.type(e)&&\"function\"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:\"trigger\",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:\"type\",value:function(e){return-1!==this.playerEvents.indexOf(e)?\"player\":-1!==this.audioEvents.indexOf(e)?\"audio\":(console.error(\"Unknown event name: \"+e),null)}}]),e}();t.default=a},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=[\"loading\"],this.init()}return i(e,[{key:\"init\",value:function(){var e=this;this.types.forEach(function(t){e[\"init\"+t+\"Checker\"]()})}},{key:\"initloadingChecker\",value:function(){var e=this,t=0,n=0,i=!1;this.loadingChecker=setInterval(function(){e.enableloadingChecker&&(n=e.player.audio.currentTime,i||n!==t||e.player.audio.paused||(e.player.container.classList.add(\"aplayer-loading\"),i=!0),i&&n>t&&!e.player.audio.paused&&(e.player.container.classList.remove(\"aplayer-loading\"),i=!1),t=n)},100)}},{key:\"enable\",value:function(e){this[\"enable\"+e+\"Checker\"]=!0,\"fps\"===e&&this.initfpsChecker()}},{key:\"disable\",value:function(e){this[\"enable\"+e+\"Checker\"]=!1}},{key:\"destroy\",value:function(){var e=this;this.types.forEach(function(t){e[\"enable\"+t+\"Checker\"]=!1,e[t+\"Checker\"]&&clearInterval(e[t+\"Checker\"])})}}]),e}();t.default=a},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(0)),r=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),a.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return i(e,[{key:\"initPlayButton\",value:function(){var e=this;this.player.template.pic.addEventListener(\"click\",function(){e.player.toggle()})}},{key:\"initPlayBar\",value:function(){var e=this,t=function(t){var n=((t.clientX||t.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set(\"played\",n,\"width\"),e.player.lrc&&e.player.lrc.update(n*e.player.duration),e.player.template.ptime.innerHTML=a.default.secondToTime(n*e.player.duration)},n=function n(i){document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=((i.clientX||i.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set(\"played\",r,\"width\"),e.player.seek(e.player.bar.get(\"played\",\"width\")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart,function(){e.player.disableTimeupdate=!0,document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)})}},{key:\"initVolumeButton\",value:function(){var e=this;this.player.template.volumeButton.addEventListener(\"click\",function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set(\"volume\",e.player.volume(),\"height\")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set(\"volume\",0,\"height\"))});var t=function(t){var n=1-((t.clientY||t.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)},n=function n(i){e.player.template.volumeBarWrap.classList.remove(\"aplayer-volume-bar-wrap-active\"),document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=1-((i.clientY||i.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;r=Math.max(r,0),r=Math.min(r,1),e.player.volume(r)};this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart,function(){e.player.template.volumeBarWrap.classList.add(\"aplayer-volume-bar-wrap-active\"),document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)})}},{key:\"initOrderButton\",value:function(){var e=this;this.player.template.order.addEventListener(\"click\",function(){\"list\"===e.player.options.order?(e.player.options.order=\"random\",e.player.template.order.innerHTML=r.default.orderRandom):\"random\"===e.player.options.order&&(e.player.options.order=\"list\",e.player.template.order.innerHTML=r.default.orderList)})}},{key:\"initLoopButton\",value:function(){var e=this;this.player.template.loop.addEventListener(\"click\",function(){e.player.list.audios.length>1?\"one\"===e.player.options.loop?(e.player.options.loop=\"none\",e.player.template.loop.innerHTML=r.default.loopNone):\"none\"===e.player.options.loop?(e.player.options.loop=\"all\",e.player.template.loop.innerHTML=r.default.loopAll):\"all\"===e.player.options.loop&&(e.player.options.loop=\"one\",e.player.template.loop.innerHTML=r.default.loopOne):\"one\"===e.player.options.loop||\"all\"===e.player.options.loop?(e.player.options.loop=\"none\",e.player.template.loop.innerHTML=r.default.loopNone):\"none\"===e.player.options.loop&&(e.player.options.loop=\"all\",e.player.template.loop.innerHTML=r.default.loopAll)})}},{key:\"initMenuButton\",value:function(){var e=this;this.player.template.menu.addEventListener(\"click\",function(){e.player.list.toggle()})}},{key:\"initMiniSwitcher\",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener(\"click\",function(){e.player.setMode(\"mini\"===e.player.mode?\"normal\":\"mini\")})}},{key:\"initSkipButton\",value:function(){var e=this;this.player.template.skipBackButton.addEventListener(\"click\",function(){e.player.skipBack()}),this.player.template.skipForwardButton.addEventListener(\"click\",function(){e.player.skipForward()}),this.player.template.skipPlayButton.addEventListener(\"click\",function(){e.player.toggle()})}},{key:\"initLrcButton\",value:function(){var e=this;this.player.template.lrcButton.addEventListener(\"click\",function(){e.player.template.lrcButton.classList.contains(\"aplayer-icon-lrc-inactivity\")?(e.player.template.lrcButton.classList.remove(\"aplayer-icon-lrc-inactivity\"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add(\"aplayer-icon-lrc-inactivity\"),e.player.lrc&&e.player.lrc.hide())})}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){\"use strict\";e=e||{};var t=\"\",n=i.$each,a=e.lyrics,r=(e.$value,e.$index,i.$escape);return n(a,function(e,n){t+=\"\\n <p\",0===n&&(t+=' class=\"aplayer-lrc-current\"'),t+=\">\",t+=r(e[1]),t+=\"</p>\\n\"}),t}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(10),o=(i=r)&&i.__esModule?i:{default:i};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return a(e,[{key:\"show\",value:function(){this.player.events.trigger(\"lrcshow\"),this.player.template.lrcWrap.classList.remove(\"aplayer-lrc-hide\")}},{key:\"hide\",value:function(){this.player.events.trigger(\"lrchide\"),this.player.template.lrcWrap.classList.add(\"aplayer-lrc-hide\")}},{key:\"toggle\",value:function(){this.player.template.lrcWrap.classList.contains(\"aplayer-lrc-hide\")?this.show():this.hide()}},{key:\"update\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform=\"translateY(\"+16*-this.index+\"px)\",this.container.style.webkitTransform=\"translateY(\"+16*-this.index+\"px)\",this.container.getElementsByClassName(\"aplayer-lrc-current\")[0].classList.remove(\"aplayer-lrc-current\"),this.container.getElementsByTagName(\"p\")[t].classList.add(\"aplayer-lrc-current\"))}},{key:\"switch\",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[[\"00:00\",\"Loading\"]];var n=new XMLHttpRequest;n.onreadystatechange=function(){e===t.player.list.index&&4===n.readyState&&(n.status>=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice(\"LRC file request fails: status \"+n.status),t.parsed[e]=[[\"00:00\",\"Not available\"]]),t.container.innerHTML=(0,o.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open(\"get\",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[[\"00:00\",\"Not available\"]];this.container.innerHTML=(0,o.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:\"parse\",value:function(e){if(e){for(var t=(e=e.replace(/([^\\]^\\n])\\[/g,function(e,t){return t+\"\\n[\"})).split(\"\\n\"),n=[],i=t.length,a=0;a<i;a++){var r=t[a].match(/\\[(\\d{2}):(\\d{2})(\\.(\\d{2,3}))?]/g),o=t[a].replace(/.*\\[(\\d{2}):(\\d{2})(\\.(\\d{2,3}))?]/g,\"\").replace(/<(\\d{2}):(\\d{2})(\\.(\\d{2,3}))?>/g,\"\").replace(/^\\s+|\\s+$/g,\"\");if(r)for(var s=r.length,l=0;l<s;l++){var u=/\\[(\\d{2}):(\\d{2})(\\.(\\d{2,3}))?]/.exec(r[l]),c=60*u[1]+parseInt(u[2])+(u[4]?parseInt(u[4])/(2===(u[4]+\"\").length?100:1e3):0);n.push([c,o])}}return(n=n.filter(function(e){return e[1]})).sort(function(e,t){return e[0]-t[0]}),n}return[]}},{key:\"remove\",value:function(e){this.parsed.splice(e,1)}},{key:\"clear\",value:function(){this.parsed=[],this.container.innerHTML=\"\"}}]),e}();t.default=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),o=(i=r)&&i.__esModule?i:{default:i};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(o.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return a(e,[{key:\"get\",value:function(e){return this.data[e]}},{key:\"set\",value:function(e,t){this.data[e]=t,o.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return i(e,[{key:\"set\",value:function(e,t,n){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[n]=100*t+\"%\"}},{key:\"get\",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=a},function(e,t,n){\"use strict\";(function(t){e.exports=!1;try{e.exports=\"[object process]\"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,n(4))},function(e,t,n){\"use strict\";(function(t){var i=n(14),a=Object.create(i?t:window),r=/[\"&'<>]/;a.$escape=function(e){return function(e){var t=\"\"+e,n=r.exec(t);if(!n)return e;var i=\"\",a=void 0,o=void 0,s=void 0;for(a=n.index,o=0;a<t.length;a++){switch(t.charCodeAt(a)){case 34:s=\"&#34;\";break;case 38:s=\"&#38;\";break;case 39:s=\"&#39;\";break;case 60:s=\"&#60;\";break;case 62:s=\"&#62;\";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=s}return o!==a?i+t.substring(o,a):i}(function e(t){\"string\"!=typeof t&&(t=void 0===t||null===t?\"\":\"function\"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},a.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=a}).call(this,n(4))},function(e,t,n){var i=n(2);e.exports=function(e){\"use strict\";var t=\"\",a=(e=e||{}).options,r=e.cover,o=i.$escape,s=e.icons,l=(arguments[1],function(e){return t+=e}),u=e.getObject;e.theme,e.audio,e.index;return a.fixed?(t+='\\n<div class=\"aplayer-list',a.listFolded&&(t+=\" aplayer-list-hide\"),t+='\"',a.listMaxHeight&&(t+=' style=\"max-height: ',t+=o(a.listMaxHeight),t+='\"'),t+=\">\\n <ol\",a.listMaxHeight&&(t+=' style=\"max-height: ',t+=o(a.listMaxHeight),t+='\"'),t+=\">\\n \",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+='\\n </ol>\\n</div>\\n<div class=\"aplayer-body\">\\n <div class=\"aplayer-pic\" style=\"',r&&(t+=\"background-image: url(&quot;\",t+=o(r),t+=\"&quot;);\"),t+=\"background-color: \",t+=o(a.theme),t+=';\">\\n <div class=\"aplayer-button aplayer-play\">',t+=s.play,t+='</div>\\n </div>\\n <div class=\"aplayer-info\" style=\"display: none;\">\\n <div class=\"aplayer-music\">\\n <span class=\"aplayer-title\">No audio</span>\\n <span class=\"aplayer-author\"></span>\\n </div>\\n <div class=\"aplayer-controller\">\\n <div class=\"aplayer-bar-wrap\">\\n <div class=\"aplayer-bar\">\\n <div class=\"aplayer-loaded\" style=\"width: 0\"></div>\\n <div class=\"aplayer-played\" style=\"width: 0; background: ',t+=o(a.theme),t+=';\">\\n <span class=\"aplayer-thumb\" style=\"background: ',t+=o(a.theme),t+=';\">\\n <span class=\"aplayer-loading-icon\">',t+=s.loading,t+='</span>\\n </span>\\n </div>\\n </div>\\n </div>\\n <div class=\"aplayer-time\">\\n <span class=\"aplayer-time-inner\">\\n <span class=\"aplayer-ptime\">00:00</span> / <span class=\"aplayer-dtime\">00:00</span>\\n </span>\\n <span class=\"aplayer-icon aplayer-icon-back\">\\n ',t+=s.skip,t+='\\n </span>\\n <span class=\"aplayer-icon aplayer-icon-play\">\\n ',t+=s.play,t+='\\n </span>\\n <span class=\"aplayer-icon aplayer-icon-forward\">\\n ',t+=s.skip,t+='\\n </span>\\n <div class=\"aplayer-volume-wrap\">\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-volume-down\">\\n ',t+=s.volumeDown,t+='\\n </button>\\n <div class=\"aplayer-volume-bar-wrap\">\\n <div class=\"aplayer-volume-bar\">\\n <div class=\"aplayer-volume\" style=\"height: 80%; background: ',t+=o(a.theme),t+=';\"></div>\\n </div>\\n </div>\\n </div>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-order\">\\n ',\"list\"===a.order?t+=s.orderList:\"random\"===a.order&&(t+=s.orderRandom),t+='\\n </button>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-loop\">\\n ',\"one\"===a.loop?t+=s.loopOne:\"all\"===a.loop?t+=s.loopAll:\"none\"===a.loop&&(t+=s.loopNone),t+='\\n </button>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-menu\">\\n ',t+=s.menu,t+='\\n </button>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-lrc\">\\n ',t+=s.lrc,t+='\\n </button>\\n </div>\\n </div>\\n </div>\\n <div class=\"aplayer-notice\"></div>\\n <div class=\"aplayer-miniswitcher\"><button class=\"aplayer-icon\">',t+=s.right,t+='</button></div>\\n</div>\\n<div class=\"aplayer-lrc\">\\n <div class=\"aplayer-lrc-contents\" style=\"transform: translateY(0); -webkit-transform: translateY(0);\"></div>\\n</div>\\n'):(t+='\\n<div class=\"aplayer-body\">\\n <div class=\"aplayer-pic\" style=\"',r&&(t+=\"background-image: url(&quot;\",t+=o(r),t+=\"&quot;);\"),t+=\"background-color: \",t+=o(a.theme),t+=';\">\\n <div class=\"aplayer-button aplayer-play\">',t+=s.play,t+='</div>\\n </div>\\n <div class=\"aplayer-info\">\\n <div class=\"aplayer-music\">\\n <span class=\"aplayer-title\">No audio</span>\\n <span class=\"aplayer-author\"></span>\\n </div>\\n <div class=\"aplayer-lrc\">\\n <div class=\"aplayer-lrc-contents\" style=\"transform: translateY(0); -webkit-transform: translateY(0);\"></div>\\n </div>\\n <div class=\"aplayer-controller\">\\n <div class=\"aplayer-bar-wrap\">\\n <div class=\"aplayer-bar\">\\n <div class=\"aplayer-loaded\" style=\"width: 0\"></div>\\n <div class=\"aplayer-played\" style=\"width: 0; background: ',t+=o(a.theme),t+=';\">\\n <span class=\"aplayer-thumb\" style=\"background: ',t+=o(a.theme),t+=';\">\\n <span class=\"aplayer-loading-icon\">',t+=s.loading,t+='</span>\\n </span>\\n </div>\\n </div>\\n </div>\\n <div class=\"aplayer-time\">\\n <span class=\"aplayer-time-inner\">\\n <span class=\"aplayer-ptime\">00:00</span> / <span class=\"aplayer-dtime\">00:00</span>\\n </span>\\n <span class=\"aplayer-icon aplayer-icon-back\">\\n ',t+=s.skip,t+='\\n </span>\\n <span class=\"aplayer-icon aplayer-icon-play\">\\n ',t+=s.play,t+='\\n </span>\\n <span class=\"aplayer-icon aplayer-icon-forward\">\\n ',t+=s.skip,t+='\\n </span>\\n <div class=\"aplayer-volume-wrap\">\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-volume-down\">\\n ',t+=s.volumeDown,t+='\\n </button>\\n <div class=\"aplayer-volume-bar-wrap\">\\n <div class=\"aplayer-volume-bar\">\\n <div class=\"aplayer-volume\" style=\"height: 80%; background: ',t+=o(a.theme),t+=';\"></div>\\n </div>\\n </div>\\n </div>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-order\">\\n ',\"list\"===a.order?t+=s.orderList:\"random\"===a.order&&(t+=s.orderRandom),t+='\\n </button>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-loop\">\\n ',\"one\"===a.loop?t+=s.loopOne:\"all\"===a.loop?t+=s.loopAll:\"none\"===a.loop&&(t+=s.loopNone),t+='\\n </button>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-menu\">\\n ',t+=s.menu,t+='\\n </button>\\n <button type=\"button\" class=\"aplayer-icon aplayer-icon-lrc\">\\n ',t+=s.lrc,t+='\\n </button>\\n </div>\\n </div>\\n </div>\\n <div class=\"aplayer-notice\"></div>\\n <div class=\"aplayer-miniswitcher\"><button class=\"aplayer-icon\">',t+=s.right,t+='</button></div>\\n</div>\\n<div class=\"aplayer-list',a.listFolded&&(t+=\" aplayer-list-hide\"),t+='\"',a.listMaxHeight&&(t+=' style=\"max-height: ',t+=o(a.listMaxHeight),t+='\"'),t+=\">\\n <ol\",a.listMaxHeight&&(t+=' style=\"max-height: ',t+=o(a.listMaxHeight),t+='\"'),t+=\">\\n \",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+=\"\\n </ol>\\n</div>\\n\"),t}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(3)),r=o(n(16));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return i(e,[{key:\"init\",value:function(){var e=\"\";this.options.audio.length&&(e=\"random\"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:a.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(\".aplayer-lrc-contents\"),this.lrcWrap=this.container.querySelector(\".aplayer-lrc\"),this.ptime=this.container.querySelector(\".aplayer-ptime\"),this.info=this.container.querySelector(\".aplayer-info\"),this.time=this.container.querySelector(\".aplayer-time\"),this.barWrap=this.container.querySelector(\".aplayer-bar-wrap\"),this.button=this.container.querySelector(\".aplayer-button\"),this.body=this.container.querySelector(\".aplayer-body\"),this.list=this.container.querySelector(\".aplayer-list\"),this.listOl=this.container.querySelector(\".aplayer-list ol\"),this.listCurs=this.container.querySelectorAll(\".aplayer-list-cur\"),this.played=this.container.querySelector(\".aplayer-played\"),this.loaded=this.container.querySelector(\".aplayer-loaded\"),this.thumb=this.container.querySelector(\".aplayer-thumb\"),this.volume=this.container.querySelector(\".aplayer-volume\"),this.volumeBar=this.container.querySelector(\".aplayer-volume-bar\"),this.volumeButton=this.container.querySelector(\".aplayer-time button\"),this.volumeBarWrap=this.container.querySelector(\".aplayer-volume-bar-wrap\"),this.loop=this.container.querySelector(\".aplayer-icon-loop\"),this.order=this.container.querySelector(\".aplayer-icon-order\"),this.menu=this.container.querySelector(\".aplayer-icon-menu\"),this.pic=this.container.querySelector(\".aplayer-pic\"),this.title=this.container.querySelector(\".aplayer-title\"),this.author=this.container.querySelector(\".aplayer-author\"),this.dtime=this.container.querySelector(\".aplayer-dtime\"),this.notice=this.container.querySelector(\".aplayer-notice\"),this.miniSwitcher=this.container.querySelector(\".aplayer-miniswitcher\"),this.skipBackButton=this.container.querySelector(\".aplayer-icon-back\"),this.skipForwardButton=this.container.querySelector(\".aplayer-icon-forward\"),this.skipPlayButton=this.container.querySelector(\".aplayer-icon-play\"),this.lrcButton=this.container.querySelector(\".aplayer-icon-lrc\")}}]),e}();t.default=s},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName(\"aplayer\")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:\"auto\",theme:\"#b7daff\",loop:\"all\",order:\"list\",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||\"250px\",audio:e.music||[],storageName:\"aplayer-setting\"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return\"[object Array]\"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map(function(e){return e.name=e.name||e.title||\"Audio name\",e.artist=e.artist||e.author||\"Audio artist\",e.cover=e.cover||e.pic,e.type=e.type||\"normal\",e}),e.audio.length<=1&&\"one\"===e.loop&&(e.loop=\"all\"),e}},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 32 32\"><path d=\"M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 32 32\"><path d=\"M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 32 32\"><path d=\"M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 32 32\"><path d=\"M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 29 32\"><path d=\"M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 33 32\"><path d=\"M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 29 32\"><path d=\"M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 22 32\"><path d=\"M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 32 32\"><path d=\"M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 32 32\"><path d=\"M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 28 32\"><path d=\"M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 28 32\"><path d=\"M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 28 32\"><path d=\"M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 17 32\"><path d=\"M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z\"></path></svg>'},function(e,t){e.exports='<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 16 31\"><path d=\"M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z\"></path></svg>'},function(e,t,n){\"use strict\";var i,a,r=e.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{a=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&y())}function y(){if(!p){var e=l(h);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||p||l(y)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title=\"browser\",r.browser=!0,r.env={},r.argv=[],r.version=\"\",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error(\"process.binding is not supported\")},r.cwd=function(){return\"/\"},r.chdir=function(e){throw new Error(\"process.chdir is not supported\")},r.umask=function(){return 0}},function(e,t,n){\"use strict\";(function(e,t){!function(e,n){if(!e.setImmediate){var i,a,r,o,s,l=1,u={},c=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,\"[object process]\"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){y(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(\"\",\"*\"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){y(e.data)},i=function(e){r.port2.postMessage(e)}):p&&\"onreadystatechange\"in p.createElement(\"script\")?(a=p.documentElement,i=function(e){var t=p.createElement(\"script\");t.onreadystatechange=function(){y(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(y,0,e)}:(o=\"setImmediate$\"+Math.random()+\"$\",s=function(t){t.source===e&&\"string\"==typeof t.data&&0===t.data.indexOf(o)&&y(+t.data.slice(o.length))},e.addEventListener?e.addEventListener(\"message\",s,!1):e.attachEvent(\"onmessage\",s),i=function(t){e.postMessage(o+t,\"*\")}),d.setImmediate=function(e){\"function\"!=typeof e&&(e=new Function(\"\"+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return u[l]=a,i(l),l++},d.clearImmediate=h}function h(e){delete u[e]}function y(e){if(c)setTimeout(y,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(n,i)}}(t)}finally{h(e),c=!1}}}}}(\"undefined\"==typeof self?void 0===e?void 0:e:self)}).call(this,n(4),n(34))},function(e,t,n){\"use strict\";var i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){\"use strict\";(function(t){var n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i=setTimeout;function a(){}function r(e){if(!(this instanceof r))throw new TypeError(\"Promises must be constructed via new\");if(\"function\"!=typeof e)throw new TypeError(\"not a function\");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError(\"A promise cannot be resolved with itself.\");if(t&&(\"object\"===(void 0===t?\"undefined\":n(t))||\"function\"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if(\"function\"==typeof i)return void c((a=i,o=t,function(){a.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,o}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,l(t,e))})}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(a);return o(this,new function(e,t,n){this.onFulfilled=\"function\"==typeof e?e:null,this.onRejected=\"function\"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},r.all=function(e){return new r(function(t,i){if(!e||void 0===e.length)throw new TypeError(\"Promise.all accepts an array\");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function o(e,s){try{if(s&&(\"object\"===(void 0===s?\"undefined\":n(s))||\"function\"==typeof s)){var l=s.then;if(\"function\"==typeof l)return void l.call(s,function(t){o(e,t)},i)}a[e]=s,0==--r&&t(a)}catch(e){i(e)}}for(var s=0;s<a.length;s++)o(s,a[s])})},r.resolve=function(e){return e&&\"object\"===(void 0===e?\"undefined\":n(e))&&e.constructor===r?e:new r(function(t){t(e)})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)})},r._immediateFn=\"function\"==typeof t&&function(e){t(e)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){\"undefined\"!=typeof console&&console&&console.warn(\"Possible Unhandled Promise Rejection:\",e)},e.exports=r}).call(this,n(36).setImmediate)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=v(n(37)),r=v(n(0)),o=v(n(3)),s=v(n(18)),l=v(n(17)),u=v(n(13)),c=v(n(12)),p=v(n(11)),d=v(n(9)),h=v(n(8)),y=v(n(7)),f=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}var m=[],g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.options=(0,s.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=a.default.resolve(),this.mode=\"normal\",this.randomOrder=r.default.randomOrder(this.options.audio.length),this.container.classList.add(\"aplayer\"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add(\"aplayer-withlrc\"),this.options.audio.length>1&&this.container.classList.add(\"aplayer-withlist\"),r.default.isMobile&&this.container.classList.add(\"aplayer-mobile\"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add(\"aplayer-arrow\"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName(\"aplayer-lrc-content\"),i=0;i<n.length;i++)this.options.audio[i]&&(this.options.audio[i].lrc=n[i].innerHTML);this.template=new l.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add(\"aplayer-fixed\"),this.template.body.style.width=this.template.body.offsetWidth-18+\"px\"),this.options.mini&&(this.setMode(\"mini\"),this.template.info.style.display=\"block\"),this.template.info.offsetWidth<200&&this.template.time.classList.add(\"aplayer-time-narrow\"),this.options.lrcType&&(this.lrc=new p.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new y.default,this.storage=new c.default(this),this.bar=new u.default(this.template),this.controller=new d.default(this),this.timer=new h.default(this),this.list=new f.default(this),this.initAudio(),this.bindEvents(),\"random\"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),m.push(this)}return i(e,[{key:\"initAudio\",value:function(){var e=this;this.audio=document.createElement(\"audio\"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],function(n){e.events.trigger(e.events.audioEvents[t],n)})},n=0;n<this.events.audioEvents.length;n++)t(n);this.volume(this.storage.get(\"volume\"),!0)}},{key:\"bindEvents\",value:function(){var e=this;this.on(\"play\",function(){e.paused&&e.setUIPlaying()}),this.on(\"pause\",function(){e.paused||e.setUIPaused()}),this.on(\"timeupdate\",function(){if(!e.disableTimeupdate){e.bar.set(\"played\",e.audio.currentTime/e.duration,\"width\"),e.lrc&&e.lrc.update();var t=r.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}}),this.on(\"durationchange\",function(){1!==e.duration&&(e.template.dtime.innerHTML=r.default.secondToTime(e.duration))}),this.on(\"progress\",function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set(\"loaded\",t,\"width\")});var t=void 0;this.on(\"error\",function(){e.list.audios.length>1?(e.notice(\"An audio error has occurred, player will skip forward in 2 seconds.\"),t=setTimeout(function(){e.skipForward(),e.paused||e.play()},2e3)):1===e.list.audios.length&&e.notice(\"An audio error has occurred.\")}),this.events.on(\"listswitch\",function(){t&&clearTimeout(t)}),this.on(\"ended\",function(){\"none\"===e.options.loop?\"list\"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):\"random\"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):\"one\"===e.options.loop?(e.list.switch(e.list.index),e.play()):\"all\"===e.options.loop&&(e.skipForward(),e.play())})}},{key:\"setAudio\",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?\"[object Function]\"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error(\"Illegal customType: \"+t):(t&&\"auto\"!==t||(t=/m3u8(#|\\?|$)/i.exec(e.url)?\"hls\":\"normal\"),\"hls\"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType(\"application/x-mpegURL\")||this.audio.canPlayType(\"application/vnd.apple.mpegURL\")?this.audio.src=e.url:this.notice(\"Error: HLS is not supported.\"):\"normal\"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:\"theme\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:\"seek\",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set(\"played\",e/this.duration,\"width\"),this.template.ptime.innerHTML=r.default.secondToTime(e)}},{key:\"setUIPlaying\",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove(\"aplayer-play\"),this.template.button.classList.add(\"aplayer-pause\"),this.template.button.innerHTML=\"\",setTimeout(function(){e.template.button.innerHTML=o.default.pause},100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable(\"loading\"),this.options.mutex)for(var t=0;t<m.length;t++)this!==m[t]&&m[t].pause()}},{key:\"play\",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch(function(t){console.warn(t),\"NotAllowedError\"===t.name&&e.setUIPaused()})}},{key:\"setUIPaused\",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove(\"aplayer-pause\"),this.template.button.classList.add(\"aplayer-play\"),this.template.button.innerHTML=\"\",setTimeout(function(){e.template.button.innerHTML=o.default.play},100),this.template.skipPlayButton.innerHTML=o.default.play),this.container.classList.remove(\"aplayer-loading\"),this.timer.disable(\"loading\")}},{key:\"pause\",value:function(){this.setUIPaused(),this.audio.pause()}},{key:\"switchVolumeIcon\",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:\"volume\",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set(\"volume\",e,\"height\"),t||this.storage.set(\"volume\",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:\"on\",value:function(e,t){this.events.on(e,t)}},{key:\"toggle\",value:function(){this.template.button.classList.contains(\"aplayer-play\")?this.play():this.template.button.classList.contains(\"aplayer-pause\")&&this.pause()}},{key:\"switchAudio\",value:function(e){this.list.switch(e)}},{key:\"addAudio\",value:function(e){this.list.add(e)}},{key:\"removeAudio\",value:function(e){this.list.remove(e)}},{key:\"destroy\",value:function(){m.splice(m.indexOf(this),1),this.pause(),this.container.innerHTML=\"\",this.audio.src=\"\",this.timer.destroy(),this.events.trigger(\"destroy\")}},{key:\"setMode\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"normal\";this.mode=e,\"mini\"===e?this.container.classList.add(\"aplayer-narrow\"):\"normal\"===e&&this.container.classList.remove(\"aplayer-narrow\")}},{key:\"notice\",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger(\"noticeshow\",{text:e}),n&&(this.noticeTime=setTimeout(function(){t.template.notice.style.opacity=0,t.events.trigger(\"noticehide\")},n))}},{key:\"prevIndex\",value:function(){if(!(this.list.audios.length>1))return 0;if(\"list\"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(\"random\"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:\"nextIndex\",value:function(){if(!(this.list.audios.length>1))return 0;if(\"list\"===this.options.order)return(this.list.index+1)%this.list.audios.length;if(\"random\"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:\"skipBack\",value:function(){this.list.switch(this.prevIndex())}},{key:\"skipForward\",value:function(){this.list.switch(this.nextIndex())}},{key:\"duration\",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:\"version\",get:function(){return\"1.10.1\"}}]),e}();t.default=g},,function(e,t,n){},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),n(40);var i,a=n(38),r=(i=a)&&i.__esModule?i:{default:i};console.log(\"\\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \\n\",\"color: #fadfa3; background: #030307; padding:5px 0;\",\"background: #fadfa3; padding:5px 0;\"),t.default=r.default}]).default});\n//# sourceMappingURL=APlayer.min.js.map"}]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ondaly/yuxusheng.git
git@gitee.com:ondaly/yuxusheng.git
ondaly
yuxusheng
yuxusheng
master

搜索帮助