-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart_page3.html
473 lines (427 loc) · 25.3 KB
/
cart_page3.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
<!--這一份html檔案,是整體layout的公版,保存了header和footer的部分版型-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Berserker Fitness</title>
<link rel="shortcut icon" href="img/favicon.png">
<meta name='description' content='雕塑你我的美妙身材' />
<link href="/img/favicon.png" rel="apple-touch-icon" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta property="og:type" content="website" />
<meta property="og:image" content="img/bannerbackground.jpg" />
<link rel="stylesheet" href="css/css/all.css">
<link rel="stylesheet" href="css/all.min.css">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<script src="javascript/jquery-3.5.1.min.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<nav class="navbar navbar-expand-md navbar-light bg-yl">
<button class="navbar-toggler rwd-hamburger-btn" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="badge bg-danger">2</span>
<a href="#"><i class="fas fa-bars"></i></a>
</button>
<a class="navbar-brand" href="index.html">
<img src="img/protectionshield.svg" width="50" height="50" class="d-inline-block" alt="">
<span class="d-none d-md-inline-block">Berserker Fitness</span>
</a>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">首頁</a>
</li>
<li class="nav-item ml-4">
<a class="nav-link" href="lecture_page.html">課程</a>
</li>
<li class="nav-item ml-4">
<a class="nav-link" href="register_page.html">登入</a>
</li>
<li class="nav-item ml-4">
<div class="dropdown">
<button class="btn btn-secondary cart_btn" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
<i class="fas fa-shopping-cart text-dark"></i>
</button>
<div class="dropdown-menu product_list_dropdown p-0" aria-labelledby="dropdownMenuButton">
<div class="card rounded-0">
<h5 class="card-header">已選購商品</h5>
<div class="card-body p-0">
<table class="table productlist_table m-0">
<tbody>
<tr>
<th class="border-top-0" scope="row">
<a data-toggle="modal" data-target="#removeModal" data-whatever="手部訓練" href="#" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td class="border-top-0 w-50">
<img src="img/arm-train.jpg" class="bg-cover productlist_table_img" alt="">
<p class="m-0">手部訓練</p>
</td>
<td class="border-top-0" >x2</td>
<td class="border-top-0 w-25">NT$900</td>
</tr>
<tr>
<th class="border-top-0" scope="row">
<a href="#" data-toggle="modal" data-target="#removeModal" data-whatever="背部訓練" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td class="border-top-0">
<img src="img/back-train.jpg" class="bg-cover productlist_table_img" alt="">
<p class="m-0">背部訓練</p>
</td>
<td class="border-top-0">x3</td>
<td class="border-top-0">NT$1350</td>
</tr>
</tbody>
</table>
</div>
<div class="cart-footer">
<a href="cart_page1.html" class="btn btn-yl btn-lg w-100 rounded-0 font-weight-bold">結帳去</a>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="dropdown">
<button class="btn btn-secondary cart_btn rwd-cart-btn" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
<span class="badge bg-danger">2</span>
<i class="fas fa-shopping-cart text-dark"></i>
</button>
<div class="dropdown-menu product_list_dropdown p-0" aria-labelledby="dropdownMenuButton">
<div class="card">
<h5 class="card-header">已選購商品</h5>
<div class="card-body p-0">
<table class="table productlist_table">
<tbody>
<tr>
<th class="border-top-0" scope="row">
<a href="#" data-toggle="modal" data-target="#removeModal" data-whatever="手部訓練" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td class="border-top-0 w-50">
<img src="img/arm-train.jpg" class="bg-cover productlist_table_img" alt="">
<p class="m-0">手部訓練</p>
</td>
<td class="border-top-0" >x2</td>
<td class="border-top-0 w-25">NT$900</td>
</tr>
<tr>
<th class="border-top-0" scope="row">
<a href="#" data-toggle="modal" data-target="#removeModal" data-whatever="背部訓練" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td class="border-top-0">
<img src="img/back-train.jpg" class="bg-cover productlist_table_img" alt="">
<p class="m-0">背部訓練</p>
</td>
<td class="border-top-0">x3</td>
<td class="border-top-0">NT$1350</td>
</tr>
</tbody>
</table>
</div>
<div class="cart-footer">
<a href="cart_page1.html" class="btn btn-yl btn-lg w-100 rounded-0 font-weight-bold">結帳去</a>
</div>
</div>
</div>
</div>
</nav>
</div>
<ul class="hide-nav list-unstyled collapse" id="navbarToggleExternalContent">
<li class="p-2">
<a href="index.html">首頁</a>
</li>
<li class="p-2">
<a href="lecture_page.html" >課程</a>
</li>
<li class="p-2">
<a href="register_page.html">登入</a>
</li>
</ul>
</div>
<!--客製化頁面開始-->
<div class="container my-3">
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<div class="bg-dark text-white">
<form id="cart_page_form3" action="cart_page4.html" class="needs-validation" novalidate>
<div>
<div class="form-row mx-3">
<div class="col-6 d-flex justify-content-start">
<h4 class="text-center font-weight-bold py-3">付款</h4>
</div>
<div class="col-6">
<div class="d-flex align-items-center my-4">
<div class="rounded-circle process_bar_circle bg-light-secondary">
<div>
<i class="fas fa-check text-dark"></i>
</div>
</div>
<span class="border-bottom w-40"></span>
<div class="rounded-circle process_bar_circle">
<div class="rounded-circle process_bar_inside_circle"> </div>
</div>
<span class="border-bottom w-40"></span>
<div class="rounded-circle process_bar_circle"> </div>
</div>
</div>
</div>
</div>
<div class="form-row mx-3">
<div class="form-group col-12">
<label for="firstname">信用卡卡號</label>
<div class="input-group">
<input type="text" class="form-control rounded-0 border-0" placeholder="1234-1234-1234-5678" required>
<div class="input-group-append">
<span class="input-group-text rounded-0 border-0 bg-light-secondary">
<i class="far fa-credit-card"></i>
</span>
</div>
<div class="invalid-feedback">
請輸入卡號
</div>
</div>
</div>
<div class="col-12">
<label for="firstname">姓氏</label>
</div>
<div class="form-group col-6">
<input type="text" class="form-control rounded-0 border-0" id="firstname" placeholder="王" required>
<div class="invalid-feedback">
請輸入姓氏
</div>
</div>
<div class="form-group col-6">
<input type="text" class="form-control rounded-0 border-0" placeholder="大明">
<div class="invalid-feedback">
請輸入名字
</div>
</div>
<div class="col-12">
<label for="date">請輸入生日</label>
</div>
<div class="form-group col-md-6">
<select name="" id="date" class="form-control rounded-0 border-0">
<option value="" disabled>月份</option>
<option value="1">1月</option>
<option value="2">2月</option>
<option value="3">3月</option>
<option value="4">4月</option>
<option value="5">5月</option>
</select>
<div class="invalid-feedback">
請輸入月份
</div>
</div>
<div class="form-group col-md-6">
<select class="form-control rounded-0 border-0">
<option value="" disabled>日</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<div class="invalid-feedback">
請輸入日期
</div>
</div>
<div class="form-group col-12">
<label for="">背面末三碼</label>
<input type="text" class="form-control" placeholder="末三碼">
</div>
</div>
<a href="cart_page4.html" class="btn btn-yl btn-lg w-100 rounded-0 border-0 font-weight-bold">下一步</a>
</form>
</div>
</div>
<div class="col-md-4 d-none d-md-block">
<div class="bg-dark text-white">
<div class="mb-3">
<h4 class="text-center font-weight-bold py-3 bg-light text-dark">訂單摘要</h4>
<div class="mx-3 pb-3">
<p class="d-flex justify-content-between">
<span>小計</span>
<span>$1350</span>
</p>
<p class="d-flex justify-content-between">
<span>運費</span>
<span>$60</span>
</p>
<p class="h4 d-flex justify-content-between font-weight-bold m-0">
<span>總計</span>
<span>$1410</span>
</p>
</div>
</div>
</div>
<div class="bg-dark text-white">
<div>
<h4 class="text-center font-weight-bold py-3 bg-light text-dark">購物清單</h4>
<div class="row p-3">
<div class="col-6">
<img class="bg-cover" src="img/gain_muscle.jpg" alt="" style="width: 120px;height: 80px;">
</div>
<div class="col-6">
<p class="m-0">增肌套餐 (2)</p>
<p>NT$ 450</p>
</div>
</div>
<div class="row p-3">
<div class="col-6">
<img class="bg-cover" src="img/arm-train.jpg" alt="" style="width: 120px;height: 80px;">
</div>
<div class="col-6">
<p class="m-0">手部訓練 (2)</p>
<p>NT$ 450</p>
</div>
</div>
<div class="row p-3">
<div class="col-6">
<img class="bg-cover" src="img/yoga_1.jpg" alt="" style="width: 120px;height: 80px;">
</div>
<div class="col-6">
<p class="m-0">瑜珈訓練 (2)</p>
<p>NT$ 450</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--客製化頁面結束-->
<footer>
<div class="container-fluid py-4 bg-yl">
<div class="container px-sm-5">
<div class="row">
<div class="col-12 mb-4 mb-md-0 col-md-6 d-flex align-items-center justify-content-md-start justify-content-sm-center justify-content-center">
<img src="img/protectionshield.svg" alt="logo圖片" class="footer-search-logo-img">
<span class="footer-search-logo-subscribe" >雕塑你我的美好身材</span>
</div>
<div class="col-12 col-md-6 footer-search-frame">
<div class="input-section">
<div class="input-icon"><i class="fas fa-envelope"></i></div>
<div class="input-content-section">
<input class="input-content" type="text">
</div>
</div>
<button class="input-button"><i class="fas fa-arrow-right"></i></button>
</div>
</div>
</div>
</div>
<div class="container-fluid py-4" style="background: #f0e9e9;">
<div class="container px-5">
<div class="row">
<div class="col-md-6">
<h2 class="footer-slogon-name">Berserker Fitness</h2>
<ul class="footer-company-contact none_liststyle p-0">
<li>07-1234-5678</li>
<li>
<a href="mailto:randychen510@gmail.com" class="mail-option">randychen510@gmail.com</a>
</li>
<li>800 高雄市新興區幸福路 520 號</li>
<li class="fanspage-link">
<a href="#" class="line-option" title="line粉絲團">
<i class="fab fa-line"></i>
</a>
<a href="#" class="facebook-option" title="facebook粉絲團">
<i class="fab fa-facebook-square"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-6 d-none d-md-flex flex-column align-items-end">
<h3 class="footer-copyright-slogon m-0">今天是個-- <br> <span class="mt-2">舉鐵的好日子</span> </h3>
<p class="paragraph">© 2020 Sweetaste* All Rights Reserved</p>
</div>
</div>
</div>
</div>
</footer>
<!--Modal-->
<div class="modal fade" id="removeModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-danger text-white">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-light text-dark" data-dismiss="modal">否</button>
<button type="button" class="btn btn-danger px-5">確定刪除</button>
</div>
</div>
</div>
</div>
<script>
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
console.log(forms);
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
}
form.classList.add('was-validated')
}, false)
})
})()
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<!--AOS的外掛檔案-->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init({
// Global settings:
disable: false, // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function
startEvent: 'DOMContentLoaded', // name of the event dispatched on the document, that AOS should initialize on
initClassName: 'aos-init', // class applied after initialization
animatedClassName: 'aos-animate', // class applied on animation
useClassNames: false, // if true, will add content of `data-aos` as classes on scroll
disableMutationObserver: false, // disables automatic mutations' detections (advanced)
debounceDelay: 50, // the delay on debounce used while resizing window (advanced)
throttleDelay: 99, // the delay on throttle used while scrolling the page (advanced)
// Settings that can be overridden on per-element basis, by `data-aos-*` attributes:
offset: 120, // offset (in px) from the original trigger point
delay: 0, // values from 0 to 3000, with step 50ms
duration: 1000, // values from 0 to 3000, with step 50ms
easing: 'ease', // default easing for AOS animations
once: true, // whether animation should happen only once - while scrolling down
mirror: false, // whether elements should animate out while scrolling past them
anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation
});
</script>
<script>
$('#removeModal').on('show.bs.modal', function(event){
let button = $(event.relatedTarget);
let content = button.data('whatever');
let modal = $(this);
modal.find('.modal-title').text(`確定刪除 ${content} 課程嗎?`);
})
</script>
</body>
</html>