Skip to content

Commit

Permalink
done! basic function done
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHubert committed Jul 18, 2024
1 parent aa4a26b commit 1f0fe9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yoseph/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ let SavingsSubtract = document.querySelector(`#savings-expense-amount`).value
let StupidSubtract = document.querySelector(`#stupid-expense-amount`).value
let PayAmount = document.querySelector(`#pay-amount`).value

document.querySelector(`#stupid-total`).innerHTML = 0
document.querySelector(`#tithe-total`).innerHTML = 0
document.querySelector(`#savings-total`).innerHTML = 0

document.querySelector(`#savings-expense-enter`).addEventListener(`click`, () => {
SavingsSubtract = document.querySelector(`#savings-expense-amount`).value
Savings = Savings - SavingsSubtract
Expand Down Expand Up @@ -63,4 +67,5 @@ document.querySelector(`#stupid-expense-enter`).addEventListener(`click`, () =>
})

document.querySelector(`#title-clear`).addEventListener(`click`, () => {
document.querySelector(`#tithe-total`).innerHTML = 0
})

0 comments on commit 1f0fe9c

Please sign in to comment.