-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage2.html
181 lines (166 loc) · 6.17 KB
/
page2.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body class="d-none" onload="getAccounts()">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
</ul>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="custom-toggler-icon">
<img src="images/menu.svg" />
</span>
</button>
<a class="navbar-brand" href="#">Hello, Tim Smith</a>
</nav>
<div class="section section-top-banner">
<div class="container-fluid p-0">
<div class="row">
<div class="col p-0">
<div class="hero-banner mr-2">accounts</div>
</div>
</div>
</div>
</div>
<div class="section section-2 pb-0 mb-0">
<div class="container">
<div class="row">
<div class="col">
<div class="discribe">
Please select which account you would like rewards to be
deposited in to.
</div>
</div>
</div>
</div>
</div>
<div class="section account-col mt-5">
<div class="container">
<div class="row">
<div id="dvAccounts" class="col">
<div class="card account mt-2">
<div class="card-body">
<div class="card-title">
<div class="icon">
<img class="profile mr-2" width="20px" src="images/user.png" />Home Loan
</div>
</div>
<div class="acc-detail">
<span>Available Balance</span><span class="ammount">$7,150</span>
</div>
</div>
</div>
<hr>
<div class="card account mt-2">
<div class="card-body">
<div class="card-title">
<div class="icon">
<img class="profile mr-2" width="20px" src="images/user.png" />Saving account
</div>
<span class="acc-no">(1022)</span>
</div>
<div class="acc-detail">
<span>Available Balance</span><span class="ammount">$32,150</span>
</div>
<div class="acc-detail">
<span>Current Balance</span><span class="ammount">$31,145</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="icon2 d-block text-center">
<img class="profile mr-2 mt-3" width="50px" src="images/notice.JPG" />
</div>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">We care about your privacy and data security.
</h4>
</div>
<div class="modal-body">
<p>We use personal data such as transaction history, your location information and demographics to provide you
with a personalized experience.
.</p>
</div>
<div class="p-2">
<a class="btn w-100 btn-primary d-block" href="page4-old.html">Yes I agree</a>
<button type="button" class="mt-2 btn w-100 btn-secondary d-block" data-dismiss="modal">No Thanks</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col p-5">
<div class="m-auto text-center">
<button class="proceed-black w-100 btn btn-primary" data-toggle="modal"
data-target="#myModal">PROCEED</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>
<script>
const getAccounts = async () => {
const response = await fetch('https://pp-stage-web.azurewebsites.net/v1/nab/user-account-details');
const data = await response.json();
var accountsHtml = ``;
for (let i = 0; i < data.length; i++) {
accountsHtml += `
<div class="card account mt-2">
<div class="card-body">
<div class="card-title">
<div class="icon">
<img
class="profile mr-2"
width="20px"
src="images/user.png"
/>${data[i].displayName}
</div>
</div>
<div class="acc-detail">
<span>Available Balance</span
><span class="ammount">${data[i].availableBalance} AUD</span>
</div>
<div class="acc-detail">
<span>Current Balance</span
><span class="ammount">${data[i].availableBalance} AUD</span>
</div>
</div>
</div>
<hr>`;
}
var dvAccounts = document.getElementById('dvAccounts');
dvAccounts.innerHTML = accountsHtml;
var body = document.getElementsByTagName('body');
$(body).removeClass('d-none');
}
</script>
</body>
</html>