diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..67b8af8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,106 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +.idea/ +.DS_Store \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6c6ea75 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Jade + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..015c046 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +# docsify-sponsor + +

+ +
+ docsify-sponsor +

+ +[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/docsify-sponsor/badge)](https://www.jsdelivr.com/package/npm/docsify-sponsor) +[![](https://img.shields.io/npm/v/docsify-sponsor.svg)](https://www.npmjs.com/package/docsify-sponsor) +[![](https://img.shields.io/npm/l/docsify-sponsor)](https://github.com/JaderH/docsify-sponsor/blob/master/LICENSE) + +>docsify的赞助插件 Sponsor plugin for docsify + +本项目参考自 [sponsor-page](https://github.com/Kaiyuan/sponsor-page) + +## 使用 Usage + +1. 插入样式 Insert the style + +```html + +``` + +2. 插入脚本 Insert the script + +```html + +``` + +3. 添加配置 Add settings + +```js +window.$docsify = { + sponsor: { + github: '', + alipay_donate_qrcode: "", + alipay_donate_link: "", + wechat_donate_qrcode: "", + } +} +``` +## 配置说明 Configuration description + +| 属性名 Attribute | 类型 Type | 解释 Description | 默认值 Defaults | +| --------------- | -------- | --------------- | ----------- | +| github | string | GitHub 链接地址 GitHub link address | https://github.com/JaderH | +| alipay_donate_qrcode | string | 支付宝二维码图片地址 Alipay two-dimensional code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png | +| alipay_donate_link | string | 支付宝二维码链接地址 Alipay QR code link address | https://qr.alipay.com/fkx14579f8hzpauqxrteze9 | +| wechat_donate_qrcode | string | 微信二维码图片地址 WeChat QR code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png | \ No newline at end of file diff --git a/dist/sponsor.min.css b/dist/sponsor.min.css new file mode 100644 index 0000000..971d852 --- /dev/null +++ b/dist/sponsor.min.css @@ -0,0 +1 @@ +#drinks-box{margin:0 auto 0;overflow:hidden;min-height:240px;padding:0;background:var(--background,#fff);line-height:1.6rem;width:90%;height:240px;text-align:center;position:relative}#drinks-box img{border-width:0}#drinks-box .list,.list li,.list-left li{list-style:none none;margin:0;padding:0}#drinks-box .left-100{width:100%;height:100%;float:left}#drinks-box .tr3,.list li{transition:all .3s}#drinks-box .opacity-show{opacity:1}#drinks-icons{background:no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF7mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh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BBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQEAA/SMAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggACPmP8Hk7wVJU5dsYYAAAAASUVORK5CYII=)}#drinks-box .drinks-button>div{position:absolute;top:0;left:0;transition:all .3s;transform-style:preserve-3d;transform-origin:center center}#drinks-box .icon-donate{width:64px;height:64px;position:absolute;left:calc(50% - 32px);top:calc(50% - 32px)}#drinks-box .icon-donate img{max-width:64px;max-height:64px}#drinks-button-box{display:none;opacity:0;transform:scale(1.3,1.3)}#drinks-button-bg{position:absolute;left:0;height:100px;opacity:0}#donate-buttons{position:absolute;overflow:hidden;top:calc(50% - 14px);left:calc(50% - 70px);height:28px;border-radius:6px;background-color:#417790;box-shadow:0 10px 20px 1px rgba(103,207,248,0.5)}#donate-buttons a,#github-box a{display:block}li[id$="_donate"]{position:relative;float:left;width:70px;height:28px;line-height:600px;overflow:hidden;cursor:pointer;background:no-repeat center center;background-size:45px;text-align:center}li[id$="_donate"]::after{content:"";position:absolute;top:-5px;left:calc(50% - 5px);height:0;width:0;opacity:0;border:5px solid #fff;border-color:#fff transparent transparent transparent;transition:all .3s}li[id$="_donate"]:hover::after{opacity:1;top:0}#github-box{width:32px;height:32px;position:absolute;top:calc(50% - 16px);left:calc(50% + 66px);background:no-repeat center center url(https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/github.svg);background-size:contain;right:72px;line-height:600px;overflow:hidden;transform:rotatez(20deg);opacity:0;transition:all .3s ease-out}#drinks-button-box:hover #github-box,#drinks-button-box.Mobile #github-box{top:calc(50% - 40px);right:64px;transform:rotatez(5deg);opacity:.8}#alipay_donate{background-image:url(data:image/svg+xml;base64,PD94b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xLDAsMS42LTAuNCw0LjUtMXM1LjUtMS41LDcuNy0yLjVWMTE1LjZ6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01MzEuMiw5NC40di05LjZoLTcuOXYtMTRoLTEzLjZ2MTRoLTYuOHY5LjZoNi44djI3LjdjMCw1LjgsMSw5LjYsMi45LDExLjZjMiwxLjksNS41LDIuOSwxMC44LDIuOQ0KCQkJYzAuNCwwLDEuNiwwLDMuMy0wLjFjMS43LTAuMSwzLjItMC4yLDQuNS0wLjJsMCwwdi0xMC4yaC0zLjNjLTEuOSwwLTMuMS0wLjItMy43LTAuNmMtMC42LTAuNS0wLjktMS4zLTAuOS0yLjdWOTQuNEw1MzEuMiw5NC40DQoJCQlMNTMxLjIsOTQuNHoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4NCg==)}#drinks-qrcodes{display:none}#drinks-qrcode{position:absolute;top:calc(50% - 90px);left:calc(50% - 90px);width:180px;height:180px;background:#fff no-repeat center;background-size:160px;border-radius:6px;cursor:pointer;box-shadow:0 10px 20px rgba(103,207,248,0.5)}#drinks-icons,#drinks-button-box{filter:blur(0)}#drinks-box .donate-animation-1>#drinks-icons,.donate-animation-4>#drinks-icons,.donate-animation-3>#drinks-button-box{transform:scale(0.7,0.7);filter:blur(2px);display:block;opacity:1}#drinks-box .donate-animation-1>#drinks-button-box,.donate-animation-4>#drinks-button-box,.donate-animation-3>#drinks-qrcodes{display:block;opacity:1;transform:scale(1,1)}#drinks-box .donate-animation-2>#drinks-button-box,.donate-animation-4>#drinks-qrcodes,.hideBox{display:block;transform:scale(1,1);animation-name:hideBox;animation-duration:.3s;animation-timing-function:ease-in-out;animation-iteration-count:1;animation-fill-mode:forwards}#drinks-box .donate-animation-3>#drinks-icons{transform:scale(0.4,0.4);filter:blur(2px)}#drinks-box .showBox{animation-name:showBox;animation-duration:.3s;animation-timing-function:ease-in-out;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes showBox{from{opacity:0;transform:scale(1.3,1.3)}to{opacity:1;transform:scale(1,1)}}@keyframes hideBox{from{opacity:1;transform:scale(1,1)}to{opacity:0;transform:scale(1.3,1.3)}} diff --git a/dist/sponsor.min.js b/dist/sponsor.min.js new file mode 100644 index 0000000..37291f6 --- /dev/null +++ b/dist/sponsor.min.js @@ -0,0 +1,20 @@ +var defaultOptions={github:"https://github.com/JaderH",alipay_donate_qrcode:"https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png",alipay_donate_link:"https://qr.alipay.com/fkx14579f8hzpauqxrteze9",wechat_donate_qrcode:"https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png"};function plugin(o){o.mounted(function(){insertDOM=` +
+
+
+
coffee
+
+
+
+ + +
+
+
+
+
+
+ `;const o=Docsify.dom.find(".content");o.innerHTML=o.innerHTML+insertDOM;const i=document.querySelector("body"),t=i.querySelector("#drinks-box-s"),e=i.querySelector(".icon-donate"),n=i.querySelector("#donate-buttons"),s=i.querySelector("#drinks-button-box"),d=i.querySelector("#drinks-button-bg"),I=i.querySelector("#drinks-qrcodes"),a=i.querySelector("#drinks-qrcode"),l=/Android|webOS|iPhone|iPad|BlackBerry/i.test(navigator.userAgent),c={alipay_donate:defaultOptions.alipay_donate_qrcode,alipay_donate_link:defaultOptions.alipay_donate_link,wechat_donate:defaultOptions.wechat_donate_qrcode};l&&s.classList.add("Mobile"),e.addEventListener("click",()=>{t.classList.remove("donate-animation-2","donate-animation-3"),t.classList.add("donate-animation-1"),s.classList.add("showBox"),setTimeout(()=>{s.classList.remove("showBox")},300)}),d.addEventListener("click",()=>{t.classList.remove("donate-animation-1","donate-animation-3"),t.classList.add("donate-animation-2"),setTimeout(()=>{t.classList.remove("donate-animation-2")},300)});n.addEventListener("click",o=>{o=o.target.id;l&&"alipay_donate"===o?window.open(c.alipay_donate_link):(a.style.backgroundImage=`url(${c[o]})`,t.classList.remove("donate-animation-1","donate-animation-2"),t.classList.add("donate-animation-3"),I.classList.add("showBox"),setTimeout(()=>{I.classList.remove("showBox")},300))}),a.addEventListener("click",()=>{t.classList.remove("donate-animation-2","donate-animation-3"),t.classList.add("donate-animation-4"),setTimeout(()=>{t.classList.remove("donate-animation-4"),t.classList.add("donate-animation-1")},300)})})}window.$docsify.sponsor=Object.assign(defaultOptions,window.$docsify.sponsor),window.$docsify.plugins=[].concat(plugin,window.$docsify.plugins); \ No newline at end of file diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..015c046 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,50 @@ +# docsify-sponsor + +

+ +
+ docsify-sponsor +

+ +[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/docsify-sponsor/badge)](https://www.jsdelivr.com/package/npm/docsify-sponsor) +[![](https://img.shields.io/npm/v/docsify-sponsor.svg)](https://www.npmjs.com/package/docsify-sponsor) +[![](https://img.shields.io/npm/l/docsify-sponsor)](https://github.com/JaderH/docsify-sponsor/blob/master/LICENSE) + +>docsify的赞助插件 Sponsor plugin for docsify + +本项目参考自 [sponsor-page](https://github.com/Kaiyuan/sponsor-page) + +## 使用 Usage + +1. 插入样式 Insert the style + +```html + +``` + +2. 插入脚本 Insert the script + +```html + +``` + +3. 添加配置 Add settings + +```js +window.$docsify = { + sponsor: { + github: '', + alipay_donate_qrcode: "", + alipay_donate_link: "", + wechat_donate_qrcode: "", + } +} +``` +## 配置说明 Configuration description + +| 属性名 Attribute | 类型 Type | 解释 Description | 默认值 Defaults | +| --------------- | -------- | --------------- | ----------- | +| github | string | GitHub 链接地址 GitHub link address | https://github.com/JaderH | +| alipay_donate_qrcode | string | 支付宝二维码图片地址 Alipay two-dimensional code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png | +| alipay_donate_link | string | 支付宝二维码链接地址 Alipay QR code link address | https://qr.alipay.com/fkx14579f8hzpauqxrteze9 | +| wechat_donate_qrcode | string | 微信二维码图片地址 WeChat QR code picture address | https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png | \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..f4bea7e --- /dev/null +++ b/docs/index.html @@ -0,0 +1,102 @@ + + + + + docsify-sponsor + + + + + + + + + +
加载中,请稍后...
+ + + + + + + + + + + + + + + + diff --git a/src/sponsor.css b/src/sponsor.css new file mode 100644 index 0000000..36b5509 --- /dev/null +++ b/src/sponsor.css @@ -0,0 +1,228 @@ +#drinks-box { + margin: 0px auto 0px; + overflow: hidden; + min-height: 240px; + padding: 0; + background: var(--background, #fff); + line-height: 1.6rem; + width: 90%; + height: 240px; + text-align: center; + position: relative; +} +#drinks-box img {border-width: 0px;} + +#drinks-box .list, .list li, .list-left li { + list-style: none none; + margin: 0px; + padding: 0px; +} + +#drinks-box .left-100 { + width: 100%; + height: 100%; + float: left; +} + +#drinks-box .tr3, .list li { + transition: all .3s; +} + +#drinks-box .opacity-show { + opacity: 1; +} + +#drinks-icons { + background: no-repeat center center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF7mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9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AABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQEAA/SMAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggACPmP8Hk7wVJU5dsYYAAAAASUVORK5CYII=); +} + +#drinks-box .drinks-button>div { + position: absolute; + top: 0; + left: 0; + transition: all 0.3s; + transform-style: preserve-3d; + transform-origin: center center; +} + +#drinks-box .icon-donate { + width: 64px; + height: 64px; + position: absolute; + left: calc(50% - 32px); + top: calc(50% - 32px); +} + +#drinks-box .icon-donate img { + max-width: 64px; + max-height: 64px; +} + +#drinks-button-box { + display: none; + opacity: 0; + transform: scale(1.3,1.3); +} + +#drinks-button-bg { + position: absolute; + left: 0; + height: 100px; + opacity: 0; +} + +#donate-buttons { + position: absolute; + overflow: hidden; + top: calc(50% - 14px); + left: calc(50% - 70px); + height: 28px; + border-radius: 6px; + background-color: #417790; + box-shadow: 0 10px 20px 1px rgba(103, 207, 248, 0.5); +} + +#donate-buttons a, #github-box a { + display: block; +} + +li[id$="_donate"] { + position: relative; + float: left; + width: 70px; + height: 28px; + line-height: 600px; + overflow: hidden; + cursor: pointer; + background: no-repeat center center; + background-size: 45px; + text-align: center; +} + +li[id$="_donate"]::after { + content: ""; + position: absolute; + top: -5px; + left: calc(50% - 5px); + height: 0; + width: 0; + opacity: 0; + border: 5px solid #fff; + border-color: #fff transparent transparent transparent; + transition: all .3s; +} + +li[id$="_donate"]:hover::after { + opacity: 1; + top: 0px; +} + +#github-box { + width: 32px; + height: 32px; + position: absolute; + top: calc(50% - 16px); + left: calc(50% + 66px); + background: no-repeat center center url(https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/github.svg); + background-size: contain; + right: 72px; + line-height: 600px; + overflow: hidden; + transform: rotatez(20deg ); + opacity: 0; + transition: all .3s ease-out; +} + +#drinks-button-box:hover #github-box, #drinks-button-box.Mobile #github-box { + top: calc(50% - 40px); + right: 64px; + transform: rotatez(5deg ); + opacity: 0.8; +} + +#alipay_donate{ + background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjIsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDQ0OC41IDE0NS41IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NDguNSAxNDUuNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAgICA7fQ0KCS5zdDF7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDojRkZGRkZGO30NCjwvc3R5bGU+DQo8ZyBpZD0i5Zu+5bGCXzIiPg0KPC9nPg0KPGcgaWQ9IuWbvuWxgl8xIj4NCgk8ZyBpZD0i5qSt5ZyGXzJfMV8iIGNsYXNzPSJzdDAiPg0KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTA1LjYsMEg4MS44djE4LjdoLTQ4djkuOGg0OHYxOEg0OC4xdjExLjFoNjcuNGMwLDAsMCwxNS45LTIwLjMsMzcuNlM2Ny40LDEyMC4yLDU3L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ODYuOSwxMTUuNmMwLDMuNy0xLjEsNi41LTMuMiw4LjZzLTUsMy4xLTguNywzLjFjLTIuMSwwLTMuOC0wLjYtNS0xLjcNCgkJCXMtMS44LTIuNi0xLjgtNC41YzAtMS44LDAuNC0zLjMsMS40LTQuM3MyLjctMS45LDUuMS0yLjZjMC4xLDAsMS42LTAuNCw0LjUtMXM1LjUtMS41LDcuNy0yLjVWMTE1LjZ6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01MzEuMiw5NC40di05LjZoLTcuOXYtMTRoLTEzLjZ2MTRoLTYuOHY5LjZoNi44djI3LjdjMCw1LjgsMSw5LjYsMi45LDExLjZjMiwxLjksNS41LDIuOSwxMC44LDIuOQ0KCQkJYzAuNCwwLDEuNiwwLDMuMy0wLjFjMS43LTAuMSwzLjItMC4yLDQuNS0wLjJsMCwwdi0xMC4yaC0zLjNjLTEuOSwwLTMuMS0wLjItMy43LTAuNmMtMC42LTAuNS0wLjktMS4zLTAuOS0yLjdWOTQuNEw1MzEuMiw5NC40DQoJCQlMNTMxLjIsOTQuNHoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4NCg==); +} + +#drinks-qrcodes { + display: none; +} + +#drinks-qrcode { + position: absolute; + top: calc(50% - 90px); + left: calc(50% - 90px); + width: 180px; + height: 180px; + background: #fff no-repeat center; + background-size: 160px; + border-radius: 6px; + cursor: pointer; + box-shadow: 0 10px 20px rgba(103, 207, 248, 0.5); +} + +#drinks-icons, #drinks-button-box { + filter: blur(0px); +} + +#drinks-box .donate-animation-1>#drinks-icons, .donate-animation-4>#drinks-icons,.donate-animation-3>#drinks-button-box { + transform: scale(0.7,0.7); + filter: blur(2px); + display: block; + opacity: 1; +} + +#drinks-box .donate-animation-1>#drinks-button-box,.donate-animation-4>#drinks-button-box,.donate-animation-3>#drinks-qrcodes { + display: block; + opacity: 1; + transform: scale(1,1); +} + +#drinks-box .donate-animation-2>#drinks-button-box,.donate-animation-4>#drinks-qrcodes, .hideBox { + display: block; + transform: scale(1,1); + animation-name:hideBox; + animation-duration:0.3s; + animation-timing-function:ease-in-out; + animation-iteration-count:1; + animation-fill-mode:forwards; +} + +#drinks-box .donate-animation-3>#drinks-icons { + transform: scale(0.4,0.4); + filter: blur(2px); +} + +#drinks-box .showBox { + animation-name:showBox; + animation-duration:0.3s; + animation-timing-function:ease-in-out; + animation-iteration-count:1; + animation-fill-mode:forwards; +} + +@keyframes showBox { + from { + opacity: 0; + transform: scale(1.3,1.3); + } + to { + opacity: 1; + transform: scale(1,1); + } +} + +@keyframes hideBox { + from { + opacity: 1; + transform: scale(1,1); + } + to { + opacity: 0; + transform: scale(1.3,1.3); + } +} \ No newline at end of file diff --git a/src/sponsor.js b/src/sponsor.js new file mode 100644 index 0000000..0268614 --- /dev/null +++ b/src/sponsor.js @@ -0,0 +1,106 @@ +var defaultOptions = { + github: 'https://github.com/JaderH', + alipay_donate_qrcode: 'https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/AliPayQR.png', + alipay_donate_link: 'https://qr.alipay.com/fkx14579f8hzpauqxrteze9', + wechat_donate_qrcode: 'https://cdn.jsdelivr.net/gh/JaderH/JaderH.github.io@master/assets/WeChanSQ.png', +} + +// Docsify plugin functions +function plugin(hook) { + hook.mounted(function() { + insertDOM = ` +
+
+
+
coffee
+
+
+
+ + +
+
+
+
+
+
+ ` + const content = Docsify.dom.find('.content') + content.innerHTML = content.innerHTML + insertDOM + + const bd = document.querySelector('body'); + const drink_box_s = bd.querySelector('#drinks-box-s'); + const icon_donate = bd.querySelector('.icon-donate'); + const donate_button = bd.querySelector('#donate-buttons'); + const donate_buttons = bd.querySelector('#drinks-button-box'); + const donate_button_bg = bd.querySelector('#drinks-button-bg'); + const drinks_qrcodes = bd.querySelector('#drinks-qrcodes'); + const drinks_qrcode = bd.querySelector('#drinks-qrcode'); + const isMobile = /Android|webOS|iPhone|iPad|BlackBerry/i.test(navigator.userAgent); + + const qrcodes = { + 'alipay_donate': defaultOptions.alipay_donate_qrcode, + 'alipay_donate_link': defaultOptions.alipay_donate_link, + 'wechat_donate': defaultOptions.wechat_donate_qrcode + }; + + if (isMobile) { + donate_buttons.classList.add('Mobile'); + } + + icon_donate.addEventListener('click', () => { + drink_box_s.classList.remove('donate-animation-2','donate-animation-3'); + drink_box_s.classList.add('donate-animation-1'); + donate_buttons.classList.add('showBox'); + setTimeout(() => { + donate_buttons.classList.remove('showBox'); + }, 300); + }); + + donate_button_bg.addEventListener('click', () => { + drink_box_s.classList.remove('donate-animation-1','donate-animation-3') + drink_box_s.classList.add('donate-animation-2'); + setTimeout(() => { + drink_box_s.classList.remove('donate-animation-2'); + }, 300); + }); + + const showQR = () => { + drink_box_s.classList.remove('donate-animation-1','donate-animation-2') + drink_box_s.classList.add('donate-animation-3'); + drinks_qrcodes.classList.add('showBox'); + setTimeout(() => { + drinks_qrcodes.classList.remove('showBox'); + }, 300); + } + + donate_button.addEventListener('click', (e) => { + let thisID = e.target.id + if (isMobile && thisID === 'alipay_donate') { + window.open(qrcodes['alipay_donate_link']); + } else { + drinks_qrcode.style.backgroundImage = `url(${ qrcodes[thisID] })`; + showQR(); + } + }); + + drinks_qrcode.addEventListener('click', () => { + drink_box_s.classList.remove('donate-animation-2','donate-animation-3'); + drink_box_s.classList.add('donate-animation-4'); + setTimeout(() => { + drink_box_s.classList.remove('donate-animation-4'); + drink_box_s.classList.add('donate-animation-1'); + }, 300); + }); + }); +} + +// Docsify plugin options +window.$docsify['sponsor'] = Object.assign( + defaultOptions, + window.$docsify['sponsor'] +) +window.$docsify.plugins = [].concat(plugin, window.$docsify.plugins) \ No newline at end of file