File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ <h2 class = "header" align = "center" style = "color:white;">Select Your Charact
21
21
< div id = "level-selection " align = "center ">
22
22
< h2 class = "header " align = "center " style = "color:white; "> Select Your Level</ h2 >
23
23
< p id = "level-counter "> Level: 1</ p > < br />
24
- < button id ="level-down " type ="button " style ="font-size:40px; "> -</ button >
24
+ < button id ="level-down " class = " at-min " type ="button " style ="font-size:40px; "> -</ button >
25
25
< button id ="level-up " type ="button " style ="font-size:40px; "> +</ button > < br />
26
26
</ div > < br />
27
27
< button id = "confirm-character-button " class = "button tooltip not-without-more-selected " type ="button " align = "center " title = "Must Select A Character "> Confirm Character</ button >
Original file line number Diff line number Diff line change @@ -2353,13 +2353,21 @@ levelUp.onclick = () => {
2353
2353
if ( levelCount < 9 ) {
2354
2354
levelCount ++
2355
2355
levelCounter . innerHTML = "Level: " + levelCount ;
2356
+ levelDown . classList . remove ( "at-min" ) ;
2357
+ if ( levelCount === 9 ) {
2358
+ levelUp . classList . add ( "at-max" ) ;
2359
+ }
2356
2360
}
2357
2361
}
2358
2362
2359
2363
levelDown . onclick = ( ) => {
2360
2364
if ( levelCount > 1 ) {
2361
2365
levelCount --
2362
2366
levelCounter . innerHTML = "Level: " + levelCount ;
2367
+ levelUp . classList . remove ( "at-max" ) ;
2368
+ if ( levelCount === 1 ) {
2369
+ levelDown . classList . add ( "at-min" ) ;
2370
+ }
2363
2371
}
2364
2372
}
2365
2373
You can’t perform that action at this time.
0 commit comments