This commit is contained in:
Turtle committed 2025-12-31 14:47:01 +01:00
1 parent b4aa7bb628
commit 6d4cb4edbb
5 files changed
+23 -15

No files matched your search

+9 -3
View File
@@ -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" });
}
+1
View File
@@ -134,6 +134,7 @@ overlay {
align-items: center;
display: flex;
flex-direction: row;
z-index: 1;
}
.header_bar_1 > div {
display: table-cell;
+2 -1
View File
@@ -103,7 +103,8 @@ function _main_events() {
});
}
}
_main_events();
setTimeout(_main_events, 0);
/* ----------- couch db ----------- */
+6 -7
View File
@@ -45,14 +45,14 @@ setUserData(couchDB);
<script>
const params = new URLSearchParams(window.location.search);
const courseId = params.get("course");
const params = getURLArgsMap();
const courseId = params["course"];
if (!courseId) {
console.error("Keine courseId in der URL");
if (!courseId) {
console.error("Keine courseId in der URL");
}
const qrCodeUrl = `${window.location.origin}/student/umfrage?course=${courseId}`;
const qrCodeUrl = `${window.location.origin}/student/umfrage.html?course=${courseId}`;
new QRCode(document.getElementById("qrCode"), {
text: qrCodeUrl,
@@ -64,13 +64,12 @@ setUserData(couchDB);
accesCodeElem.innerText = "Code: " + courseId;
async function AnsichtZeigen() {
const liveButton = document.getElementById("liveButton")
liveButton.style.display = "none";
const questionList = document.getElementById("questionCards");
const courseInfo = await couchDB.get("course:" + courseId)
const courseInfo = await couchDB.get("course:" + courseId);
let index = 0;
for(const question of courseInfo.questions) {
const overlayId = `qOver${index}`
+5 -4
View File
@@ -15,7 +15,7 @@ setUserData(couchDB);
<title>Übersicht</title>
</head>
<body>
<div class="header_bar_1">
<div class="header_bar_1">
<div style="font-weight: bold;">
Meine Kurse
</div>
@@ -95,7 +95,7 @@ button.auswertung:hover {
.course-card {
position: relative;
width: 100%;
width: 80%;
min-height: 300px;
padding: 16px;
background: var(--accent_color_bg_o);
@@ -184,6 +184,7 @@ button.auswertung:hover {
display: flex;
flex-direction: column;
gap: 15px;
align-items: center;
}
.createCourse {
@@ -268,7 +269,7 @@ async function setCourseView() {
const card = document.createElement("div");
card.className = "course-card";
card.innerHTML = `
<div class="course-title">${course.title}</div>
@@ -276,7 +277,7 @@ async function setCourseView() {
${course.description}
</div>
<button class="action start" onclick='location.href = "./kursAnzeige.html?course=" + "${courseId}"'>
<button class="action start" onclick='location.href = "./kursAnzeige.html?user=${userData.name},course=${courseId}";'>
Umfrage Starten
</button>