From dcbd9cccebd37ddc49911fadd3220176b460a512 Mon Sep 17 00:00:00 2001 From: FluffyCube9343 Date: Mon, 14 Nov 2022 18:18:12 -0500 Subject: [PATCH] partitioned dropdowns among html files --- app.py | 2 +- templates/base.html | 93 +------------------------------------------- templates/drop1.html | 22 +++++++++++ templates/drop2.html | 20 ++++++++++ templates/drop3.html | 20 ++++++++++ 5 files changed, 65 insertions(+), 92 deletions(-) create mode 100644 templates/drop1.html create mode 100644 templates/drop2.html create mode 100644 templates/drop3.html diff --git a/app.py b/app.py index daa19a7..8c216e7 100644 --- a/app.py +++ b/app.py @@ -16,7 +16,7 @@ css.build() def homepage(): return render_template("index.html") -@app.route("/base.html", methods =["GET", "POST"]) +@app.route("/sendData", methods =["GET", "POST"]) def sendData(): rot = request.form.get("rot") diff --git a/templates/base.html b/templates/base.html index 8ba15e3..9c8866e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -22,97 +22,8 @@
diff --git a/templates/drop1.html b/templates/drop1.html new file mode 100644 index 0000000..69ece47 --- /dev/null +++ b/templates/drop1.html @@ -0,0 +1,22 @@ + diff --git a/templates/drop2.html b/templates/drop2.html new file mode 100644 index 0000000..a04cf80 --- /dev/null +++ b/templates/drop2.html @@ -0,0 +1,20 @@ + diff --git a/templates/drop3.html b/templates/drop3.html new file mode 100644 index 0000000..7b6ebcb --- /dev/null +++ b/templates/drop3.html @@ -0,0 +1,20 @@ +