This repository has been archived on 2022-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
Segfautils/static/form.html

45 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2022-07-29 18:05:19 +05:30
<!DOCTYPE html>
<html lang="en">
2022-07-29 18:05:19 +05:30
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Segfautils form implementation example</title>
2022-07-29 18:05:19 +05:30
<style>
body {
background-color: #252525;
color: #fff;
font-family: 'JetBrains Mono', 'JetBrainsMono Nerd Font', monospace
}
a {
color: #00d4aa;
}
a:hover {
color: #4beacb;
}
</style>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
</head>
2022-07-29 18:05:19 +05:30
<body>
<form action="/api/form" method="POST">
2022-07-29 18:05:19 +05:30
<div class="meta">
<input type="text" name="email" placeholder="Your email" required />
2022-07-29 18:05:19 +05:30
<select id="commentType" name="commentType" required>
<option value="" selected disabled>Select a type of comment</option>
<option value="Feedback">Feedback</option>
<option value="Suggestion">Suggestion</option>
<option value="Question">Question</option>
<option value="Bug">Bug</option>
</select>
</div>
<textarea id="comment" name="message" rows="4" cols="25" required placeholder="Your message"></textarea>
2022-07-29 18:11:45 +05:30
<div class="h-captcha" data-sitekey="{{.HCaptchaSiteKey}}"></div>
2022-07-29 18:05:19 +05:30
<input type="submit" value="Submit" />
</form>
</body>
2022-07-29 18:05:19 +05:30
</html>