summaryrefslogtreecommitdiff
path: root/pages/spamcheck.mustache
blob: 181e873444dfb5043cd2cd51ca1db8b1e755189f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html lang="en">
<head>
  {{> headmeta}}
  <title>tirclogv (spamcheck)</title>
</head>
<body>
  <main>
    <h1>Are you human?</h1>
    <p>
      Sorry, the server is currently receiving a large number of requests.
      Please answer the question to proceed.
    </p>
    {{#incorrect}}
    <p style="color: red">That answer is incorrect.</p>
    {{/incorrect}}
    <form action="/spamcheck/submit" method="get">
      <input type="hidden" name="hash" value="{{&hash}}">
      <input type="hidden" name="url" value="{{prevurl}}">
      <p>
        <label for="ans">{{&question}}</label>&nbsp;
        <input type="text" id="ans" name="ans" placeholder="answer..." size="8" style="font-size: 100%" required autofocus>
      </p>
      <p>
        <input type="submit" value="OK" style="min-width: 80px">
      </p>
    </form>
  </main>
  <script>
    document.getElementById("ans").value = "";  // if the browser helpfully remembered something, that's not helpful
  </script>
</body>
</html>