Skip to content

Commit

Permalink
website/js: add .is-hidden-with-js class that is hidden when javascri…
Browse files Browse the repository at this point in the history
…pt is enabled
  • Loading branch information
Wessie committed Feb 26, 2024
1 parent c102fad commit 822df64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ htmx.on('htmx:load', (event) => {
document.querySelectorAll(".is-hidden-without-js").forEach((elt) => {
elt.classList.remove("is-hidden-without-js");
});
// hide any elements that want to be hidden if there is javascript
document.querySelectorAll(".is-hidden-with-js").forEach((elt) => {
elt.classList.add("is-hidden")
});
// update any progress or times
updateTimes();
updateProgress();
Expand Down

0 comments on commit 822df64

Please sign in to comment.