Skip to content

Commit

Permalink
autonomy still persisting
Browse files Browse the repository at this point in the history
  • Loading branch information
deilann committed Sep 30, 2023
1 parent 2bcde3c commit 5ab4c16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions k-graphing/kApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,35 +39,36 @@ function populate() {
}

function kPlusPlus() {
autonomy.innerHTML = ''

if (k > 49 ) {
choiceHead.innerHTML += ' NO '
} else {
k.plusPlus()
kView.innerHTML = k
buttonContainer.textContent = ''
autonomy.innerHTML = ''
populate()
}
}

function kMinusMinus() {
autonomy.innerHTML = ''
if (k < 2) {
choiceHead.innerHTML += ' NO '
} else {
k.minusMinus()
kView.innerHTML = k
buttonContainer.textContent = ''
autonomy.innerHTML = ''
populate()
}
}

function kZero() {
autonomy.innerHTML = ''
k.reset()
choiceHead.innerHTML = 'Choose Wisely'
kView.innerHTML = k
buttonContainer.textContent = ''
autonomy.innerHTML = ''
populate()

}
Expand Down

0 comments on commit 5ab4c16

Please sign in to comment.