From c3fcbeea0a8eafd5974ab35755ea07943166675a Mon Sep 17 00:00:00 2001 From: Andy Hubert Date: Thu, 18 Jul 2024 16:53:16 +0000 Subject: [PATCH] more stuff ignore this one --- yoseph/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yoseph/main.js b/yoseph/main.js index 2051800..a28c75b 100644 --- a/yoseph/main.js +++ b/yoseph/main.js @@ -36,17 +36,20 @@ document.querySelector(`#savings-expense-enter`).addEventListener(`click`, () => SavingsSubtract = document.querySelector(`#savings-expense-amount`).value Savings = Savings - SavingsSubtract document.querySelector(`#savings-total`).innerHTML = Savings + document.querySelector(`#savings-expense-amount`).value = '' }) document.querySelector(`#pay-enter`).addEventListener(`click`, () => { PayAmount = document.querySelector(`#pay-amount`).value PayAmount = Number(PayAmount) - Savings = Savings + PayAmount - document.querySelector(`#savings-total`).innerHTML = Savings document.querySelector(`#pay-amount`).value = '' }) document.querySelector(`#stupid-expense-enter`).addEventListener(`click`, () => { + StupidSubtract = document.querySelector(`#stupid-expense-amount`).value + Stupid = Stupid - StupidSubtract + document.querySelector(`#stupid-total`).innerHTML = Stupid + document.querySelector(`#stupid-expense-amount`).value = '' }) document.querySelector(`#title-clear`).addEventListener(`click`, () => {