-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdash.js
29 lines (27 loc) · 937 Bytes
/
dash.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
let getBack = JSON.parse(localStorage.getItem('Customer'))
let CurIndex = JSON.parse(localStorage.getItem('cur'))
console.log(CurIndex)
const dis =()=>{
disname.innerHTML = `
${getBack[CurIndex].username}
`
display.innerHTML = `
${getBack[CurIndex].firstname}
`
balance.innerHTML = `
${getBack[CurIndex].balance}
`
accNO.innerHTML = `${getBack[CurIndex].acctNumber
}`
trans.innerHTML = `${getBack[CurIndex].totaltransfer}`
withdran.innerHTML = `${getBack[CurIndex].totalwithdraw
}`
deposi.innerHTML = `${getBack[CurIndex].totaldeposit}`
receive.innerHTML = `${getBack[CurIndex].totalreceived}`
Stau.innerHTML = `${getBack[CurIndex].transactionHistory[CurIndex].status}`
Amount.innerHTML = `${getBack[CurIndex].transactionHistory[CurIndex].Amount}`
Types.innerHTML = `${getBack[CurIndex].transactionHistory[CurIndex].type}`
}
console.log(getBack[CurIndex].username)
dis()
console.log(getBack[CurIndex].pin);