summaryrefslogtreecommitdiff
path: root/static/main.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* wsm.go, main.js: Display the user's selected courses on first runHEADv0.1.0masterRunxi Yu4 days1-0/+4
| | | | | It's done in the WebSocket routines rather than in the template maker because it's relatively easier to write the logic this way.
* main.js: Move connect(s) to the event listener directlyRunxi Yu5 days1-6/+2
|
* *: Change license to AGPL-3.0-or-laterRunxi Yu5 days1-21/+11
|
* main.js: Disable boxes when fullRunxi Yu5 days1-0/+8
|
* main.js: Fix the IRC-style message parserRunxi Yu5 days1-0/+4
| | | | | Previously, if it receives a message like "a b :c", it returns "["a", "b", "c "]" which is erroneous.
* index.html, main.js, ws.go: Enhance course selection rejection messageRunxi Yu6 days1-3/+7
|
* main.js: Handle "Y" (course selection approved)Runxi Yu6 days1-0/+4
|
* main.js: Handle number updatesRunxi Yu6 days1-0/+3
|
* main.js: Relocate a comment and remove a blank lineRunxi Yu6 days1-2/+1
|
* main.js: Add stub case "R" for course selection rejectedRunxi Yu6 days1-0/+5
|
* main.js: Comments should be /* */ rather than //Runxi Yu6 days1-2/+2
|
* main.js: Remove command "A" (authentication)Runxi Yu6 days1-3/+0
| | | | | Authentication is handled during the HTTP request that establishes the WebSocket connection since the cookie is passed there anyway.
* main.js: Set checkboxes to indeterminate after selectionRunxi Yu6 days1-1/+3
| | | | They should be set to "checked" only when a response to "Y" is received.
* main.js: event -> _event because it's unusedRunxi Yu7 days1-1/+1
|
* main.js: Fix spacing in array indicesRunxi Yu7 days1-6/+7
|
* main.js, style.css, index.html: Clear notice by JS instead of using noscriptRunxi Yu8 days1-0/+7
|
* index.html, main.js: Display message when connection is closedRunxi Yu11 days1-2/+11
| | | | Also fixed some CSS regressions
* main.js: Omit semicolonsRunxi Yu11 days1-36/+36
|
* main.js, eslint.config.js: Start using eslintRunxi Yu11 days1-41/+41
|
* main.js: Don't indent case in switchRunxi Yu11 days1-28/+28
|
* ws.go, main.js, index.html: Better WS documentation and structureRunxi Yu2024-09-161-4/+11
|
* ws.go: Split IRC-style messagesRunxi Yu2024-09-091-0/+3
|
* main.js, index.tmpl: Confirmation buttonRunxi Yu2024-09-081-0/+4
| | | | | In the future we shall the confirmation button to only work when all fields are correctly completed.
* main.js: More robust check handlingRunxi Yu2024-09-081-1/+15
|
* main.js: Send message whenever the checkbox changesRunxi Yu2024-09-081-0/+6
|
* main.js: Send HELLO, not BLOOPRunxi Yu2024-09-081-1/+1
|
* main.js: Slight reformat and code commentsRunxi Yu2024-09-081-0/+7
|
* main.js: Break after caseRunxi Yu2024-09-081-3/+2
| | | | | Go's switch statements break implicitly so I assumed it was the same in JavaScript, but JavaScript's case is actually just like C's.
* main.js: Fix WS url and consistently use automatic semicolon insertionRunxi Yu2024-09-081-8/+11
|
* *: Basic WebSocket connection may be established nowRunxi Yu2024-09-081-0/+57