diff options
Diffstat (limited to '')
-rw-r--r-- | static/main.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/main.js b/static/main.js index c5c4cbb..3fc1cb0 100644 --- a/static/main.js +++ b/static/main.js @@ -50,6 +50,10 @@ socket.addEventListener("open", function() { document.querySelectorAll(".before-connection").forEach(c => { c.style.display = "none" }) + let courseIDs = mar[1].split(",") + for (let i = 0; i < courseIDs.length; i++) { + document.getElementById(`tick${ courseIDs[i] }`).checked = true + } break case "U": /* unauthenticated */ /* TODO: replace this with a box on screen */ |