1 Star 1 Fork 0

@魔帝本尊 / wxaliqr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
@魔帝本尊 提交于 2023-11-22 17:46 . aa
<!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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/wxgshuju/wxaliqr.git
git@gitee.com:wxgshuju/wxaliqr.git
wxgshuju
wxaliqr
wxaliqr
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891