g4.0
This commit is contained in:
1 parent
b4aa7bb628
commit
6d4cb4edbb
5 files changed
+23
-15
No files matched your search
@@ -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}`
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user