|
|
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
- <link href="https://fonts.yecdn.com/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">
- <style>
- body {
- font-family: 'Noto Sans SC', sans-serif;
- background-color: black;
- color: white;
- }
- input {
- border: none !important;
- border-radius: 0 !important;
- border-bottom: 2px solid !important;
- background: black !important;
- color: white !important;
- }
- .btn-link,
- .btn-link:hover {
- color: inherit;
- text-decoration: underline;
- }
- </style>
- </head>
-
- <body>
- <div class="container">
- <form action="verify" method="post" onsubmit="sendForm(this);return false">
- {% for v in vs %}
- <div class="form-group row">
- <label for="{{v[0]}}" class="col-sm-8 col-form-label">{{v[1]}}</label>
- <div class="col-sm-4">
- <input type="text" class="form-control" name="{{v[0]}}" id="{{v[0]}}" placeholder="{{v[2]}}" required="required">
- </div>
- </div>
- {% endfor %}
- <button type="submit" class="btn btn-link btn-lg mb-3">提交</button>
- <p>
- {% if allow_guest_upload %}
- <small>*当前允许游客上传。如果未来出现内容失控,将关闭此权限。</small>
- {% else %}
- <small>*当前不允许游客上传,如有需要请使用闭社账户登陆。</small>
- {% endif %}
- </p>
-
- </form>
- </div>
- </body>
- <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
- <script>
- function sendForm(f) {
- $.ajax({
- type: 'POST',
- url: 'verify',
- data: $(f).serialize(),
- success: () => {
- top.location.href='../..';
- },
- error: (xhr, status, error) => {
- alert(error + '\n\n' + xhr.responseText);
- }
- });
- }
- </script>
- </html>
-
|