diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2025-01-06 03:18:31 +0000 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2025-01-06 03:18:31 +0000 |
commit | aed5df50520565fe5f3ce9e9f62977c655f9b58b (patch) | |
tree | 2a3bd7fdcd769d8b5c61a3248d27780c595ae4a3 | |
parent | dd8037abe7898ce120007b2a4f5fc3d96d20340b (diff) |
Fix halfnarps new javascript
-rw-r--r-- | static/halfnarp.js | 4 | ||||
-rw-r--r-- | static/index.html | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/static/halfnarp.js b/static/halfnarp.js index 878f3ab..b7f4a45 100644 --- a/static/halfnarp.js +++ b/static/halfnarp.js | |||
@@ -8,7 +8,7 @@ function toggle_grid(whichDay) { | |||
8 | } | 8 | } |
9 | 9 | ||
10 | function toggle_corr_mode() { | 10 | function toggle_corr_mode() { |
11 | if (!document.body.classList.contains('correlate')) | 11 | if (!document.body.classList.contains('correlate')) { |
12 | document.body.classList.remove('all-tracks', 'languages', 'classifiers'); | 12 | document.body.classList.remove('all-tracks', 'languages', 'classifiers'); |
13 | document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', '')); | 13 | document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', '')); |
14 | } | 14 | } |
@@ -481,7 +481,7 @@ function mark_corr(eid) { | |||
481 | if (!all_votes) return; | 481 | if (!all_votes) return; |
482 | 482 | ||
483 | /* Reset correlation markers */ | 483 | /* Reset correlation markers */ |
484 | document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', ''); | 484 | document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', '')); |
485 | 485 | ||
486 | /* Get index of reference event id */ | 486 | /* Get index of reference event id */ |
487 | var eoff = all_votes.event_ids.indexOf(eid); | 487 | var eoff = all_votes.event_ids.indexOf(eid); |
diff --git a/static/index.html b/static/index.html index 2e93fb3..bb680d1 100644 --- a/static/index.html +++ b/static/index.html | |||
@@ -3,11 +3,11 @@ | |||
3 | <head> | 3 | <head> |
4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
5 | <title>halfnarp web scheduling helper app</title> | 5 | <title>halfnarp web scheduling helper app</title> |
6 | <link rel="stylesheet" href="/static/style_38c3.css"> | 6 | <link rel="stylesheet" href="style_38c3.css"> |
7 | <link rel="stylesheet" href="/static/style_38c3_tables.css"> | 7 | <link rel="stylesheet" href="style_38c3_tables.css"> |
8 | <script src="/static/jquery-3.7.1.min.js"></script> | 8 | <script src="jquery-3.7.1.min.js"></script> |
9 | <script src="/static/jquery.qrcode.min.js"></script> | 9 | <script src="jquery.qrcode.min.js"></script> |
10 | <script src="/static/halfnarp.js"></script> | 10 | <script src="halfnarp.js"></script> |
11 | <script> | 11 | <script> |
12 | $( document ).ready(function() { do_the_halfnarp(); }); | 12 | $( document ).ready(function() { do_the_halfnarp(); }); |
13 | </script> | 13 | </script> |