From 6d4cb4edbbbe88fc2859380df558f6032295e3a2 Mon Sep 17 00:00:00 2001 From: Turtle <104490184+CodingTurtle2@users.noreply.github.com> Date: Wed, 31 Dec 2025 14:47:01 +0100 Subject: [PATCH] g4.0 --- help/data_xample.js | 12 +++++++++--- lib/basic.css | 1 + lib/basic.js | 3 ++- prof/kursAnzeige.html | 13 ++++++------- prof/uebersicht.html | 9 +++++---- 5 files changed, 23 insertions(+), 15 deletions(-) diff --git a/help/data_xample.js b/help/data_xample.js index 2ffd418..6a533e6 100644 --- a/help/data_xample.js +++ b/help/data_xample.js @@ -25,7 +25,7 @@ async function createTemp() { ], "role": "professor", "courses": [ - "weiche_ware" + "weiche_ware", "algebra", "geometrie" ] }, "narrator": { @@ -47,7 +47,7 @@ async function createTemp() { ], "role": "professor", "courses": [ - "bucket" + "bucket", "statistik" ] } }); @@ -125,6 +125,12 @@ async function createTemp() { } ], "start_date": "2025-12-23", - "expire_date": "2025-02-20" + "expire_date": "2026-02-20" }); + + + await couchDB.set("course:algebra", { "title": "Algebra", "description": "Grundlagen der algebraischen Konzepte.", "owner": "math-wizard", "questions": [ { "title": "Wie gut verstehen Sie die Grundlagen der Algebra?", "type": "text" }, { "title": "Bewerten Sie die Schwierigkeit algebraischer Aufgaben.", "type": "scala" } ], "result": [ ["Einfach, weil ...", 5], ["Schwierig, weil ...", 1] ], "result_history": [ { "date": "2025-12-28", "questions": [ { "title": "1", "type": "text" }, { "title": "2", "type": "scala" } ], "result": [ ["Einfach, weil ...", 5], ["Schwierig, weil ...", 1] ] } ], "start_date": "2025-12-26", "expire_date": "2025-02-25" }); + await couchDB.set("course:geometrie", { "title": "Geometrie", "description": "Erforschung geometrischer Figuren und Konzepte.", "owner": "geo-genius", "questions": [ { "title": "Wie sicher sind Sie im Umgang mit geometrischen Formen?", "type": "text" }, { "title": "Bewerten Sie die Komplexität geometrischer Aufgaben.", "type": "scala" } ], "result": [ ["Einfach, weil ...", 5], ["Schwierig, weil ...", 1] ], "result_history": [ { "date": "2025-12-29", "questions": [ { "title": "1", "type": "text" }, { "title": "2", "type": "scala" } ], "result": [ ["Einfach, weil ...", 5], ["Schwierig, weil ...", 1] ] } ], "start_date": "2025-12-24", "expire_date": "2025-03-15" }); + await couchDB.set("course:statistik", { "title": "Statistik", "description": "Grundlagen der statistischen Analyse und Interpretation.", "owner": "data-analyst", "questions": [ { "title": "Wie gut verstehen Sie statistische Methoden?", "type": "text" }, { "title": "Bewerten Sie die Schwierigkeit statistischer Analysen.", "type": "scala" } ], "result": [ ["Einfach, weil ...", 5], ["Schwierig, weil ...", 1] ], "result_history": [ { "date": "2025-12-30", "questions": [ { "title": "1", "type": "text" }, { "title": "2", "type": "scala" } ], "result": [ ["Einfach, weil ...", 5], ["Schwierig, weil ...", 1] ] } ], "start_date": "2025-12-25", "expire_date": "2025-04-10" }); + } \ No newline at end of file diff --git a/lib/basic.css b/lib/basic.css index 6aae4a2..1c22891 100644 --- a/lib/basic.css +++ b/lib/basic.css @@ -134,6 +134,7 @@ overlay { align-items: center; display: flex; flex-direction: row; + z-index: 1; } .header_bar_1 > div { display: table-cell; diff --git a/lib/basic.js b/lib/basic.js index e127477..b25f194 100644 --- a/lib/basic.js +++ b/lib/basic.js @@ -103,7 +103,8 @@ function _main_events() { }); } } -_main_events(); + +setTimeout(_main_events, 0); /* ----------- couch db ----------- */ diff --git a/prof/kursAnzeige.html b/prof/kursAnzeige.html index 9045a23..083d882 100644 --- a/prof/kursAnzeige.html +++ b/prof/kursAnzeige.html @@ -45,14 +45,14 @@ setUserData(couchDB);