Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrabowski authored Sep 10, 2018
1 parent 85e4491 commit 147ed38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Binary file added activeTracker1-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2 class = "header" align = "center" style = "color:white;">Select Your Charact
<div id = "level-selection" align = "center">
<h2 class = "header" align = "center" style= "color:white;">Select Your Level</h2>
<p id = "level-counter">Level: 1</p><br/>
<button id="level-down" type ="button" style="font-size:40px;">-</button>
<button id="level-down" class = "at-min" type ="button" style="font-size:40px;">-</button>
<button id="level-up" type ="button" style="font-size:40px;">+</button><br/>
</div><br/>
<button id = "confirm-character-button" class = "button tooltip not-without-more-selected" type="button" align = "center" title = "Must Select A Character">Confirm Character</button>
Expand Down
8 changes: 8 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2353,13 +2353,21 @@ levelUp.onclick = () => {
if(levelCount<9){
levelCount++
levelCounter.innerHTML = "Level: "+levelCount;
levelDown.classList.remove("at-min");
if(levelCount === 9){
levelUp.classList.add("at-max");
}
}
}

levelDown.onclick = () =>{
if(levelCount>1){
levelCount--
levelCounter.innerHTML = "Level: "+levelCount;
levelUp.classList.remove("at-max");
if(levelCount === 1){
levelDown.classList.add("at-min");
}
}
}

Expand Down

0 comments on commit 147ed38

Please sign in to comment.