-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenData.html
97 lines (88 loc) · 3.54 KB
/
menData.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
<!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>Man's Clothing | J.Crew</title>
<link
rel="stylesheet"
href="https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css"
/>
<link rel="icon" href="https://www.jcrew.com/favicon.ico" />
<link rel="stylesheet" href="./styles/women.css" />
<link rel="stylesheet" href="./styles/index.css" />
</head>
<body>
<!-- --------------------------------------------------Navbar Small Screen------------------------------------------------ -->
<div class="dropdown"></div>
<!-- --------------------------------------------------Navbar---------------------------------------------------------->
<div id="navbar"></div>
<h4 id="have_question">Have a question? We can help.</h4>
<hr />
<!-- --------------------------------------------------Navbar---------------------------------------------------------- -->
<h3 id="intro">SHOP ALL MAN'S CLOTHING</h3>
<p id="tagline">Shop by Size & fit</p>
<div id="sizes">
<!-- <div> -->
<div>XS</div>
<div>S</div>
<div>M</div>
<div>L</div>
<div>X</div>
<div>XL</div>
<div>XXL</div>
<div>SLIM</div>
<div>TALL</div>
<!-- </div> -->
</div>
<div id="filter-bar">
<select name="Filters" id="filter" onchange="attireFilter()">
<option value="usual">Category</option>
<option value="clothing">Clothing</option>
<option value="accessories">Accessories</option>
<option value="shoes">Shoes</option>
</select>
<select name="" id="sorting" onchange="sorting()">
<option value="usual">Featured</option>
<option value="LTH">Price: Low to High</option>
<option value="HTL">Price: High to Low</option>
</select>
</div>
<div id="products_append">
<!-- append products here -->
</div>
<!-- ----------------------------------------------------Footer Part--------------------------------------------------- -->
<hr />
<div id="foot"></div>
<div id="back_footer"></div>
<!-- -------------------------------------------------------------------------------------------------------------------- -->
</body>
</html>
<!-- <script src="./script/manArr.js"></script> -->
<script src="scripts/sidebar.js"></script>
<script src="./scripts/manP.js" type="module"></script>
<script
src="https://kit.fontawesome.com/448b55d940.js"
crossorigin="anonymous"
></script>
<script type="module">
import { navbar, sidebar } from "./components/navbar.js";
import { footer, foot } from "./components/backfooter.js";
document.getElementById("navbar").innerHTML = navbar();
document.querySelector(".dropdown").innerHTML = sidebar();
document.getElementById("back_footer").innerHTML = footer();
document.getElementById("foot").innerHTML = foot();
document.getElementById("logo").addEventListener("click", function () {
window.location.href = "index.html";
});
let query = document.getElementById("LoginSignUp");
let userName = localStorage.getItem("username");
if (userName) {
document.querySelector("#LoginSignUp").innerText = userName;
}
let kart = JSON.parse(localStorage.getItem("cartData"));
let wish = JSON.parse(localStorage.getItem("favItem"));
document.getElementById("wishlist_count").innerText = wish.length;
document.getElementById("cartlist_count").innerText = kart.length;
</script>