-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShowsearch.html
124 lines (119 loc) · 4.19 KB
/
Showsearch.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
<!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/showsearch.css" />
<link rel="stylesheet" href="./css/footer.css" />
<link rel="stylesheet" href="./css/style.css">
<script>
// function utf8Decode(utf8String) {
// if (typeof utf8String != "string")
// throw new TypeError("parameter ‘utf8String’ is not a string");
// // note: decode 3-byte chars first as decoded 2-byte strings could appear to be 3-byte char!
// const unicodeString = utf8String
// .replace(
// /[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, // 3-byte chars
// function (c) {
// // (note parentheses for precedence)
// var cc =
// ((c.charCodeAt(0) & 0x0f) << 12) |
// ((c.charCodeAt(1) & 0x3f) << 6) |
// (c.charCodeAt(2) & 0x3f);
// return String.fromCharCode(cc);
// }
// )
// .replace(
// /[\u00c0-\u00df][\u0080-\u00bf]/g, // 2-byte chars
// function (c) {
// // (note parentheses for precedence)
// var cc =
// ((c.charCodeAt(0) & 0x1f) << 6) | (c.charCodeAt(1) & 0x3f);
// return String.fromCharCode(cc);
// }
// );
// return unicodeString;
// }
function getUrlParams() {
var params = {};
var queryString = window.location.href.replace(
/[?&]+([^=&]+)=([^&]*)/gi,
function (m, key, value) {
params[key] = value;
}
);
return params;
}
var search = utf8Decode(unescape(getUrlParams().search));
alert(search);
</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="wrapper">
<!-- <div class="headline" id="title-pro"></div> -->
<div id="showsearch"></div>
</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/searchdetails.js"></script>
<script src="./js/dog-product.js"></script>
<script src="./js/cat-product.js"></script>
<script src="./js/searchMobile.js"></script>
</body>
</html>