forked from anandsinghyadav/Ebay-Website-Clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actionAndFigure.html
302 lines (231 loc) · 8.81 KB
/
actionAndFigure.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!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>Comics Page</title>
<link rel="stylesheet" href="collectiblesAndArt.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
<script src="./script/data.js"></script>
<script src="https://kit.fontawesome.com/1cb0bb75dc.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- top navber and bottom navbar -->
<div id="sc1">
<div id="sc11">
<h4 id="sc111">Hi! <a href="signin.html">Sign in</a> or <a href="register.html">register</a></h4>
<h4> <a href="" style="color:black; text-decoration: none; ">Daily Deals</a></h4>
<h4><a href="" style="color:black; text-decoration: none;">Help & Contact</a></h4>
</div>
<div id="sc12">
<h4>Sell </h4>
<h4>Watchlist <i class="fa-solid fa-angle-down"></i></h4>
<div id="helloMouse">
<h4 onclick="window.location.href='signin.html'">My eBay<i class="fa-solid fa-angle-down"></i></h4>
<div id="absolute_My_eBay">
<a href="">
<p>Summary</p>
</a>
<a href="">
<p>Recently Viewed</p>
</a>
<a href="">
<p> Bids/Offers</p>
</a>
<a href="watchlist.html">
<p>Watchlist</p>
</a>
<a href="">
<p>Purchase History</p>
</a>
<a href="">
<p>Buy Again</p>
</a>
<a href="">
<p>Selling</p>
</a>
<a href="saved.html">
<p>Saved Searches</p>
</a>
<a href="">
<p>Saved Sellers</p>
</a>
<a href="">
<p>Messages</p>
</a>
</div>
</div>
<div style="padding:3.5%;" id="sc121">
<i class="fa-solid fa-bell"></i>
<div id="sc122">
<h1>You are all caught up!</h1>
</div>
</div>
<div style="margin:5%;" id="sc13">
<i class="fa-solid fa-cart-shopping"></i>
<div id="sc131">
<h1>Your cart is empty</h1>
<h3>Time to start shopping!</h3>
</div>
<P id="cartData">3</P>
</div>
</div>
</div>
<hr style="margin-top:-1%; color: #f1ebeb;">
<!--
1st nav bar ends here
-->
<div id="sc2">
<div id="sc21" onclick="window.location.href='index.html'">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/EBay_logo.svg/1200px-EBay_logo.svg.png"
alt="">
</div>
<div id="sc22">
<p>
Shop by category
</p>
<i class="fa-solid fa-angle-down"></i>
</div>
<div id="sc23">
<i class="fa-solid fa-magnifying-glass" style="margin-left: 5px;"></i>
<input type="text" name="" id="">
<div>
<button name="" id="">
All category
</button>
<i class="fa-solid fa-angle-down"></i>
</div>
</div>
<button>
Search
</button>
</div>
<div id="sc3">
<hr>
</div>
<h2 id="headLine">Actions Figures</h2>
<div id="comicsContainer">
<div id="comicsFilter">
<h3 id="comicH">Shop by Category</h3>
<p id="comicCol">Actions</p>
<div id="cFil">
<p>Toys & Hobbies</p>
<p><a href="actionAndFigure.html"></a>Action Figures & Accessories</p>
<p><a href="actionAndFigure.html">Action Figures</a></p>
<p><a href="actionAndFigure.html">Action Figures Playsets</a></p>
<p><a href="actionAndFigure.html">Action Figures Accessories</a></p>
<p><a href="actionAndFigure.html">Action Figures Parts</a></p>
<p><a href="actionAndFigure.html">Mixed Lots</a></p>
<p><a href="actionAndFigure.html">Action Figures & Supplies Storage</a></p>
<p><a href="actionAndFigure.html">Actions</a></p>
</div>
</div>
<div id="comicsShop">
<h2 id="chslide">Shop by Category</h2>
<div id="comicSlider">
<div>
<img src="https://i.ebayimg.com/thumbs/images/g/cpQAAOSwMVFXH2AI/s-l225.webp" alt="">
<p><a href="">Action Figures</a></p>
</div>
<div>
<img src="https://i.ebayimg.com/thumbs/images/g/kjEAAOxyCGNTPE~h/s-l225.webp" alt="">
<p><a href="">Action Figures Accessories</a></p>
</div>
<div>
<img src="https://i.ebayimg.com/thumbs/images/g/2tUAAOSwzJpeTrco/s-l225.webp" alt="">
<p><a href="">Action Figures Parts</a></p>
</div>
<div>
<img src="https://i.ebayimg.com/thumbs/images/g/t9MAAOSw7rReTT9G/s-l225.webp" alt="">
<p><a href="">Playsets</a></p>
</div>
<div>
<img src="https://i.ebayimg.com/thumbs/images/g/IDIAAOSwGL1barSH/s-l225.webp" alt="">
<p><a href="">Mixed Lots</a></p>
</div>
<div>
<img src="https://i.ebayimg.com/thumbs/images/g/keEAAOSwAUBeTuqq/s-l225.webp" alt="">
<p><a href="">Action Figurs supplies & storage</a></p>
</div>
</div>
<div onclick="rightOne()" id="rightArC"><i class="fas fa-angle-left"></i></div>
<div onclick="leftOne()" id="leftArC"><i class="fas fa-angle-right"></i></div>
<div id="proGrader">
<h2>Shop by Professional Grader</h2>
<div>
<p>Certified Guranty..</p>
<p>Action and Figures Certification..</p>
<p>Professional Grading Experts..</p>
</div>
</div>
<div id="comicData">
</div>
</div>
</div>
</body>
</html>
<script>
let eee;
let slider = document.querySelector("#comicSlider");
function rightOne()
{
console.log("yes");
eee = 100;
let s = setInterval(() => {
eee--;
if (eee < 1) {
clearInterval(s);
}
slider.scrollBy(10, 0);
}, 5);
};
function leftOne()
{
console.log("yes");
eee = 100;
let s = setInterval(() => {
eee--;
if (eee < 1) {
clearInterval(s);
}
slider.scrollBy(-10, 0);
}, 5);
};
</script>
<script type="module">
let data = await JSON.parse(localStorage.getItem("items"));
var comic = document.getElementById("comicData");
import appendData from "./components/Amain.js";
appendData(data, comic);
</script>
<script>
let cat = JSON.parse(localStorage.getItem('yourCart')) || 0;
let xA = document.getElementById('cartData');
xA.innerHTML = cat.length;
xA.addEventListener('click', () => {
window.location.href = 'cart.html';
});
let flagfornav = JSON.parse(localStorage.getItem("flagforindex"))
let logindata = JSON.parse(localStorage.getItem("loginData"))
let namefornav = logindata[0].name
console.log(flagfornav)
if (flagfornav == true) {
console.log(namefornav)
document.querySelector("#sc111").textContent = namefornav
}
</script>
<script>
let shubham001 = document.querySelector("#sc23 > input[type=text]")
shubham001.addEventListener("keypress", function (event) {
if (event.code == "Enter") {
localStorage.setItem("search_term", shubham001.value);
window.location.href = "MahiArt.html";
}
})
document.querySelector("#sc2 > button").addEventListener("click", function (event) {
localStorage.setItem("search_term", shubham001.value)
window.location.href = "MahiArt.html"
})
</script>