-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart_page1.html
421 lines (391 loc) · 24 KB
/
cart_page1.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
<!--這一份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">
<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">
<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 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">
<div class="row py-4">
<div class="col-md-8">
<h4 class="bg-light text-center py-3 font-weight-bold mb-4">您的購物車</h4>
<div>
<div class="d-flex justify-content-between pb-md-3 pb-0">
<img class="bg-cover img_size" src="img/arm-train.jpg" alt="手部訓練圖片">
<ul class="none_liststyle d-flex px-0 justify-content-between align-items-center pb-3 w-75 flex-sm-row flex-column">
<li class="d-flex flex-column cart_product_item_width">
<span class="cart_product_font">手部訓練</span>
<span>NT$ 450</span>
</li>
<li class="cart_product_input">
<div class="input-group input-group-lg change_input">
<div class="input-group-prepend input-group-lg">
<a href="#" class="btn border rounded-0">-</a>
</div>
<input type="text" class="form-control text-center p-2 p-md-1" value="1">
<div class="input-group-append">
<a href="#" class="btn border rounded-0">+</a>
</div>
</div>
</li>
<li class="w-30 text-center d-none d-sm-block">
<span class="h4">NT$ 450</span>
</li>
<li class="w-10 d-none d-sm-block text-right">
<a data-toggle="modal" data-target="#removeModal" data-whatever="手部訓練" href="#" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</li>
</ul>
</div>
<div class="d-sm-none d-block border-bottom border-top d-flex justify-content-end align-items-center py-2">
<a data-toggle="modal" data-target="#removeModal" data-whatever="手部訓練" href="#" class="text-light mr-3">
<i class="fas fa-trash-alt"></i>
</a>
<span class="h4 m-0">NT$ 450</span>
</div>
</div>
<div>
<div class="d-flex justify-content-between border-bottom py-3">
<img class="bg-cover img_size" src="img/gain_muscle.jpg" alt="增肌套餐圖片">
<ul class="none_liststyle d-flex px-0 justify-content-between align-items-center pb-3 w-75 flex-sm-row flex-column">
<li class="d-flex flex-column cart_product_item_width">
<span class="cart_product_font">增肌套餐</span>
<span>NT$ 450</span>
</li>
<li class="cart_product_input">
<div class="input-group input-group-lg change_input">
<div class="input-group-prepend input-group-lg">
<a href="#" class="btn border rounded-0">-</a>
</div>
<input type="text" class="form-control text-center p-2 p-md-1" value="1">
<div class="input-group-append">
<a href="#" class="btn border rounded-0">+</a>
</div>
</div>
</li>
<li class="w-30 text-center d-none d-sm-block">
<span class="h4">NT$ 450</span>
</li>
<li class="w-10 d-none d-sm-block text-right">
<a data-toggle="modal" data-target="#removeModal" data-whatever="增肌套餐" href="#" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</li>
</ul>
</div>
<div class="d-sm-none d-block border-bottom border-top d-flex justify-content-end align-items-center py-2">
<a data-toggle="modal" data-target="#removeModal" data-whatever="增肌套餐" href="#" class="text-light mr-3">
<i class="fas fa-trash-alt"></i>
</a>
<span class="h4 m-0">NT$ 450</span>
</div>
</div>
<div>
<div class="d-flex justify-content-between py-3">
<img class="bg-cover img_size" src="img/yoga_1.jpg" alt="瑜珈圖片">
<ul class="none_liststyle d-flex px-0 justify-content-between align-items-center pb-3 w-75 flex-sm-row flex-column">
<li class="d-flex flex-column cart_product_item_width">
<span class="cart_product_font">瑜珈訓練</span>
<span>NT 450</span>
</li>
<li class="cart_product_input">
<div class="input-group input-group-lg change_input">
<div class="input-group-prepend input-group-lg">
<a href="#" class="btn border rounded-0">-</a>
</div>
<input type="text" class="form-control text-center p-2 p-md-1" value="1">
<div class="input-group-append">
<a href="#" class="btn border rounded-0">+</a>
</div>
</div>
</li>
<li class="w-30 text-center d-none d-sm-block">
<span class="h4">NT$ 450</span>
</li>
<li class="w-10 d-none d-sm-block text-right">
<a data-toggle="modal" data-target="#removeModal" data-whatever="瑜珈訓練" href="#" class="text-light">
<i class="fas fa-trash-alt"></i>
</a>
</li>
</ul>
</div>
<div class="d-sm-none d-block border-bottom border-top d-flex justify-content-end align-items-center py-2">
<a data-toggle="modal" data-target="#removeModal" data-whatever="瑜珈訓練" href="#" class="text-light mr-3">
<i class="fas fa-trash-alt"></i>
</a>
<span class="h4 m-0">NT$ 450</span>
</div>
</div>
</div>
<div class="col-md-4">
<div class="px-3 bg-dark text-white pb-2">
<h4 class="text-center font-weight-bold py-3 border-bottom">訂單摘要</h4>
<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>
<a href="cart_page2.html" class="btn btn-yl btn-lg w-100 font-weight-bold rounded-0">結帳</a>
</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 bg-light">
<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 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>