代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>爱心捐助</title>
<script type="text/javascript">
function isalipay() {
var ua = window.navigator.userAgent.toLowerCase();
if(ua.indexOf('windows') != -1){
return false;
}
if (ua.match(/AlipayClient/i) == 'alipayclient') {
return true;
} else {
return false;
}
}
function isWeiXin() {
var ua = window.navigator.userAgent.toLowerCase();
if(ua.indexOf('windows') != -1){
return false;
}
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true;
} else {
return false;
}
}
if (isalipay()) {
window.open("alicallback.html");
}
if (isWeiXin()) {
window.open("wxcallback.html");
}
</script>
<style type="text/css">
body{
text-align: center;
position: absolute;
top:22%;
left: 40%;
}
button{
width: 320px;
height: 60px;
font-size: 32px;
color: white;
border: 1px solid white;
}
p{
font-size: 22px;
color: rgb(255,106,1);
}
</style>
</head>
<body>
<h1>爱心捐助</h1>
<button style="background-color: rgb(13,204,10);" onclick="window.open('wxcallback.html');">微信</button>
<br><br><br>
<button style="background-color: rgb(21,120,253);" onclick="window.open('alicallback.html');">支付宝</button>
<p> 感谢大神捐赠 </p>
</body>
<script type="text/javascript">
if(navigator.userAgent.indexOf('Win')==-1){
document.body.style.left="0px";
}
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。