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.

69 lines
2.3 KiB

  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  6. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
  7. <link href="https://fonts.yecdn.com/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">
  8. <style>
  9. body {
  10. font-family: 'Noto Sans SC', sans-serif;
  11. background-color: black;
  12. color: white;
  13. }
  14. input {
  15. border: none !important;
  16. border-radius: 0 !important;
  17. border-bottom: 2px solid !important;
  18. background: black !important;
  19. color: white !important;
  20. }
  21. .btn-link,
  22. .btn-link:hover {
  23. color: inherit;
  24. text-decoration: underline;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="container">
  30. <form action="verify" method="post" onsubmit="sendForm(this);return false">
  31. {% for v in vs %}
  32. <div class="form-group row">
  33. <label for="{{v[0]}}" class="col-sm-8 col-form-label">{{v[1]}}</label>
  34. <div class="col-sm-4">
  35. <input type="text" class="form-control" name="{{v[0]}}" id="{{v[0]}}" placeholder="{{v[2]}}" required="required">
  36. </div>
  37. </div>
  38. {% endfor %}
  39. <button type="submit" class="btn btn-link btn-lg mb-3">提交</button>
  40. <p>
  41. {% if allow_guest_upload %}
  42. <small>*当前允许游客上传。如果未来出现内容失控,将关闭此权限。</small>
  43. {% else %}
  44. <small>*当前不允许游客上传,如有需要请使用闭社账户登陆。</small>
  45. {% endif %}
  46. </p>
  47. </form>
  48. </div>
  49. </body>
  50. <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  51. <script>
  52. function sendForm(f) {
  53. $.ajax({
  54. type: 'POST',
  55. url: 'verify',
  56. data: $(f).serialize(),
  57. success: () => {
  58. top.location.href='../..';
  59. },
  60. error: (xhr, status, error) => {
  61. alert(error + '\n\n' + xhr.responseText);
  62. }
  63. });
  64. }
  65. </script>
  66. </html>