Spaces:
Sleeping
Sleeping
File size: 2,048 Bytes
28a5857 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="{{ url_for('static',path='/css/style.css')}}"/>
<script async src="https://www.google.com/recaptcha/api.js"></script>
<script>
function onSubmit(token) {
document.getElementById("verify_form").submit();
}
</script>
<script>
function onClick() {
grecaptcha.ready(function() {
grecaptcha.execute('{{ site_key }}', {action: 'submit'}).then(function(token) {
// Add your logic to submit to your backend server here.
});
});
}
</script>
<title>Verification Page</title>
</head>
<body>
<div class="row justify-content-center col-md-4">
<div class="align-self-center">
<h1 class="text-primary">Verification Page</h1>
<form id="verify_form" action="{{ url_for('verify') }}" method="post">
<div class="form-group my-3">
<input type="text" class="form-control" name="captcha" placeholder="Type captcha">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
<!-- reCaptcha v3 -->
<!-- <button type="submit" class="g-recaptcha btn btn-primary"
data-sitekey="{{ site_key }}" data-callback="onSubmit"
data-action="submit">Submit
</button> -->
<!-- reCaptcha v2 -->
<!-- <div class="g-recaptcha" data-sitekey="{{ site_key }}"></div> -->
<!-- <div id="html_element"></div> -->
<!-- <button type="submit" class="btn btn-primary" onclick='onClick()'>Submit</button> -->
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"></script>
</body>
</html> |