-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (36 loc) · 1.13 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="image-section">
<div class="background"></div>
</div>
<div class="form-section">
<h1>HELLO!</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<h-captcha id="signupCaptcha"
site-key="b6ea4b5c-26f4-4f70-90e6-4938a292f9e8"
size="normal"
tabindex="0"></h-captcha>
<script src="https://cdn.jsdelivr.net/npm/@hcaptcha/vanilla-hcaptcha"></script>
</div>
<script>
const signupCaptcha = document.getElementById('signupCaptcha');
signupCaptcha.addEventListener('verified', (e) => {
console.log('verified event', {token: e.token});
window.location.href = 'login.html'
});
signupCaptcha.addEventListener('error', (e) => {
console.log('error event', {error: e.error});
});
</script>
</div>
</body>
</html>