-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdonate.html
More file actions
113 lines (99 loc) · 3.53 KB
/
Copy pathdonate.html
File metadata and controls
113 lines (99 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="zh-hans">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loading...</title>
<link rel="shortcut icon" type="image/png" href="/assets/images/favicon.png"/>
<style type="text/css">
* {
margin: auto;
padding: 0;
border: 0;
}
html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
font-family: Noto Sans CJK SC DemiLight, -apple-system, SF UI Text, Arial, Microsoft YaHei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
color: #333;
}
img {
max-width: 100%;
}
h3 {
padding: 10px;
}
.container {
text-align: center;
}
.title {
padding: 2em 0;
background-color: #fff;
}
.content {
padding: 2em 1em;
color: #fff;
}
.wepay {
background-color: #22ab38;
}
.qq {
background-color: #12b7f5;
}
.other {
background-color: #ff7055;
}
#qrcode {
border-radius: 32px;
}
</style>
</head>
<body class="other">
<div class="container">
<div class="title">
<img id="icon" src="" width="48px" height="48px" alt="">
<h1>打赏</h1>
</div>
<div class="content">
<h3 id="tips"></h3><img id="qrcode" src="" width="300px" height="300px" alt="">
<h3>扫描或长按识别二维码,向我付款</h3>
<br>
</div>
</div>
<div style="text-align: center;color:#fff;font-size:14px">声明:在本页面所进行的付款行为均为无偿捐赠,我不会对您有任何回报。如您通过本页面付款,即说明您已经阅读并同意本声明。</div>
<script>
window.onload = function () {
let qrcodeQQ = "./qrcode/qq.png";
let qrcodeWechat = "./qrcode/wechat.png"
let ua = navigator.userAgent;
let qrcode = document.getElementById("qrcode");
let icon = document.getElementById("icon");
if (ua.indexOf("AlipayClient") > -1) {
window.location.href = "https://qr.alipay.com/fkx16715khfgwiumouxj4d4"
}
else if (ua.indexOf("MicroMessenger") > -1) {
icon.src = "./assets/images/WeChatPayLogo.jpg";
document.title = "微信支付";
document.body.className = "wepay";
qrcode.src = qrcodeWechat
}
else if (ua.indexOf("QQ") > -1) {
icon.src = "./assets/images/QQPayLogo.jpg";
document.title = "QQ 钱包支付";
document.body.className = "qq";
qrcode.src = qrcodeQQ;
} else {
icon.src = "./assets/images/orangePayLogo.jpg";
document.title = "打赏";
document.body.className = "other";
document.getElementById("tips").innerText = "可使用支付宝(推荐)、微信、QQ 客户端扫码付款";
qrcode.src = "./qrcode/donate.png"
}
}
</script>
</body>
</html>