Skip to content

Commit

Permalink
added back button
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHubert committed Aug 1, 2024
1 parent 3db6309 commit 7c26439
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yoseph/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ document.querySelector(`#savings-expense-enter`).addEventListener(`click`, () =>
document.querySelector(`#savings-total`).innerHTML = Savings
document.querySelector(`#savings-expense-amount`).value = ''
const savingsHistoryItem = {
description: document.querySelector(`#savings-expense-description`).value,
description: document.querySelector(`#savings-expense-description`).value,
amount: SavingsSubtract,
}
History.push(savingsHistoryItem)
Expand Down Expand Up @@ -90,4 +90,9 @@ document.querySelector(`#tithe-clear`).addEventListener(`click`, () => {
document.querySelector(`#view-history`).addEventListener(`click`, () => {
document.querySelector(`#screen-main`).classList.add(`hide`)
document.querySelector(`#screen-history`).classList.remove(`hide`)
})

document.querySelector(`#back`).addEventListener(`click`, () => {
document.querySelector(`#screen-main`).classList.remove(`hide`)
document.querySelector(`#screen-history`).classList.add(`hide`)
})

0 comments on commit 7c26439

Please sign in to comment.