g6.2
This commit is contained in:
1 parent
f5704e87df
commit
96594641dc
11 files changed
+143
-109
No files matched your search
@@ -18,7 +18,7 @@
|
||||
<body>
|
||||
<div class="header_bar_1">
|
||||
<div>
|
||||
<button onclick="location.href = './uebersicht.html?user=' + userData.name;" class="back">Meine
|
||||
<button onclick="location.href = './uebersicht.html" class="back">Meine
|
||||
Kurse</button>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -208,7 +208,7 @@ async function startSurvey() {
|
||||
users[userData.name].courses.push(code);
|
||||
}
|
||||
await couchDB.set("users", users);
|
||||
location.href = "./umfrage.html?user=" + userData.name + ",course=" + code;
|
||||
location.href = "./umfrage.html?course=" + code;
|
||||
} else {
|
||||
alert("Umfrage nicht gefunden!");
|
||||
}
|
||||
@@ -229,7 +229,7 @@ async function setCourseView() {
|
||||
card.addEventListener("click", (e) => {
|
||||
if (e.target.closest("button")) return;
|
||||
location.href =
|
||||
"./kursAnzeige.html?user=" + userData.name + ",course=" + courseId;
|
||||
"./kursAnzeige.html?course=" + courseId;
|
||||
});
|
||||
|
||||
const surveyUrl = (card.innerHTML = `
|
||||
@@ -240,7 +240,7 @@ async function setCourseView() {
|
||||
</div>
|
||||
|
||||
${isExpired ? '': `
|
||||
<button class="action start" onclick='location.href = "./umfrage.html?user=${userData.name},course=${courseId.trim()}";'>
|
||||
<button class="action start" onclick='location.href = "./umfrage.html?course=${courseId.trim()}";'>
|
||||
Umfrage Starten
|
||||
</button>`
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ async function updateCourseAnswer(answer) {
|
||||
return kurs;
|
||||
}
|
||||
function close_page() {
|
||||
location.href = "./uebersicht.html?user=" + userData.name;
|
||||
location.href = "./uebersicht.html";
|
||||
}
|
||||
|
||||
function createNavBar(pos) {
|
||||
@@ -287,7 +287,7 @@ async function onFinishEva() {
|
||||
}
|
||||
}
|
||||
async function onEndEvent() {
|
||||
location.href = "./uebersicht.html?user=" + userData.name;
|
||||
location.href = "./uebersicht.html";
|
||||
}
|
||||
|
||||
(async () => {
|
||||
|
||||
Reference in new issue
Block a user