Skip to content

Commit

Permalink
Level 2
Browse files Browse the repository at this point in the history
  • Loading branch information
learning-thing committed Jul 7, 2024
1 parent 8032fe3 commit 700c81e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ console.log(Number(document.cookie.valueOf("clicks").split("=")[1]));
console.log(x);

document.getElementById("LastKat").innerHTML = "Last Kat level: " + (clickCount);
if (clickCount > 12) {
if (clickCount > 12 && clickCount < 100) {
document.getElementById("progbar").style.width = (clickCount) + "%";
} else {
document.getElementById("progbar").style.width = 100 + "%";
document.getElementById("progbar").style.height = (clickCount-100) + "px";

}


Expand Down Expand Up @@ -41,14 +45,17 @@ function ClickMeFunc() {
document.getElementById("clickme").style.marginLeft = ((x+1)*20) + "px";
document.getElementById("progbar").innerHTML = "Progress: " + (clickCount) + "%";

if (clickCount > 12) {
if (clickCount > 12 && clickCount < 100) {
document.getElementById("progbar").style.width = (clickCount) + "%";
} else {
if (clickCount > 100) {
document.getElementById("progbar").style.height = (clickCount-100) + "px";
}
}
if (clickCount == 100) {
winner();
}


//Click Power

if (document.getElementById("boostCode").value == "car") {
Expand Down

0 comments on commit 700c81e

Please sign in to comment.