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

63 lines
1.8 KiB
HTML
Raw Normal View History

2022-07-29 18:05:19 +05:30
<!DOCTYPE html>
<html lang="en">
<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>
<body>
<form
2022-07-29 18:11:45 +05:30
action="/api/form"
2022-07-29 18:05:19 +05:30
method="POST"
>
<div class="meta">
<input
type="text"
name="email"
placeholder="Your email"
required
/>
<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>
<input
type="text"
name="webhook"
placeholder="Your webhook URL"
required
/>
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>
</html>