https://github.com/sinchang/vdonate
💰 为你的网站增加个微信、支付宝二维码,方便读者打赏
https://github.com/sinchang/vdonate
alipay donate wechat
Last synced: 4 months ago
JSON representation
💰 为你的网站增加个微信、支付宝二维码,方便读者打赏
- Host: GitHub
- URL: https://github.com/sinchang/vdonate
- Owner: sinchang
- Created: 2017-03-10T13:56:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T06:42:46.000Z (over 7 years ago)
- Last Synced: 2025-06-10T00:43:31.978Z (4 months ago)
- Topics: alipay, donate, wechat
- Language: JavaScript
- Homepage: https://vdonate.netlify.com/
- Size: 92.8 KB
- Stars: 59
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vdonate
> 为你的网站增加个微信、支付宝二维码,方便读者打赏。 inspired by [Ruby China](https://ruby-china.org)# 使用
```new Donate({
title: '如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!', // 可选参数,打赏标题
btnText: '打赏按钮', // 可选参数,打赏按钮文字
el: document.getElementById('donate'), // 必选参数,打赏按钮的容器
wechatImage: 'https://ooo.0o0.ooo/2017/03/09/58c15ca28db39.jpg', // 必选参数,微信收款二维码
alipayImage: 'https://ooo.0o0.ooo/2017/03/09/58c15cb1ea865.jpg' // 必选参数,支付宝收款二维码
});
```# API
- show() - 显示模态框
- hide() - 隐藏模态框
- destroy() - 销毁# License
This content is released under the [MIT](http://opensource.org/licenses/MIT) License.