mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-09-30 21:29:31 +02:00
uploaderのスタイルを若干更新
This commit is contained in:
parent
dc61e1e077
commit
e0379f5b2f
7
app.py
7
app.py
@ -761,12 +761,9 @@ def send_songs(ref):
|
||||
def send_manifest():
|
||||
return cache_wrap(flask.send_from_directory("public", "manifest.json"), 3600)
|
||||
|
||||
@app.route("/upload/")
|
||||
def send_upload():
|
||||
return cache_wrap(flask.send_from_directory("public/upload", "index.html"), 3600)
|
||||
|
||||
@app.route("/upload/", defaults={"ref": "index.html"})
|
||||
@app.route("/upload/<path:ref>")
|
||||
def send_upload_sub(ref):
|
||||
def send_upload(ref):
|
||||
return cache_wrap(flask.send_from_directory("public/upload", ref), 3600)
|
||||
|
||||
@app.route("/upload", methods=["POST"])
|
||||
|
@ -16,12 +16,10 @@
|
||||
|
||||
<label for="file_music">音楽ファイル:</label>
|
||||
<input type="file" name="file_music" accept=".ogg,.mp3,.wav" required><br>
|
||||
|
||||
<br>
|
||||
<button type="button" onclick="uploadFiles()">今すぐ投稿! (30秒ほどかかる場合があります)</button>
|
||||
</form>
|
||||
|
||||
<br>
|
||||
<button type="button" onclick="uploadFiles()">今すぐ投稿! (30秒ほどかかる場合があります)</button>
|
||||
|
||||
<div id="error-view"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,3 +1,8 @@
|
||||
body > *:not(:last-child) {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
#error-view {
|
||||
word-break: break-word;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user