-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
286 lines (268 loc) · 13.2 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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!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>MarPet</title>
<link rel="icon" type="image/x-icon" href="./library/logoko-01.png">
<link rel="stylesheet" href="./css/style.css">
<script src="https://kit.fontawesome.com/09f1ff1e12.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined">
<script src="https://www.w3schools.com/lib/w3.js"></script>
<link rel="stylesheet" href="./css/home.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<!-- chèn html header -->
<div id="header"></div>
<script>
load("header.html");
function load(url) {
req = new XMLHttpRequest();
req.open("GET", url, false);
req.send(null);
document.getElementById("header").innerHTML = req.responseText;
}
</script>
<!-- phần nội dung -->
<div class="content">
<!-- slide banner đầu trang -->
<div class="slideshow-banner">
<div class="slide-container fade">
<img class="slider-normal" src="./library/banner2.png" alt="">
<img class="slider-mobile" src="./library/slider_res1.png" alt="">
<div class="text">
<h2>Siêu chính hãng</h2>
<p>100% thức ăn nhập khẩu</p>
<p> Sản phẩm chất lượng cao với thương hiệu đa dạng</p>
<a href="Dog-Product.html?category=d_fo"><button class="btn_in_homepage" type="button">Ghé ngay</button></a>
</div>
</div>
<div class="slide-container fade">
<img class="slider-normal" src="./library/valentinebanner.png" alt="">
<img class="slider-mobile" src="./library/slider_res2.png" alt="">
</div>
<div class="slide-container fade">
<img class="slider-normal" src="./library/slider3.gif" alt="">
<img class="slider-mobile" src="./library/slider_res3.gif" alt="">
</div>
</div>
<div class="dot-slider" style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<!-- danh mục nổi bật -->
<div class="homepage-hightlight-cate">
<div class="homepage-hightlight-cate--heading homepage-section-heading">
<h2>Danh mục bán chạy nhất</h2>
<hr>
</div>
<div class="highlight-cate-container">
<a href="Cat-Product.html?category=c_fo" class="highlight-cate">
<img class="prize" src="./library/prize-2.png" alt="">
<div class="img-container">
<img src="./library/hightlight-cate-2-removebg-preview.png" alt="">
</div>
<div class="highlight-cate-title">Thức ăn cho mèo</div>
<div class="highlight-cate-act">Ghé thăm</div>
</a>
<a href="Dog-Product.html?category=d_fo" class="highlight-cate">
<img class="prize" src="./library/prize-1.png" alt="">
<div class="img-container">
<img src="./library//highight-cate-1-removebg-preview.png" alt="">
</div>
<div class="highlight-cate-title">Thức ăn cho chó</div>
<div class="highlight-cate-act">Ghé thăm</div>
</a>
<a href="Cat-Product.html?category=c_toy" class="highlight-cate">
<img class="prize" src="./library/prize-3.png" alt="">
<div class="img-container">
<img src="./library/hightlight-cate-3-removebg-preview.png" alt="">
</div>
<div class="highlight-cate-title">Đồ chơi cho mèo</div>
<div class="highlight-cate-act"> Ghé thăm</div>
</a>
</div>
</div>
<!-- flashsale -->
<div class="homepage-flashsale-products">
<div class="flashsale-products-container">
<div class="flashsale-products--top">
<div class="flashsale-products--top--title">
<h2>• Đang khuyến mãi</h2>
<p>Từ ngày 01/01 - 15/02</p>
</div>
<a href="product-sale.html"><button class="btn_in_blog btn_in_homepage">Mua sắm ngay</button></a>
</div>
<div class="flashsale-products--bottom">
<div class="flashsale-products-col fade">
<div class="shadow">
<a href="products_detail.html?productid=4"><img src="./library/products/dog/DG_FO_sp4-1.jpg" alt=""></a>
<div class="card-body">
<h4 class="card-title">
<a href="products_detail.html?productid=4">Thức ăn cho chó con hạt mềm ZENITH Puppy</a>
</h4>
<p class="card-price">
<a href="products_detail.html?productid=4"><span class="sale-price">200.000đ</span> ­ 180.000đ</a>
</p>
</div>
</div>
</div>
<div class="flashsale-products-col fade">
<div class="shadow card">
<a href="products_detail.html?productid=11"><img src="./library/products/dog/DG_CL_sp10-blue.jpg" alt=""></a>
<div class="card-body">
<h4 class="card-title">
<a href="products_detail.html?productid=11">Yếm cho chó kèm dây dắt Ambaby 1JXS043</a>
</h4>
<p class="card-price">
<a href="products_detail.html?productid=11"><span class="sale-price">255.000đ</span> ­ 200.000đ</a>
</p>
</div>
</div>
</div>
<div class="flashsale-products-col fade">
<div class="shadow card">
<a href="products_detail.html?productid=128"><img src="./library/products/cat/CT_CA_sp9.jpg" alt=""></a>
<div class="card-body">
<h4 class="card-title">
<a href="products_detail.html?productid=128">Nhà cây cho mèo Cat Tree QQ80764</a>
</h4>
<p class="card-price">
<a href="products_detail.html?productid=128"><span class="sale-price">5.500.000đ</span> ­ 5.000.000đ</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- homepage dịch vụ -->
<div class="homepage-service">
<div class="homepage-service--heading homepage-section-heading">
<h2>Dịch vụ</h2>
<hr>
</div>
<div class="homepage-service--container">
<a href="service-spa.html" class="service-item ">
<div class="img-container survice-container">
<img src="./library/wash-sv.png" alt="">
</div>
<div class="service-title">Dịch vụ tắm rửa thú cưng</div>
<div class="service-act">Tìm hiểu</div>
</a>
<a href="service-grooming.html" class="service-item ">
<div class="img-container survice-container">
<img src="./library/cut.png" alt="">
</div>
<div class=" service-title">Dịch vụ tỉa lông thú cưng</div>
<div class="service-act">Tìm hiểu</div>
</a>
<a href="service-hotel.html" class="service-item">
<div class="img-container survice-container">
<img src="./library/ads.png" alt="">
</div>
<div class="service-title">Dịch vụ trông giữ thú cưng</div>
<div class="service-act">Tìm hiểu</div>
</a>
</div>
</div>
<!-- homepage blog -->
<div class="homepage-blog">
<div class="homepage-blog-container">
<div class="homepage-blog-item-container">
<div class="homepage-blog--top">
<div class="homepage-blog--top--title">
<h2>• Blog</h2>
<p><i> "Chuyên mục mở rộng kiến thức"</i></p>
</div>
<a href="MarpetNews.html"><button class="btn_in_blog btn_in_homepage">Tìm hiểu thêm</button></a>
</div>
<div class="homepage-blog--bottom">
<div class=" blog-item">
<div class="shadow">
<a href="news1.html"><img src="./library/bl1.jpg" alt=""></a>
<div class="blog-item-title">
<h4>
<a href="news1.html">Cách tự chữa viêm da cho chó mèo tại nhà</a>
</h4>
</div>
</div>
</div>
<div class="blog-item">
<div class="shadow">
<a href="news2.html"><img src="./library/cun-mang-thai.png" alt=""></a>
<div class="blog-item-title">
<h4>
<a href="news2.html">Chế độ dinh dưỡng cho cún mang thai</a>
</h4>
</div>
</div>
</div>
<div class="blog-item">
<div class="shadow">
<a href="news3.html"><img src="./library/blg05701.jpg" alt=""></a>
<div class="blog-item-title">
<h4>
<a href="news3.html">Tắm cho mèo an toàn tại nhà</a>
</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- function tạo chuyển động cho slider banner -->
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("slide-container");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {
slideIndex = 1
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex - 1].style.display = "block";
dots[slideIndex - 1].className += " active";
setTimeout(showSlides, 5000); // Change image every 2 seconds
}
</script>
<div id="footer"></div>
<script>
load("footer.html");
function load(url) {
req = new XMLHttpRequest();
req.open("GET", url, false);
req.send(null);
document.getElementById("footer").innerHTML = req.responseText;
}
</script>
<!-- function để chèn html -->
<script>
w3.includeHTML();
</script>
<!-- js mở chatbox và quay về đầu trang -->
<script src="./js/chatBox&returnTop-btn.js"></script>
<!-- js khi kéo xuống thì hiện 1 thanh nav cố định ở đầu trang web -->
<script src="./js/flat-menu.js"></script>
<script src="./js/searchHeader.js"></script>
<script src="./js/products_detail.js"></script>
<script src="./js/products_detail.js"></script>
<script src="./js/footer.js"></script>
<script src="./js/searchdetails.js"></script>
<script src="./js/searchMobile.js"></script>
</body>
</html>