Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fixed score span going out of rating bar #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevah5 committed Feb 10, 2022
1 parent 87a6902 commit a5593f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/gamelogic.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function updateRatingBar(board){
}else if(score[0] == 10){
height = "100%";
}
document.querySelector(".rating .score span#score").style.height = height;
document.querySelector(".rating .score span#score").style.height = score[0] != -10 ? height : "20px";
document.querySelector(".rating .score span#score").innerHTML = score[0];
document.querySelector(".rating .scorebar div.aiscore").style.height = height;
}

0 comments on commit a5593f5

Please sign in to comment.