-
Notifications
You must be signed in to change notification settings - Fork 1
/
men_shirt.html
158 lines (150 loc) · 5.22 KB
/
men_shirt.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
<!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>Shirts</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<link rel="stylesheet" href="nav.css" />
<style>
* {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
#women_jacket_container {
width: 100%;
height: auto;
display: grid;
justify-content: center;
}
#women_con {
margin-top: 150px;
width: 400px;
height: 600px;
/* border: 1px solid; */
display: flex;
overflow-x: scroll;
/* overflow: hidden; */
}
/* #women_con::-webkit-scrollbar {
width: 0;
} */
#women_con img {
width: 100%;
}
#title_price {
width: 400px;
font-size: 13px;
padding: 5px 0px;
}
</style>
</head>
<body>
<!--..................... Whole Navbar & Sidebar .........................-->
<!--........................ navbar start ......................-->
<div id="div_header"></div>
<!--.............................. sidebar End ..............................-->
<!--..................... Whole Navbar & Sidebar End.........................-->
<div id="women_jacket_container">
<!-- <div id="title_price"></div> -->
</div>
</body>
</html>
<script src="nav_script.js" type="module"></script>
<script>
var jeans = [
{
image_url:
"https://static.zara.net/photos///2021/I/0/1/p/6164/174/800/2/w/750/6164174800_1_1_1.jpg?ts=1629297376936",
name: "Z1975 MOM JEANS",
desc: "FADED HIGH-WAIST JEANS FEATURING A FIVE-POCKET DESIGN AND ZIP FLY AND METAL TOP BUTTON FASTENING.",
price: 2790.0,
color: "black",
},
{
image_url:
"https://static.zara.net/photos///2021/I/0/1/p/5862/180/407/3/w/750/5862180407_1_1_1.jpg?ts=1629298398070",
name: "Z1975 MOM JEANS",
desc: "FADED HIGH-WAIST JEANS FEATURING A FIVE-POCKET DESIGN AND ZIP FLY AND METAL TOP BUTTON FASTENING.",
price: 2790.0,
color: "blue",
},
{
image_url:
"https://static.zara.net/photos///2021/I/0/1/p/6164/174/427/2/w/750/6164174427_1_1_1.jpg?ts=1629297398103",
name: "Z1975 MOM JEANS",
desc: "FADED HIGH-WAIST JEANS FEATURING A FIVE-POCKET DESIGN AND ZIP FLY AND METAL TOP BUTTON FASTENING.",
price: 2790.0,
color: "white",
},
{
image_url:
"https://static.zara.net/photos///2021/I/0/1/p/6164/228/427/2/w/750/6164228427_2_1_1.jpg?ts=1633078881318",
name: "Z1975 HIGH-RISE STRAIGHT JEANS",
desc: "FADED HIGH-WAIST JEANS WITH A FIVE-POCKET DESIGN AND STRAIGHT-LEG DESIGN. SEAMLESS HEMS. FASTENS AT THE FRONT WITH METAL BUTTONS.",
price: 2990.0,
color: "blue",
},
{
image_url:
"https://static.zara.net/photos///2021/I/0/1/p/6164/199/800/2/w/750/6164199800_2_1_1.jpg?ts=1629896977723",
name: "Z1975 HIGH-RISE STRAIGHT JEANS",
desc: "FADED HIGH-WAIST JEANS FEATURING A FIVE-POCKET DESIGN AND ZIP FLY AND METAL TOP BUTTON FASTENING.",
price: 2790.0,
color: "black",
},
];
append(jeans);
function append(res) {
let container = document.getElementById("women_jacket_container");
res.forEach((el) => {
let div = document.createElement("div");
div.id = "women_con";
div.addEventListener("click", function () {
localStorage.setItem("myProducts", JSON.stringify(el));
window.location.href = "mybag.html";
});
let div2 = document.createElement("div");
div2.id = "title_price";
let image = document.createElement("img");
image.src = el.image_url;
// let image1 = document.createElement("img");
// image1.src = el.img2;
let title = document.createElement("p");
title.innerText = el.name;
let price = document.createElement("p");
price.innerText = `₹ ${el.price}`;
div.append(image);
container.append(div);
div2.append(title, price);
container.append(div2);
});
}
function showsidemenu() {
document.getElementById("sidebar").style.display = "grid";
document.getElementById("content").style.scroll = "";
}
function closesidemenu() {
document.getElementById("sidebar").style.display = "none";
}
function womensidebar() {
document.getElementById("sidemenudata-women").style.display = "flex";
document.getElementById("sidemenudata-men").style.display = "none";
document.getElementById("sidemenudata-kid").style.display = "none";
}
function mensidebar() {
document.getElementById("sidemenudata-men").style.display = "flex";
document.getElementById("sidemenudata-women").style.display = "none";
document.getElementById("sidemenudata-kid").style.display = "none";
}
function kidsidebar() {
document.getElementById("sidemenudata-kid").style.display = "flex";
document.getElementById("sidemenudata-women").style.display = "none";
document.getElementById("sidemenudata-men").style.display = "none";
}
</script>