-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct008.html
263 lines (255 loc) · 10.8 KB
/
product008.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
<!DOCTYPE html>
<html>
<head>
<title>產品頁</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="assets/css/shopping.css">
<link rel="stylesheet" type="text/css" href="assets/css/star.css">
<script type="text/javascript" src="assets/js/product.js" charset="UTF-8"></script>
</head>
<body class="index" style="font-family: 微軟正黑體;">
<header>
<nav class="navbar navbar-expand-lg navbar-light navbg fixed-top">
<!--/////////////////////////////LOGO圖案開始/////////////////////////////////-->
<a class="navbar-brand padding0" href="index.html"><img class="img-fluid" style="width:120px;" src="assets/picture/logo.png"></a>
<!--/////////////////////////////LOGO圖案結束/////////////////////////////////-->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav marginleftauto">
<li class="nav-item">
<span class="nav-link chinese" href="#"><img src="assets/picture/user.png" style="width: 20px;height: 20px;">瀏覽人數:100人</span>
</li>
<li class="nav-item">
<a class="nav-link chinese" href="about.html">關於我們<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link chinese" href="Car.html">購物車</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle chinese" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
會員專區
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item chinese" href="member.html">會員資料</a>
<a class="dropdown-item chinese" href="recode.html">消費紀錄</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link chinese btn btn-primarybtn" href="Signin.html">登入</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container-fluid productmargin">
<div class="row">
<div class="col-xl-3"></div>
<div class="col-xl-6">
<div class="row">
<div class="col-xl-6">
<div class="row">
<div class="mySlides" style="display: block;">
<div class="numbertext">1 / 4</div>
<img src="assets/picture/CrispyChiPai.jpg" style="width:100%">
</div>
<div class="mySlides">
<div class="numbertext">2 / 4</div>
<img src="https://placehold.it/283x188" style="width:100%">
</div>
<div class="mySlides">
<div class="numbertext">3 / 4</div>
<img src="https://placehold.it/283x188" style="width:100%">
</div>
<div class="mySlides">
<div class="numbertext">4 / 4</div>
<img src="https://placehold.it/283x188" style="width:100%">
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
<div class="Row">
<div class="column">
<img class="demo cursor" src="assets/picture/CrispyChiPai.jpg" style="width:90%" onclick="currentSlide(1)" alt="The Woods">
</div>
<div class="column">
<img class="demo cursor" src="https://placehold.it/283x188" style="width:90%" onclick="currentSlide(2)" alt="Cinque Terre">
</div>
<div class="column">
<img class="demo cursor" src="https://placehold.it/283x188" style="width:90%" onclick="currentSlide(3)" alt="Mountains and fjords">
</div>
<div class="column">
<img class="demo cursor" src="https://placehold.it/283x188" style="width:90%" onclick="currentSlide(4)" alt="Northern Lights">
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<h1 style="font-family: 微軟正黑體;font-weight: bolder;">脆皮雞排</h1>
<div class="bar" style="background-color: #efca00;"></div>
<p style="font-family: 微軟正黑體;">產品簡介:<br/>脆皮雞排脆皮雞排脆皮雞排的啦</p>
<p style="font-family: 微軟正黑體;">
數量:
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
</p>
<p>庫存:50組</p>
<h2 >NT:60</h2>
<div class="row">
<div class="col-xl-6"></div>
<div class="col-xl-6"></div>
</div>
<hr/>
<div class="col-xl-12">
<button class="buybutton">加入購物車</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-3"></div>
</div>
</div>
<!--評分&評論-->
<div class="container">
<div class="col-xl-12 productmargin">
<h1 style="text-align: center;font-family: 微軟正黑體;font-weight: bolder;">商品評論</h1>
<hr style="border-width: 2px;background-color:#efca00;">
<div class="col-xl-12" style="margin-top: 100px;">
<h3 style="font-family: 微軟正黑體;">買家評論</h3>
<div class="row" style="margin-top: 30px;">
<div class="col-xl-2">
<img class="userpic img-fluid" src="assets/picture/userpic.png" align="left">
</div>
<div class="col-xl-6">
<p>
<span style="color: gray;">2019-10-25 </span>
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png"><br>
abc@gmail.com <br>
每吃必買!!
</p>
</div>
<div class="col-xl-4"></div>
</div>
<div class="row" style="margin-top: 30px;">
<div class="col-xl-2">
<img class="userpic img-fluid" src="assets/picture/userpic.png" align="left">
</div>
<div class="col-xl-6">
<p>
<span style="color: gray;">2019-10-25 </span>
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png"> <br>
abc@gmail.com <br>
每吃必買!!
</p>
</div>
<div class="col-xl-4"></div>
</div>
<div class="row" style="margin-top: 30px;">
<div class="col-xl-2">
<img class="userpic img-fluid" src="assets/picture/userpic.png" align="left">
</div>
<div class="col-xl-6">
<p>
<span style="color: gray;">2019-10-25 </span>
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png"> <br>
abc@gmail.com <br>
每吃必買!!
</p>
</div>
<div class="col-xl-4"></div>
</div>
<div class="row" style="margin-top: 30px;">
<div class="col-xl-2">
<img class="userpic img-fluid" src="assets/picture/userpic.png" align="left">
</div>
<div class="col-xl-6">
<p>
<span style="color: gray;">2019-10-25 </span>
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png"> <br>
abc@gmail.com <br>
每吃必買!!
</p>
</div>
<div class="col-xl-4"></div>
</div>
<div class="row" style="margin-top: 30px;">
<div class="col-xl-2">
<img class="userpic img-fluid" src="assets/picture/userpic.png" align="left">
</div>
<div class="col-xl-6">
<p>
<span style="color: gray;">2019-10-25 </span>
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png">
<img class="ratingimg" src="assets/picture/star.png"> <br>
abc@gmail.com <br>
每吃必買!!
</p>
</div>
<div class="col-xl-4"></div>
</div>
</div>
<div class="col-xl-12"style="margin-top: 100px;">
<h3 style="font-family: 微軟正黑體;">您的評價</h3>
<form style="margin-top: 20px;" id="checkboxGroup">
<input type="radio" name="stars">1<img class="ratingimg" src="assets/picture/star.png">
<input type="radio" name="stars">2<img class="ratingimg" src="assets/picture/star.png">
<input type="radio" name="stars">3<img class="ratingimg" src="assets/picture/star.png">
<input type="radio" name="stars">4<img class="ratingimg" src="assets/picture/star.png">
<input type="radio" name="stars">5<img class="ratingimg" src="assets/picture/star.png">
<div class="form-group" style="margin-top: 20px;">
<textarea class="form-control" rows="5" placeholder="來評價吧!"></textarea>
</div>
<button id="button11" type="submit" class="btn btn-primary ratingbutton center">送出</button>
</form>
</div>
</div>
</div>
<footer class="width100 footer">
<p class="footerWord">Copyright by 雞饗omG <br>
+886-912345678|Email:ChiHsiangomG@gmail.com
</p>
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.slim.js" integrity="sha256-BTlTdQO9/fascB1drekrDVkaKd9PkwBymMlHOiG+qLI=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script>
$('#checkboxGroup input').click(function(){
if($(this).prop('checked')){
$('#checkboxGroup input:checkbox').prop('checked',false);
$(this).prop('checked',true);
}
});
</script>
<script>
$("#button11").click(function(){
var check=$("input[name='stars']:checked").length;//判斷有多少個方框被勾選
if(check==0){
alert("請勾選星星");
return false;//不要提交表單
}else{
return true;//提交表單
}
})
</script>
</body>
</html>