From 54a926ccd5932bfbdffb4dfd44f375e8410c2bb5 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 19 Jun 2021 20:10:42 +0100 Subject: interstital commit --- app.py | 13 +++++++++++++ static/style.css | 9 +++++++++ templates/nhdl.html | 12 ++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 templates/nhdl.html diff --git a/app.py b/app.py index 13431f7..2f6a37b 100644 --- a/app.py +++ b/app.py @@ -141,6 +141,19 @@ def serve_image(filename): else: flask.abort(404) +@app.route("/nhdl") +def serve_nhdl(): + with database.Database() as db: + return flask.render_template( + "nhdl.html", + **get_template_items("Hentai Downloader", db) + ) + +@app.route("/nhdlredirect", methods = ["POST"]) +def redirect_nhdl(): + if flask.request.form["domain"] == "nhentai": + + @app.route("/random") def serve_random(): try: diff --git a/static/style.css b/static/style.css index 45b9459..be25a8e 100644 --- a/static/style.css +++ b/static/style.css @@ -132,6 +132,15 @@ header img { max-height: 110px; } +form #number_input { + width: 50px; + margin-left: 10px; +} + +form #url_input { + margin-left: 10px; +} + body div div { padding-left: 10px; padding-right: 10px; diff --git a/templates/nhdl.html b/templates/nhdl.html new file mode 100644 index 0000000..9b619ef --- /dev/null +++ b/templates/nhdl.html @@ -0,0 +1,12 @@ +{% extends "template.html" %} +{% block content %} +
+ + +
+ + +

+ +
+{% endblock %} \ No newline at end of file -- cgit v1.2.3