Skip to content

Commit

Permalink
add: hide or show party selection file during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTJoe committed Aug 16, 2024
1 parent a29039b commit 15b5989
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
@import url("./generic.css");
@import url("./navigation.css");
@import url("./layout.css");
@import url("./dashboard.css");

7 changes: 6 additions & 1 deletion public/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ let spanID = document.getElementById("spanID");
window.onload = function onload() {
spanID.classList.add("hide");
role.addEventListener("change", function handler(evt) {
console.log(evt);
let choice = Number(role.options[role.selectedIndex].value);
if (choice === 2) {
spanID.classList.remove("hide");
} else {
spanID.classList.add("hide");
}
});
};
Empty file added public/js/index.js
Empty file.

0 comments on commit 15b5989

Please sign in to comment.