update temp

This commit is contained in:
xtaodada 2022-10-30 23:50:20 +08:00
parent 0fe5d7e389
commit 73010c0513
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -1,8 +1,28 @@
CHALLENGE_HTML = """
<!DOCTYPE html>
<html>
<body>
<button type="button" id="login">点击开始验证</button>
<html lang="zh" class="h-full w-full">
<head>
<meta charset="UTF-8">
<title>Login Page</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {{
color: #495057;
background-color: #f5f5f5;
}}
</style>
</head>
<body class="h-full w-full">
<div class="container mx-auto h-full w-full">
<div class="flex flex-col h-full w-full">
<div class="m-auto w-full max-w-xl">
<div class="rounded-t-lg bg-white ring-0 ring-black ring-opacity-20 m-auto text-6xl
submit m-4 transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-105 ">
<button class="w-full p-4 2" id="submit">点击开始验证</button>
</div>
</div>
</div>
</div>
</body>
<script src="./gt.js"></script>
<script>
@ -16,15 +36,15 @@ CHALLENGE_HTML = """
https: true,
}},
(captcha) => {{
captcha.appendTo("login");
captcha.appendTo("submit");
captcha.onSuccess(() => {{
document.body.innerHTML = "验证成功,页面跳转中...";
document.getElementById("submit").innerHTML = "验证成功,页面跳转中...";
window.location.href = "https://t.me/{2}?start=challenge_" + captcha.getValidate().geetest_validate;
}});
captcha.onError(function (error) {{
document.body.innerHTML = "发生错误:" + error.msg;
document.getElementById("submit").innerHTML = "发生错误:" + error.msg;
}});
document.getElementById("login").onclick = () => {{
document.getElementById("submit").onclick = () => {{
return captcha.verify();
}};
}}