From 547dfa0638af40b4f654c6f192fdb3a04cfa5c2f Mon Sep 17 00:00:00 2001 From: fingadumbledore Date: Wed, 21 Dec 2022 16:57:04 +0100 Subject: [PATCH] some changes --- main.py | 5 +++++ static/css/style.css | 2 +- static/js/general.js | 2 ++ templates/changeSession.html | 27 +++++++++++++++++++++++++++ templates/createSession.html | 9 +++++++-- templates/login.html | 2 +- 6 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 templates/changeSession.html diff --git a/main.py b/main.py index 4f6e098..9fdf616 100644 --- a/main.py +++ b/main.py @@ -342,6 +342,11 @@ def passwd(): log_server("called /passwd") return render_template("passwd.html") +@app.route("/change") +def change(): + log_server("called /change") + return render_template("changeSession.html") + @app.route("/create_session") def create_session(): log_server("called /create_session") diff --git a/static/css/style.css b/static/css/style.css index 03dc34d..7cffeae 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -85,7 +85,7 @@ a { } - input[type=text], input[type=password] input[type=time] input[type=date]{ + input[type=text], input[type=password] input[type=time]{ width: 30%; margin: 8px 0; padding: 12px 20px; diff --git a/static/js/general.js b/static/js/general.js index 9986717..33390a6 100644 --- a/static/js/general.js +++ b/static/js/general.js @@ -18,3 +18,5 @@ let name = sessionStorage.getItem("name"); document.getElementById("user").innerHTML = name; + + diff --git a/templates/changeSession.html b/templates/changeSession.html new file mode 100644 index 0000000..537e8b3 --- /dev/null +++ b/templates/changeSession.html @@ -0,0 +1,27 @@ + + + + + + + + Change Session + + +
+

Du bist bereits in Session:

+

+

Möchtest du diese Verlassen, und in eine andere Session?

+ + + + + + + +
+ + \ No newline at end of file diff --git a/templates/createSession.html b/templates/createSession.html index 64a506a..e976777 100644 --- a/templates/createSession.html +++ b/templates/createSession.html @@ -11,10 +11,10 @@