Skip to content

Commit

Permalink
完善项目描述和注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyuan Xie authored and Kaiyuan Xie committed May 2, 2016
1 parent 56c8709 commit aeb0e40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# Donate-Page
这是一系列整理好的捐赠按钮样式
这是一系列整理好的捐赠按钮样式。

直接 Fork 之后需要修改以下内容为你的账户
/simple/script.js:5 `var ppbusiness = "你的 PayPal 账号"; //建议用Unicode`
/simple/script.js:149,152,154 `showQR('images/BTCQR.png'); //对应账户的二维码路径`
/simple/index.html:37 `<input id="btc-key" type="text" value="比特币账号" readonly="readonly">`

针对不同项目可以直接在 URL 加入项目参数和金额,不过仅仅作用于 PayPal 方式.

`https://kaiyuan.github.io/donate-page/simple/?item='donate-page&price=2'`

###License
Released under the MIT license.
2 changes: 1 addition & 1 deletion simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
var strHref = location.href.substring(location.href.indexOf("?")+1);
var ppitem_name = strHref.getQuery('item'); //项目名称
var donatrNo = strHref.getQuery('no'); //金额
var donatrNo = strHref.getQuery('price'); //金额
</script>
<script src="script.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion simple/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jQuery(document).ready(function() {
if (thisID === 'PayPal') {
ppBuy();
} else if (thisID === 'BTC') {
showQR('images/BTCQR.png');
showQR('images/BTCQR.png'); // 传入对应二维码
new Clipboard('#BTCBn');
} else if (thisID === 'AliPay') {
showQR('images/AliPayQR.png');
Expand Down

0 comments on commit aeb0e40

Please sign in to comment.