GithubHelp home page GithubHelp logo

sinchang / vdonate Goto Github PK

View Code? Open in Web Editor NEW
59.0 2.0 6.0 95 KB

💰 为你的网站增加个微信、支付宝二维码,方便读者打赏

Home Page: https://vdonate.netlify.com/

HTML 29.74% JavaScript 40.88% CSS 29.38%
wechat donate alipay

vdonate's Introduction

vdonate

为你的网站增加个微信、支付宝二维码,方便读者打赏。 inspired by Ruby China

使用

<div id="donate">

<script src="https://unpkg.com/vdonate"></script>

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 License.

vdonate's People

Contributors

sinchang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vdonate's Issues

如何设置默认选中的支付方式?

首先感谢作者的作品。

我想默认选中支付宝 并把支付宝放在左边,如何设置?我看了代码,试着修改了下,没有起作用。

谢谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.