From fd15546c012e42867f9b052433f968d7cd2f27da Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 6 Oct 2020 18:24:22 +0200 Subject: Added teachers FINALLY GOT A LIST... --- db.js | 2 +- poll/public/style.css | 2 -- quotes/public/index.html | 2 ++ quotes/public/script.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db.js b/db.js index 193daa8..eea9fae 100644 --- a/db.js +++ b/db.js @@ -37,7 +37,7 @@ class DB { await this.query("INSERT INTO types (name) VALUES ('teacher'), ('pupil')"); await this.query( - "INSERT INTO class (name) VALUES ('TGM13.1'), ('TGM13.2'), ('TGTM13.1'), ('TGI13.1'), ('TGI13.2')" + "INSERT INTO class (name) VALUES ('TGM13.1'), ('TGM13.2'), ('TGTM13.1'), ('TGI13.1'), ('TGI13.2'), ('teacher')" ); fs.readFile(__dirname + "/poll.txt", "utf8", (err, data) => { diff --git a/poll/public/style.css b/poll/public/style.css index 8ef7b57..9861f9d 100644 --- a/poll/public/style.css +++ b/poll/public/style.css @@ -14,8 +14,6 @@ div { main { position: absolute; - max-height: 80%; - overflow-y: scroll; width: 30%; left: 50%; top: 50%; diff --git a/quotes/public/index.html b/quotes/public/index.html index 343f5a3..8853ee4 100644 --- a/quotes/public/index.html +++ b/quotes/public/index.html @@ -41,6 +41,8 @@
+ + diff --git a/quotes/public/script.js b/quotes/public/script.js index a681e6d..5f40a27 100644 --- a/quotes/public/script.js +++ b/quotes/public/script.js @@ -44,7 +44,7 @@ fetch("api/list") .then((response) => response.json()) .then((response) => appendQuote(response)); -const classes = ["TGI13.1", "TGI13.2", "TGM13.1", "TGM13.2", "TGTM13.1"]; +const classes = ["TGI13.1", "TGI13.2", "TGM13.1", "TGM13.2", "TGTM13.1", "teacher"]; classes.forEach((clazz) => { document.getElementById("open_" + clazz).addEventListener("click", () => { const ul = document.getElementById(clazz); -- cgit v1.2.3