Skip to content

Releases: yaoqs/donate-plugin

v1.0.0

30 Jan 02:00
Compare
Choose a tag to compare

donate-plugin

Donate & Reward 大吉大利,今晚吃鸡

Full Changelog: https://github.com/yaoqs/donate-plugin/commits/v1.0.0

code

在html中插入以下代码,并将js文件引入html的head标签中即可.

当鼠标移动到侧边栏时将弹框出现

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/yaoqs/donate-plugin/zanzhu_yaoqs.min.js"></script>
/*!
* zanzhu_yaoqs JavaScript Library v1.0.0
* http://github.com/yaoqs
*
* Copyright 2021-, yaoqs[LordYao]
* Released under the MIT license
*
* 3rd Party Library:
* 1.jquery
* 2.jquery.qrcode
*
* Date: 2021-10-01
*/
<script>
    $(function () {
        new Rewardtip(
            {
                "tiptext": "谢谢支持/Thanks...",
                "tipimg": { img: "/images/ali.gif", width: "50px", height: "50px" },  //可选
                "more": "/Donate",
                "tipshow": "<img src='/images/ali.gif'/>",                     //可选
                "list": [
                    { name: "微信收款码", qrimg: "/images/微信收款码.png" },
                    { name: "微信打赏码", qrimg: "/images/微信打赏码.png" },
                    { name: "支付宝收款码", qrimg: "/images/支付宝收款码.jpg" },
                    { name: "支付宝红包码", qrimg: "/images/支付宝红包码.jpg" }
                ],
                "link": [
                    { name: "paypal", desc: "paypal.me/LordYao", link: "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&currency_code=USD&amount=1&return=http://yaoqs.github.com/about&item_name=LordYao%27s%20Blog&undefined_quantity=1" }
                ]/*,
                    fn:(function(){
                        return alert("解放思想,发展生产力");
                    })()*/
            });
    })

</script>

demo

  • donate_sider

  • donate_large

project

  • 扩展sider主题、样式
  • 打包封装

License 许可证 & Copyright

  • 版权声明:Copyright © 2019-2023 要庆生. All rights reserved. 未经本人同意请勿转载。经本人同意后转载时请注明出处。
  • GitHub license GitHub license
    知识共享许可协议 版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文(Creative Commons)
  • 业余时间所作,难免有不足及错漏之处,敬请包涵指正,可通过github仓库在线留言或Email [email protected]告知;如需补充其他相关专业信息,亦可邮件通知或github仓库在线留言;同时欢迎各位热心人士star、fork或共同参与维护仓库