Skip to content

Commit 147ed38

Browse files
authored
Add files via upload
1 parent 85e4491 commit 147ed38

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

activeTracker1-1.png

1.02 KB
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 class = "header" align = "center" style = "color:white;">Select Your Charact
2121
<div id = "level-selection" align = "center">
2222
<h2 class = "header" align = "center" style= "color:white;">Select Your Level</h2>
2323
<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>
2525
<button id="level-up" type ="button" style="font-size:40px;">+</button><br/>
2626
</div><br/>
2727
<button id = "confirm-character-button" class = "button tooltip not-without-more-selected" type="button" align = "center" title = "Must Select A Character">Confirm Character</button>

script.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,13 +2353,21 @@ levelUp.onclick = () => {
23532353
if(levelCount<9){
23542354
levelCount++
23552355
levelCounter.innerHTML = "Level: "+levelCount;
2356+
levelDown.classList.remove("at-min");
2357+
if(levelCount === 9){
2358+
levelUp.classList.add("at-max");
2359+
}
23562360
}
23572361
}
23582362

23592363
levelDown.onclick = () =>{
23602364
if(levelCount>1){
23612365
levelCount--
23622366
levelCounter.innerHTML = "Level: "+levelCount;
2367+
levelUp.classList.remove("at-max");
2368+
if(levelCount === 1){
2369+
levelDown.classList.add("at-min");
2370+
}
23632371
}
23642372
}
23652373

0 commit comments

Comments
 (0)