-
Notifications
You must be signed in to change notification settings - Fork 0
/
buy-page.html
234 lines (195 loc) · 9.85 KB
/
buy-page.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Japan Figure</title>
<link rel="stylesheet" href="styles/page6_style.css">
<link rel="stylesheet" href="styles/fontawesome-free-6.1.1-web/css/all.css">
<link rel="icon" href="images/logo/favicon.webp">
</head>
<body>
<div class="container">
<header class="header" >
<!-- 3 gach menu -->
<a class="toggle-button" onclick="myFunction(this), ok()">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</a>
<a href="index.html" class="logo"><img src="https://theme.hstatic.net/1000160337/1000885200/14/logo.png?v=269" alt=""></a>
<input type="text" class="search-bar" placeholder="Nhập tên sản phẩm bạn muốn tìm...?">
<button class="search"><i class="fa-solid fa-magnifying-glass"></i></button>
<ul class="login-n-buy">
<a href="login.html"><i class="fa-solid fa-user"></i></a> <li class="login-in-regist"><a href="login.html">Đăng nhập / Đăng ký</a></li>
<i class="fa-solid fa-cart-shopping"></i><li class="buy">Giỏ hàng</li>
</ul>
</header>
<div class="search-mobile-container">
<input type="text" class="search-bar-mobile" placeholder="Nhập tên sản phẩm bạn muốn tìm...?">
</div>
<nav class="navigation" >
<a href="index.html">Trang chủ</a>
<a href="introduction.html">Giới thiệu</a>
<a href="instruction.html">Hướng dẫn</a>
<a href="products.html">Sản phẩm</a>
<a href="contact.html">Liên hệ</a>
</nav>
</div>
<div class="buy-product">
<div class="image-picker">
<p onclick="goto1(0)"><img src="images/products/buy/picker/1.jpg" alt=""></p>
<p onclick="goto1(1)"><img src="images/products/buy/picker/2.jpg" alt=""></p>
<p onclick="goto1(2)"><img src="images/products/buy/picker/3.jpg" alt=""></p>
<p onclick="goto1(3)"><img src="images/products/buy/picker/4.jpg" alt=""></p>
<p onclick="goto1(4)"><img src="images/products/buy/picker/5.jpg" alt=""></p>
<p onclick="goto1(5)"><img src="images/products/buy/picker/6.jpg" alt=""></p>
<p onclick="goto1(6)"><img src="images/products/buy/picker/7.jpg" alt=""></p>
<p onclick="goto1(7)"><img src="images/products/buy/picker/8.jpg" alt=""></p>
</div>
<div class="slider-container">
<button class="slider-button-left" onclick="prev()"><i class="fa-solid fa-angle-left"></i></button>
<button class="slider-button-right" onclick="next()"><i class="fa-solid fa-angle-right"></i></button>
<div class="image-slider" id="slide">
<img src="images/products/buy/1.webp" alt="">
<img src="images/products/buy/2.jpg" alt="">
<img src="images/products/buy/3.jpg" alt="">
<img src="images/products/buy/4.jpg" alt="">
<img src="images/products/buy/5.jpg" alt="">
<img src="images/products/buy/6.jpg" alt="">
<img src="images/products/buy/7.jpg" alt="">
<img src="images/products/buy/8.jpg" alt="">
</div>
</div>
<div class="product-info">
<div class="product-name">POP UP PARADE Touhou Project Reimu Hakurei</div>
<div class="product-price">1,900,000₫</div>
<div class="quantity">
<button class="quantity-adjust" onclick="minus()">-</button>
<input type="text" name="" id="quantity">
<button class="quantity-adjust" onclick="plus()">+</button>
<button class="cart-add-button">THÊM VÀO GIỎ</button>
</div>
<div class="info">
<p style="color: black; text-transform: uppercase;">Thông tin sản phẩm</p>
<p style="color:#339966 ; font-size: 15px;">Giá cập nhật tháng 1/2022 : 1.900.000đ</p>
<p style="color: black; font-size: 15px; line-height: 1.9rem;">POP UP PARADE Touhou Project Reimu Hakurei <br>
Nhân vật : Reimu Hakurei <br>
Series : Touhou Project <br>
Hãng sản xuất : Good Smile Company <br>
Kích thước : 16.5cm <br>
Phát hành : 6/2022</p>
</div>
</div>
</div>
<div class="showcase-container">
<div class="follow-us">
<h1>Follow tác giả làm web này ngay :3</h1>
<p style="text-align: center;"><span>@duy.rk</span></p>
</div>
<div class="showcase">
<a href=""><img src="images/contents/page1/showcase/gallery_item_1_img.webp" alt=""></a>
<a href=""><img src="images/contents/page1/showcase/gallery_item_2_img.webp" alt=""></a>
<a href=""><img src="images/contents/page1/showcase/gallery_item_3_img.webp" alt=""></a>
<a href=""><img src="images/contents/page1/showcase/gallery_item_4_img.jpg" alt=""></a>
<a href=""><img src="images/contents/page1/showcase/gallery_item_5_img.jpg" alt=""></a>
<a href=""><img src="images/contents/page1/showcase/gallery_item_6_img.jpg" alt=""></a>
</div>
</div>
<footer>
<div class="introduce-container">
<h3>Giới thiệu Japan Figure</h3>
<p> Giúp các bạn trẻ Việt Nam dễ dàng tiếp cận với mô hình figure Nhật Bản</p>
</div>
<div class="address">
<p>Địa chỉ: Quận 10, Tp. Hồ Chí Minh. <br>
Japan Figure chưa có không gian trưng bày, bạn vui lòng hẹn trước khi đến <br>
Điện thoại: 090 8268 007 <br>
Email: [email protected]</p>
</div>
<div class="support">
<h3>Hỗ trợ khách hàng</h3>
<ul>
<li> <canvas id="myCanvas" >
<p>Trình duyệt của bạn không hỗ trợ HTML5 canvas</p>
</canvas>Tìm kiếm</li>
<li> <canvas id="myCanvas1" >
<p>Trình duyệt của bạn không hỗ trợ HTML5 canvas</p>
</canvas>Giới thiệu </li>
</ul>
</div>
<div class="care-customers">
<h3>Chăm sóc khách hàng</h3>
<i class="fa-solid fa-phone"></i><span>012345678</span>
<div>[email protected]</div>
</div>
</footer>
<div class="footer-line"></div>
<div class="Copyright-line">Copyright © 2022 Japan Figure. Powered by raikoSUS</div>
</body>
<script>
function myFunction(x) {
x.classList.toggle("change");
}
function ok(){
if(document.getElementsByTagName('nav')[0].getAttribute('id') === 'navappear'){
document.getElementsByTagName('nav')[0].setAttribute('id','navhide');
}else{
document.getElementsByTagName('nav')[0].setAttribute('id','navappear');
}
}
function checkWidth(){
var element = document.getElementsByTagName('body')[0];
var positionInfo = element.getBoundingClientRect();
var width = positionInfo.width;
var flag =0;
if(document.getElementsByTagName('nav')[0].getAttribute('id')=== 'navappear'){
flag =1;
} else{
flag=0;
}
if(width > 992){
document.getElementsByTagName('nav')[0].setAttribute('id','');
}
if(flag==1){
document.getElementsByTagName('nav')[0].setAttribute('id','navappear');
}
}
// }
// function check(){
// var element = document.getElementsByTagName('body')[0];
// var positionInfo = element.getBoundingClientRect();
// var width = positionInfo.width;
// if(document.getElementsByTagName('nav')[0].getAttribute('name') === 'close'){
// document.getElementsByTagName('nav')[0].setAttribute('name','open')
// document.getElementsByTagName('nav')[0].style.display = "flex";
// }else if(document.getElementsByTagName('nav')[0].getAttribute('name') === 'open'){
// document.getElementsByTagName('nav')[0].setAttribute('name','close')
// document.getElementsByTagName('nav')[0].style.display = "none";
// }
// }
setInterval(checkWidth,1);
function open(){
}
</script>
<!-- <script src="Js/js-page1.js"></script> -->
<script src="Js/review-slider.js"></script>
<script src="Js/canvas.js"></script>
<script>
document.getElementById('quantity').value = 1;
function plus(){
var number = document.getElementById('quantity').value;
number = Number(number) +1;
document.getElementById('quantity').value=number;
}
function minus(){
var number = document.getElementById('quantity').value;
number = Number(number) -1;
if(number<1){
number =1;
}
document.getElementById('quantity').value=number;
}
</script>
</html>