Skip to content

Commit

Permalink
Match number now increases
Browse files Browse the repository at this point in the history
  • Loading branch information
JBakks committed Feb 29, 2024
1 parent 25894db commit 6386d70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/5K24SPARK.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,13 @@ document.addEventListener("DOMContentLoaded", function () {
inputs.forEach(input => {
// Reset text inputs to "0"
if (input.type === 'text') {
input.value = '0';
if(input.id === 'match#'){
const matchNum = +input.value;
input.value = matchNum+1;

}else{
input.value = '0';
}
// Uncheck radio buttons and checkboxes
} else if (input.type === 'checkbox' || input.type === 'radio') {
input.checked = false;
Expand Down

0 comments on commit 6386d70

Please sign in to comment.