diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-05-28 15:26:23 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-05-28 15:26:23 +0200 |
| commit | 367954fe15dcdd467e258b7228b139e4c8b02068 (patch) | |
| tree | 83960407467f9d6b723b5e92c03b918165a407b1 | |
| parent | f9a9fa15d6d61eb9730183193ce8af29bdfc17e7 (diff) | |
| download | bycs-sol-367954fe15dcdd467e258b7228b139e4c8b02068.tar.gz bycs-sol-367954fe15dcdd467e258b7228b139e4c8b02068.zip | |
cockpit: only show student-content if a student is selected
| -rw-r--r-- | cockpit/cockpit.html | 2 | ||||
| -rw-r--r-- | cockpit/js/cockpit.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cockpit/cockpit.html b/cockpit/cockpit.html index c80f7e0..1ba57c9 100644 --- a/cockpit/cockpit.html +++ b/cockpit/cockpit.html @@ -28,7 +28,7 @@ </p> </div> -<div id="student-content"> +<div id="student-content" style="display: none"> <div id="student-info"> <div id="student-info-top" class="student-info-banner"> <img id="student-info-icon"></img> diff --git a/cockpit/js/cockpit.js b/cockpit/js/cockpit.js index 3b54f67..f732cf0 100644 --- a/cockpit/js/cockpit.js +++ b/cockpit/js/cockpit.js @@ -222,6 +222,8 @@ function updateStudentInfo() { renderGraduationStickers(student.graduation, document.getElementById("student-info-stickers")); renderGraduationBonus(student.graduation, document.getElementById("student-info-stickers")); } + + document.getElementById("student-content").style.display = "block"; } function renderGraduationLevel(graduation, node) { |
