Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi5455 committed Jul 22, 2024
1 parent 60923f7 commit 9ed5c92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ function addExpense(id,date,name,amount,groupName,description){
newExpense.querySelector('#label2').textContent="₹"+amount;
newExpense.querySelector('#label3').textContent=description;
newExpense.querySelector('#label4').textContent=groupName;
newExpense.querySelector('#expenseFooter').textContent=date;
let date1=date.split(' ');
let date2=date1[0]+" "+date1[1].substring(0,3)+" "+date1[2];
newExpense.querySelector('#expenseFooter').textContent=date2;
container2.insertBefore(newExpense,lastElement);
let expenses=document.getElementsByClassName('expense');
for(let i=0;i<expenses.length;i++) {
Expand Down

0 comments on commit 9ed5c92

Please sign in to comment.