small commit
This commit is contained in:
1 parent
753ff9b4d9
commit
1a3bdbf94f
1 file changed
+23
-4
+23
-4
@@ -13,11 +13,30 @@ setUserData(couchDB);
|
|||||||
<title>Übersicht</title>
|
<title>Übersicht</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="header_bar_1">
|
||||||
|
<div>
|
||||||
|
test1
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
test2
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button class="profile" onclick='showOverlay("miniProfile")'>
|
||||||
|
<overlay id="miniProfile">
|
||||||
|
hello
|
||||||
|
</overlay>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="header_bar_1_placeholder"></div>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
<!--Implementiere hier dein Zeugs-->
|
<!--Implementiere hier dein Zeugs-->
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.edit_course {
|
.edit_course {
|
||||||
min-width: 70% !important;
|
min-width: 70% !important;
|
||||||
@@ -86,7 +105,7 @@ setUserData(couchDB);
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<button onclick="showEditCourse('bucket')">Open Course:Bucket</button>
|
<button onclick="showEditCourse('bucket')">Open Course:Bucket</button> <!--show overlay-->
|
||||||
|
|
||||||
<overlay id="edit_course">
|
<overlay id="edit_course">
|
||||||
<input placeholder="Kursname" style="width: calc(100% - 50px);"><br><br>
|
<input placeholder="Kursname" style="width: calc(100% - 50px);"><br><br>
|
||||||
@@ -100,7 +119,7 @@ setUserData(couchDB);
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
async function showEditCourse(name) {
|
async function showEditCourse(name) { //
|
||||||
const data = await couchDB.get("course:" + name);
|
const data = await couchDB.get("course:" + name);
|
||||||
if (data.owner != userData.name) {
|
if (data.owner != userData.name) {
|
||||||
console.error("User is not author");
|
console.error("User is not author");
|
||||||
@@ -133,7 +152,7 @@ function createNewEvaluation() {
|
|||||||
"title": "", "type": "text"
|
"title": "", "type": "text"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function createEvaluation(question) {
|
function createEvaluation(question) {
|
||||||
return `
|
return `
|
||||||
<div class="evaluation">
|
<div class="evaluation">
|
||||||
<button onclick="this.parentElement.remove();">🗑</button>
|
<button onclick="this.parentElement.remove();">🗑</button>
|
||||||
|
|||||||
Reference in new issue
Block a user