Add Template
This commit is contained in:
parent
e151c7752a
commit
2d36b63694
36
template/index.html
Normal file
36
template/index.html
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Simple Form with reCAPTCHA</title>
|
||||||
|
<!-- Load reCAPTCHA script -->
|
||||||
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
|
<script>
|
||||||
|
function onSubmit(token) {
|
||||||
|
document.getElementById("demo-form").submit();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<form id="demo-form" action="submit_form.php" method="POST">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Name:</label>
|
||||||
|
<input type="text" id="name" name="name" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">Email:</label>
|
||||||
|
<input type="email" id="email" name="email" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- reCAPTCHA widget -->
|
||||||
|
<!--<div class="g-recaptcha" data-sitekey="6LdFRyYpAAAAAMas7osDpxN8Ke8FavgVBvfCCk6P"></div>-->
|
||||||
|
<button class="g-recaptcha" data-sitekey="6LdFRyYpAAAAAMas7osDpxN8Ke8FavgVBvfCCk6P"></button>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
4
template/server.sh
Executable file
4
template/server.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
python -m http.server
|
Loading…
Reference in New Issue
Block a user