forked from Manas-ESR/Hacknitr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_olx_html.html
329 lines (211 loc) · 9.31 KB
/
product_olx_html.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!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> Product page </title>
<link rel="stylesheet" href="product_olx.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css" />
</head>
<body>
<!-- =============================== * navbar * ============================================ -->
<div class="hedder">
<div class="navbar">
<img src="images/olx_logo.png">
<div class="contry_select" id="contry">
<div class="select">
<p id="text"> Select Your Contry </p>
<i class="fa-solid fa-chevron-down" id="moving"></i>
</div>
<ul class="option_box" id="list">
<li class="option" onclick="myfunction('USA')">
<i class="fa-solid fa-location-dot"></i>
<p>USA</p>
</li>
<li class="option" onclick="myfunction('Canada')">
<i class="fa-solid fa-location-dot"></i>
<p>Canada</p>
</li>
<li class="option" onclick="myfunction('India')">
<i class="fa-solid fa-location-dot"></i>
<p>India</p>
</li>
<li class="option" onclick="myfunction('Pakistan')">
<i class="fa-solid fa-location-dot"></i>
<p>Pakistan</p>
</li>
<li class="option" onclick="myfunction('New York')">
<i class="fa-solid fa-location-dot"></i>
<p>New York</p>
</li>
</ul>
</div>
<div class="search_box">
<input type="text" class="searchclass" id="searchid" placeholder="Find Cars, mobile phone and More....">
<p> <i class="fa-solid fa-magnifying-glass"></i> </p>
</div>
<div class="language">
<p id="eng_tag"> English </p>
<ul class="hin_eng">
<li onclick="languageolx('English')"> English </li>
<li onclick="languageolx('हिन्दी')">हिन्दी</li>
</ul>
</div>
<div class="messeage">
<i class="fa-regular fa-comment"></i>
</div>
<div class="messeage">
<i class="fa-regular fa-bell"></i>
</div>
<div class="your_logo">
<div class="girl_img" id="girl_img_id">
<img src="images/pic3.jpg">
</div>
<div class="dropdwon" id="gropdwonid">
<div class="nameandimg">
<img src="images/pic3.jpg">
<p> Puja Varma </p>
</div>
<ul>
<li>
<i class="fa-regular fa-user"></i>
<p>My Account</p>
</li>
<li>
<i class="fa-solid fa-box"></i>
<p>My Orders</p>
</li>
<hr>
<li>
<i class="fa-regular fa-circle-question"></i>
<p>Help</p>
</li>
<li>
<i class="fa-solid fa-gear"></i>
<p>Setting</p>
</li>
<hr>
<li>
<i class="fa-solid fa-right-from-bracket"></i>
<p>Log Out</p>
</li>
</ul>
</div>
</div>
<div class="selling_page">
<button> <i class="fa-solid fa-plus"></i>
<p>SELL</p>
</button>
</div>
</div>
</div>
<!-- =============================== * ad 1 * ============================================ -->
<div class="ads_img2">
<img src="images/ad2.jpg">
<i class="fa-regular fa-rectangle-xmark" id="adicon2"></i>
</div>
<!-- =============================== * product img * ============================================ -->
<div class="product_img">
<div class="image_discription">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide"> <img src="images/pro_1.jpg"> </div>
<div class="swiper-slide"> <img src="images/pro_2.jpg"></div>
<div class="swiper-slide"> <img src="images/pro_3.jpg"></div>
<div class="swiper-slide"> <img src="images/pro_4.jpg"></div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev" id="prev"></div>
<div class="swiper-button-next" id="next"></div>
</div>
<div class="descriptiopn">
<h3> descriptiopn </h3>
<p>Convert your TV into smart TV using HDMI of your TV. All online platform available downloaded. <br>
Include MI stick, Bluetooth remote, Power adapter. <br>
Condition new. <br>
MRP 3,500</p>
</div>
</div>
<div class="product_details">
<div class="box">
<div class="price">
<h3> ₹3,500</h3>
<div>
<p><i class="fa-solid fa-share-nodes"></i> </p>
<p> <i class="fa-regular fa-heart"></i> </p>
</div>
</div>
<span> Mi TV Stick </span>
<div class="location">
<p>Ghatkopar West, Mumbai, Maharashtra</p>
<p>Today</p>
</div>
</div>
<div class="box" id="box2">
<p class="Seller_description"> Seller Description </p>
<div class="seller_detail">
<img src="images/pic2.jpg">
<div>
<h2> AsKAki </h2>
<p>Member since Nov 2021</p>
</div>
</div>
<a href="olx_chatbox.html"> Chat with Seller </a>
</div>
<div class="box" id="box3">
<h2> Posted in </h2>
<p>Bandra East, Mumbai</p>
<img src="images/location.png" >
</div>
</div>
</div>
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<script>
// =============================== * navbar * ============================================
let contry = document.getElementById('contry');
let moving = document.getElementById('moving');
let text = document.getElementById('text');
let list = document.getElementById('list');
contry.addEventListener('click', () => {
list.classList.toggle('hidden');
moving.classList.toggle('roted')
});
function myfunction(omkar) {
text.innerHTML = omkar;
}
let eng_tag = document.getElementById('eng_tag');
let hin_eng = document.querySelector('.hin_eng');
let language = document.querySelector('.language');
language.addEventListener('click', () => {
hin_eng.classList.toggle('display_div');
});
function languageolx(anyone) {
eng_tag.innerHTML = anyone;
}
let girl_img_id = document.getElementById('girl_img_id');
let gropdwonid = document.getElementById('gropdwonid');
girl_img_id.addEventListener('click', () => {
gropdwonid.classList.toggle('block_div')
});
// =============================== * ad 2 * ============================================
let adicon2 = document.getElementById('adicon2');
let ads_img2 = document.querySelector('.ads_img2');
adicon2.addEventListener('click', () => {
ads_img2.style = 'display: none';
});
// =============================== * product img* ============================================
const swiper = new Swiper('.swiper', {
loop: true,
pagination: {
el: '.swiper-pagination',
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
</script>
</body>
</html>