-
Notifications
You must be signed in to change notification settings - Fork 3
/
details.html
231 lines (222 loc) · 8.99 KB
/
details.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<!-- Copyright (c) 2021 Ruofan Chen, Samm Du, Nada Eldin, Shalev Lifshitz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>AutoDirect</title>
<!--[if IE
]><link rel="shortcut icon" href="assets/icons/favicon.ico"
/><![endif]-->
<link rel="apple-touch-icon" href="assets/icons/favicon_180.png" />
<link rel="icon" href="assets/icons/favicon_196.png" />
<meta name="theme-color" content="#36cf9b" />
<!-- Stylesheets -->
<link rel="stylesheet" href="css/minireset.min.css" />
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/details.css" />
<!-- Scripts -->
<script
type="text/javascript"
src="js/mustache-4.2.0.min.js"
defer
></script>
<script type="text/javascript" src="js/main.js" defer></script>
<script type="text/javascript" src="js/api.js" defer></script>
<script type="text/javascript" src="js/details.js" defer></script>
</head>
<body>
<main class="card border-thin">
<header>
<div class="region-dark go-back" onclick="goBack();">
<img
src="./assets/icons/arrow-back-min.svg"
alt="Go back"
/>
<h3>Return to your search</h3>
</div>
<div class="details-title">
<img
src="assets/icons/senso_logo_text_dark-min.svg"
alt="Senso.AI logo"
/>
<h1>AutoDirect</h1>
</div>
</header>
<nav>
<h2>Your loan offer details</h2>
</nav>
<div>
<aside>
<ul class="loan-offers" id="loanOffersContainer"></ul>
</aside>
<section
class="region-dark"
id="offerDetailsContainer"
></section>
</div>
</main>
<footer class="region-dark">
<div class="footer-spacer"></div>
<section class="license">
<article>
<p>
<b>
Copyright © 2021 Ruofan Chen, Samm Du, Nada
Eldin, Shalev Lifshitz
</b>
</p>
<p>
Licensed under the Apache License, Version 2.0 (the
"License"); you may not use this file except in
compliance with the License. You may obtain a copy of
the License at:
</p>
<p class="indented">
<a
href="https://www.apache.org/licenses/LICENSE-2.0"
target="_blank"
class="link-light"
rel="noopener"
>
https://www.apache.org/licenses/LICENSE-2.0
</a>
</p>
<p>
Unless required by applicable law or agreed to in
writing, software distributed under the License is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See
the License for the specific language governing
permissions and limitations under the License.
</p>
</article>
</section>
<aside class="attrib">
<div class="attrib-child">
<h3>Source code at:</h3>
<a
href="https://github.com/TLI-Group-1"
target="_blank"
rel="noopener"
>
<img
src="assets/icons/github_button-min.svg"
alt="GitHub logo"
class="btn-shifty"
/>
</a>
</div>
<div class="attrib-child">
<h3>Powered by:</h3>
<a href="https://senso.ai/" target="_blank" rel="noopener">
<img
src="assets/icons/senso_logo_text_light-min.svg"
alt="Senso.AI logo"
class="btn-shifty"
/>
</a>
</div>
</aside>
<div class="footer-spacer"></div>
</footer>
<!-- Mustache templates below; rendered in JavaScript -->
<script type="text/html" id="tmpl_LoanOffer">
<li class="loan-offer-entry" name="{{offer_id}}">
<a href="./details.html?user_id={{user_id}}&offerSelected={{offer_id}}">
<img
src="./assets/img/car-1.jpg"
alt="Placeholder car image"
/>
<div class="loan-offer-summary">
<span class="offer-car-info"
>{{make}} {{model}} {{year}}</span
>
<span class="offer-loan-info"
>${{payment_mo}}/mo · {{loan_term}} months
· {{interest_rate}}%</span
>
</div>
</a>
</li>
</script>
<script type="text/html" id="tmpl_LoanDetails">
<div class="loan-offer-details">
<div class="car-hero">
<img
src="./assets/img/car-1.jpg"
alt="Placeholder car image"
/>
</div>
<ul class="car-info">
<li class="car-info-pair">
<h4>Make:</h4>
<span>{{make}}</span>
</li>
<li class="car-info-pair">
<h4>Model:</h4>
<span>{{model}}</span>
</li>
<li class="car-info-pair">
<h4>Year:</h4>
<span>{{year}}</span>
</li>
<li class="car-info-pair">
<h4>Usage:</h4>
<span>{{kms}} km</span>
</li>
<li class="car-info-pair">
<h4>Retail price:</h4>
<span>${{price}}</span>
</li>
</ul>
<form
id="form-update-principal"
onsubmit="submitNewPrincipal(); return false;"
>
<label for="loan-principal"><h4>Loan principal:</h4></label>
<input
class="round-empty-pill"
type="number"
name="loan-principal"
value="{{principal}}"
/>
<button
type="submit"
name="updatePrincipal"
class="btn-green"
>
Update
</button>
</form>
<ul class="loan-info">
<li class="car-info-pair">
<h4>Interest rate:</h4>
<span>{{interest_rate}}%</span>
</li>
<li class="car-info-pair">
<h4>You pay:</h4>
<span>${{payment_mo}}/mo</span>
</li>
<li class="car-info-pair">
<h4>Loan term:</h4>
<span>{{loan_term}} months</span>
</li>
<li class="car-info-pair">
<h4>Total cost:</h4>
<span>${{total_sum}}</span>
</li>
</ul>
</div>
</script>
</body>
</html>