You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

captcha.html 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"/>
  5. <title>Contact me</title>
  6. <style type="text/css">
  7. p {
  8. font-family: sans-serif;
  9. }
  10. .page {
  11. width: 640px;
  12. margin: auto;
  13. }
  14. .form {
  15. position: relative;
  16. z-index: 1;
  17. background: #FFFFFF;
  18. max-width: 640px;
  19. margin: 0 auto;
  20. padding: 25px 45px 35px 45px;
  21. text-align: center;
  22. }
  23. .form input {
  24. outline: 0;
  25. background: #f2f2f2;
  26. width: 100%;
  27. border: 0;
  28. margin: 0 0 15px;
  29. padding: 15px;
  30. box-sizing: border-box;
  31. font-size: 14px;
  32. }
  33. .form button {
  34. text-transform: uppercase;
  35. outline: 0;
  36. background: #4CAF50;
  37. width: 100%;
  38. border: 0;
  39. padding: 15px;
  40. color: #FFFFFF;
  41. font-size: 14px;
  42. transition: all 0.3 ease;
  43. cursor: pointer;
  44. }
  45. .form button:hover, .form button:active, .form button:focus {
  46. background: #43A047;
  47. }
  48. </style>
  49. </head>
  50. <body>
  51. <div class="page">
  52. <div class="form">
  53. <form action="solve" method="post">
  54. {{ .csrfField }}
  55. <p>
  56. As a protection against automated spam, please type in the
  57. numbers in the image below.
  58. </p>
  59. <p>
  60. Alternatively, you can listen to an <a href="captcha.wav">audio version</a>.
  61. </p>
  62. <p>
  63. If you are unable to read the image, <a href="captcha">reload the page</a>
  64. to generate a new one.
  65. </p>
  66. <img src="captcha.png" alt="Captcha">
  67. <input type="text" minlength="6" maxlength="6" name="captcha" placeholder="Captcha value" pattern="[0-9]*" inputmode="numeric" required>
  68. <button>Submit</button>
  69. </form>
  70. </div>
  71. </div>
  72. </body>
  73. </html>