File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ const resultText = document.getElementById("result"); //result output text
66let total = 0 ; //set total to 0
77let diceRolls = [ ] ; //set list of dice rolls to empty list
88diceModeSelection . addEventListener ( "click" , ( ) => {
9+ //when dice mode selection button is clicked
910 if ( diceModeSelection . value === "custom" ) {
10- numberOfSidesInput . disabled = false ;
11+ //if dice mode selection value is custom mode
12+ numberOfSidesInput . disabled = false ; //enable number of sides input
1113 } else {
12- numberOfSidesInput . disabled = true ;
14+ //if dice mode selection value is normal mode
15+ numberOfSidesInput . disabled = true ; //disable number of sides input
1316 }
1417} ) ;
1518rollDiceButton . addEventListener ( "click" , ( ) => {
You can’t perform that action at this time.
0 commit comments