-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
264 lines (243 loc) · 10.7 KB
/
index.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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Save Humanity">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
<link rel="stylesheet" href="master.css">
<style type="text/css">
.center-block {
width: 250px;
padding: 10px;
background-color: #eceadc;
color: #ec8007
}
.loader {
border-top: 16px solid blue;
border-right: 16px solid green;
border-bottom: 16px solid red;
}
</style>
<title>Go Green</title>
</head>
<body>
<div class="container" style="padding-top:8%">
<div class="bg-dark rounded text-light text-center p-2">
<h1>Earthsy Portal</h1>
</div>
<div class="card mt-5 bg-dark p-1 border border-dark">
<div class="card-header bg-light border border-dark">
<ul class="nav nav-pills card-header-pills nav-fill tab-list" id="pills">
<li class="nav-item">
<a class="nav-link active" id="scan-tab" data-toggle="pill" href="#scan" aria-controls="scan" aria-selected="true"><strong>Scan</strong></a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="select-tab" data-toggle="pill" href="#select" aria-controls="select" aria-selected="true"><strong>Select</strong></a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="checkout-tab" data-toggle="pill" href="#checkout" aria-controls="checkout" aria-selected="true"><strong>Checkout</strong></a>
</li>
</ul>
</div>
<div class="card-body bg-light border border-dark mt-1">
<div class="tab-content" id="pillsContent">
<div class="tab-pane fade show active text-center" id="scan" role="tabpanel" aria-labelledby="scan-tab">
<div class="row" id="home-page-options">
<div class="col">
<button id="scan-qr-button" class="btn btn-dark btn-lg btn-block"><strong>Scan QR</strong></button>
</div>
<div class="col">
<button id="enter-email-button" class="btn btn-dark btn-lg btn-block"><strong>Enter Email</strong></button>
</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-4">
<div class="card d-none" id="scanner-div">
<div class="card-body">
<div id="reader" style="width:300px;height:250px"></div>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">
<p id="barcode-msg" class="text-center"><strong>Scan your Membership Card</strong></p>
<p id="result" class="text-center">
</li>
</ul>
</div>
<div class="card d-none" id="email-div">
<div class="card-body">
<form>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input required type="email" class="form-control" id="exampleInputEmail" aria-describedby="emailHelp" placeholder="Enter email">
</div>
<button id="email-submit" type="submit" class="btn btn-primary">Continue</button>
</form>
</div>
</div>
</div>
</div>
<span id="error" style='color:darkred;' class="center"></span>
</div>
<div class="tab-pane fade" id="select" role="tabpanel" aria-labelledby="select-tab">
<div class="row justify-content-center" id="select-scan-div">
<div class="col-sm-8">
<div class="card" id="loading-div">
<div class="card-body">
<p align="center"> Retrieving Your Go Green Score <p>
<div class="loader"></div>
</div>
</div>
<div class="card d-none" id="user-info-div">
<div class="card text-white bg-info">
<div class="card-header" id="user-info-header"></div>
<div class="card-body">
<p class="card-text" id="user-info-details1"></p>
<p class="card-text" id="user-info-details2"></p>
<p class="card-text" id="user-info-details3"></p>
<p class="card-text"> Total Bill: $5.20 </p>
</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center d-none" id="select-email-div">
<div class="col-sm-8">
<div class="card" id="email-loading-div">
<div class="card-body">
<p align="center">Looking for user account!<p>
<div class="loader"></div>
</div>
</div>
<div class="card d-none" id="user-email-entered-info-div">
<div class="card text-white bg-info">
<div class="card-header" id="user-info-header">Seems like you are not signed up with us! </div>
<div class="card-body">
<p class="card-text" id="user-info-details">For new members, we auto assign a Go Green score of 50</p>
<p class="card-text"> Total Bill: $5.20</p>
</div>
</div>
</div>
</div>
</div>
<div class="card d-none" id="common-ngo-info">
<div class="card text-white bg-info">
<div class="card-body">
<div>
<blockquote class="quote-card yellow-card">
<p>
Giving is not just about making a donation, it's about making a difference
</p>
<cite>
Kathy Calvin
</cite>
</blockquote>
</div>
<p class="card-text"><strong>We will round up your total bill to the nearest dollar and will donate that to the charity of your choice!</srong></p>
<select id="ngo-list" class="form-control">
<option value="" disabled selected>Choose category for NGO</option>
<option value="one">Education</option>
<option value="two">Environment</option>
<option value="three">Health</option>
<option value="four">Orphanage</option>
</select>
<br>
<div id="ngo-checkbox-list" class="d-none">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="materialUnchecked">
<label style="background-color:#ffffa0" class="form-check-label" for="ngo0"><a id="ngo0" href="" target="_blank" style="background-color:#ffffa0"></a></label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="materialUnchecked">
<label class="form-check-label" for="ngo1"><a id="ngo1" href="" target="_blank" style="background-color:#ffffa0"></a></label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="materialUnchecked">
<label class="form-check-label" for="ngo2"><a id="ngo2" href="" target="_blank" style="background-color:#ffffa0"></a></label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="materialUnchecked">
<label class="form-check-label" for="ngo3"><a id="ngo3" href="" target="_blank" style="background-color:#ffffa0"></a></label>
</div>
</div>
<br>
<div class="row" id="user-donate-selection">
<div class="col-xs-3">
<button id="donate-and-proceed" class="btn btn-primary">
<i class="fa fa-donate"></i>Donate & Proceed
</button>
</div>
<div class="col-xs-3">
<button id="skip-and-proceed" class="btn btn-primary">
<i class="fa fa-fast-forward"></i>Skip & Proceed
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="checkout" role="tabpanel" aria-labelledby="checkout-tab">
<div class="card d-none" id="checkout-info">
<div class="card text-white bg-info">
<div class="card-header" id="checkout-summary">Summary</div>
<div class="card-body">
<p class="card-text" id="">Items Purchased: $5.20</p>
<p class="card-text" id="donation-amount-display"></p>
<p class="card-text" id="current-score-display"></p>
<p class="card-text" id="go-green-benefit-text"></p>
<p class="card-text" id="non-green-affects-text"></p>
<p class="card-text" id=""></p>
<div class="row">
<div class="col-xs-3">
<button id="email-receipt-button" class="btn btn-success" data-toggle="tooltip" data-placement="top" title="You are a super Hero saving mother earth!">
<i class="fa fa-envelope"></i>Email Receipt
</button>
</div>
<div class="col-xs-3">
<button id="print-receipt-button" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="Printed">
<i class="fa fa-print"></i>Print Receipt
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center d-none" id="sending-email-div">
<div class="col-sm-8">
<div class="card" id="loading-div">
<div class="card-body">
<p id="finish-paragraph-text-message" align="center"><p>
<div class="loader"></div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center d-none" id="printing-bill-div">
<div class="col-sm-8">
<div class="card" id="loading-div">
<div class="card-body">
<p id="finish-paragraph-text-message-printing" align="center"><p>
<div class="loader"></div>
</div>
</div>
</div>
</div>
<div class="alert alert-success d-none" id="success-modal">
<strong>Success!</strong><p id="thank-you-message"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="jsqrcode-combined.min.js"></script>
<script src="html5-qrcode.min.js"></script>
<script src="master.js"></script>
</body>
</html>