moved to web, forgot to exclude in gitignore

This commit is contained in:
2026-11-21 18:05:30 -05:00
parent 18b1172f93
commit 67849def05
14 changed files with 881 additions and 2 deletions
+49
View File
@@ -0,0 +1,49 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>report | minibin</title>
<link rel="stylesheet" href="/css/main.css" />
<script defer src="/js/report.js"></script>
{{if .Qt}}
<style>
:root {
--qt-url: url("{{.Qt}}");
}
</style>
{{end}}
</head>
<body>
{{template "site-header"}}
<main>
<noscript class="noscript">
Javascript is required when reporting to compute a proof-of-work challenge. Without solving the challenge you cannot submit a report.
</noscript>
<form
method="post"
id="report-form"
data-challenge-difficulty="{{.Challenge.Difficulty}}"
data-challenge-expires-at="{{.Challenge.ExpiresAt}}"
data-challenge-data="{{.Challenge.Data}}"
>
<input id="pow-result" type="hidden" name="pow_result">
<input id="pow-nonce" type="hidden" name="pow_nonce">
<input type="hidden" name="pow_challenge_id" value="{{.Challenge.Id}}">
<label class="muted" for="upload_id">upload id</label>
<input type="text" name="upload_id" required>
<label class="muted" for="report_reason">reason</label>
<select class="full-dropdown" id="report-reason" name="report_reason">
{{range .ReportOptions}}
<option value="{{.}}">{{.}}</option>
{{end}}
</select>
<div class="submit-container">
<button id="submit-btn" type="submit" class="btn loading" disabled>submit</button>
<span id="pow-label">computing proof of work</span>
</div>
</form>
</main>
</body>
</html>