aboutsummaryrefslogtreecommitdiff
path: root/cockpit/js
diff options
context:
space:
mode:
Diffstat (limited to 'cockpit/js')
-rw-r--r--cockpit/js/cockpit.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/cockpit/js/cockpit.js b/cockpit/js/cockpit.js
index 0d989da..fb3b539 100644
--- a/cockpit/js/cockpit.js
+++ b/cockpit/js/cockpit.js
@@ -144,7 +144,7 @@ function updateStudentInfo() {
() => pointClickHandler("red"));
}
- renderGraduationLevel(student.graduation, document.getElementById("student-info-level"));
+ renderGraduationLevel(student.graduation);
// renderGraduationStickers(student.graduation, document.getElementById("student-info-stickers"));
// renderGraduationBonus(student.graduation, document.getElementById("student-info-stickers"));
@@ -155,8 +155,11 @@ function updateStudentInfo() {
document.getElementById("student-content").style.display = "block";
}
-function renderGraduationLevel(graduation, node) {
- node.innerHTML = graduation.getLevelName();
+function renderGraduationLevel(graduation) {
+ const label = document.getElementById("student-info-level");
+ label.innerHTML = graduation.getLevelName();
+ const icon = document.getElementById("student-level-icon");
+ icon.src = graduation.getIcon();
}
// function renderGraduationStickers(graduation, node) {