-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dog-Product.html
195 lines (188 loc) · 7.16 KB
/
Dog-Product.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
<!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" />
<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>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript" ></script>
<link rel="stylesheet" href="./css/product.css" />
<link rel="stylesheet" href="./css/footer.css">
<link rel="stylesheet" href="./css/style.css">
<script>
function getUrlParams() {
var params = {};
var queryString = window.location.href.replace(
/[?&]+([^=&]+)=([^&]*)/gi,
function (m, key, value) {
params[key] = value;
}
);
return params;
}
var category = unescape(getUrlParams().category);
</script>
</head>
<body>
<!-- chèn html header -->
<!-- <div w3-include-html="header.html"></div> -->
<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="container" style="overflow: auto">
<div class="category thayDoiHinhDang">
<div class="category_content footer_content--left">
<h2>Danh mục</h2>
<ul class="category-list">
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_fo">Thức ăn</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_cl">Quần áo</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_co"
>Vòng cổ, dây dắt, rọ mõm</a
>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_ds">Dụng cụ ăn uống</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_be"
>Mỹ phẩm, dụng cụ làm đẹp</a
>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_ca"
>Chuồng, giường, nhà túi</a
>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_toy"
>Đồ chơi, phụ kiện huấn luyện</a
>
</li>
</ul>
</div>
</div>
<div class="category xuatHien">
<ul class="accordion-menu">
<li>
<div class="dropdownlink">
<i class="fa fa-clipboard-list"></i> Danh mục
<i class="fa fa-chevron-down" aria-hidden="true"></i>
</div>
<ul class="category-list submenuItems">
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_fo">Thức ăn</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_cl">Quần áo</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_co"
>Vòng cổ, dây dắt, rọ mõm</a
>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_ds">Dụng cụ ăn uống</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_be"
>Mỹ phẩm, dụng cụ làm đẹp</a
>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_ca">Chuồng, giường, nhà túi</a>
</li>
<li class="category-item category-item--active">
<a href="Dog-Product.html?category=d_toy"
>Đồ chơi, phụ kiện huấn luyện</a
>
</li>
</ul>
</li>
</ul>
</div>
<div class="wrapper">
<div class="headline" id="title-pro"></div>
<script>
var title = document.getElementById("title-pro");
if (category == "d_fo") {
title.innerText = "Thức ăn";
} else if (category == "d_cl") {
title.innerText = "Quần áo";
} else if (category == "d_ds") {
title.innerText = "Dụng cụ ăn uống";
} else if (category == "d_co") {
title.innerText = "Vòng cổ, dây dắt, rọ mõm";
} else if (category == "d_ca") {
title.innerText = "Chuồng, giường, nhà, túi";
} else if (category == "d_toy") {
title.innerText = "Đồ chơi, phụ kiện, huấn luyện";
} else if (category == "d_be") {
title.innerText = "Mỹ phẩm, dụng cụ làm đẹp";
}
else{
title.innerText ="Chó";
}
</script>
<!-- <a href=""> -->
<div class="products" id="product"></div>
<!-- </a> -->
</div>
</div>
<!-- chèn html footer -->
<!-- <div w3-include-html="footer.html"></div> -->
<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>
<!-- js xổ ra các mục nhỏ của footer khi trình duyệt thu nhỏ -->
<script src="./js/footer.js"></script>
<script src="./js/products_detail.js"></script>
<script src="./js/dog-product.js"></script>
<script src="./js/searchHeader.js"></script>
<script src="./js/searchdetails.js"></script>
<script src="./js/searchMobile.js"></script>
</body>
</html>