Spaces:
Sleeping
Sleeping
<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> |