forked from web-development-session-content/playo-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvenueDetail.html
457 lines (346 loc) · 18.5 KB
/
venueDetail.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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
<!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">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/venueDetail.css">
<title>Venue Detail</title>
<link rel="stylesheet" href="./styles/footer.css">
</head>
<body id="bodyy">
<div id="outermost_div">
<div style="margin-bottom:1%;" id="navbar"></div>
<!-- gif div start -->
<div id="gif_div">
<a href="https://playo.co/download?utm_source=website&utm_medium=banner">
<img height="100%" src="https://s3.ap-south-1.amazonaws.com/playo-website/gifs/masthead.gif" alt="playo gif">
</a>
</div>
<!-- gif div end -->
<!-- image div start -->
<div id="image_div">
<div id="booknow_div">
<h2 id="name" style="margin: 7.8% 0 0 7.8%; padding: 0; font-size: 28px;"></h2>
<h2 id="ground_name" style="font-style: italic; font-size: 19.5px; line-height: 33px; font-weight: 700; margin: 5% 7%; "></h2>
<!-- rate div start -->
<div id="rate_div">
<p id="rate" style="margin: -0.5% 0 0 9.5%; padding: 0; font-size: 22px; font-weight: bold;"></p>
<p style="margin: -0.5% 0 0 10%; font-size: 21px; padding: 0;" >( <span id="rateCount"></span> Votes )</p>
<p id="rateVenue" style=" cursor: pointer; margin: 0; font-size: 18px; text-decoration: underline; padding: 0; color: white; margin-left: 10%;">Rate venue</p>
</div>
<!-- rate div end -->
<div style="text-align: center;">
<button id="booknow_btn" style="font-size: 18px; font-weight: 600;">Book Now</button>
</div>
</div>
<div id="mask">
<svg id='hideSvg'>
<filter id='sharpBlur'>
<feGaussianBlur stdDeviation='6'></feGaussianBlur>
<feColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 9 0'></feColorMatrix>
<feComposite in2='SourceGraphic' operator='in'></feComposite>
</filter>
</svg>
<div id="blur">
<img id='svgBlur' src='https://playo.gumlet.io/SPORTSALLEY/SouthUnitedFootballClub1640172478587.jpeg?auto=compress%2Cformat&fit=max&mark=https%3A%2F%2Fstorage.googleapis.com%2Fplayoapp%2Flogo%2Fplayo-imgix-white.png&markalign=bottom%2Cright&markalpha=50&markfit=clip&markscale=20&markpad=12&markw=160&w=1446'>
</div>
</div>
<div id="slideshow">
<img class="slide1" src="" alt="Slide 1">
<img class="slide2" src="" alt="Slide 2">
</div>
</div>
<!-- image div end -->
<div id="main_div">
<div id="left_div">
<div id="safehygiene">
<div class="greendivtop"></div>
<div style="display: flex;">
<img width="25px" height="5%" style="margin: 11px 5px 0 15px;" src="https://png.pngtree.com/png-vector/20210828/ourmid/pngtree-protection-health-logo-png-image_3836277.jpg" alt="">
<p style="color: #424242; line-height: 15px; font-size: 14px;">Safe & Hygiene</p>
<a style="color: #424242; margin: 11px 0 0 70%; font-size: 14px; letter-spacing: -0.4px; font-weight: bold;" href="https://blog.playo.co/guidelines-to-playsafe-in-the-times-of-covid-19/">Know More</a>
</div>
<div id="secondDiv">
<div style="margin-top: 6px;">
<!-- <img class="safeicon" src="https://playo.gumlet.net/icons/sanitizer_3x.png" alt=""> -->
<p class="text">Sanitized Court</p>
</div>
<div style="margin-top: 7px;">
<!-- <img class="safeicon" src="https://playo.gumlet.net/icons/mask_3x.png" alt=""> -->
<p class="text">Mask Are Must</p>
</div>
<div>
<!-- <img class="safeicon" src="https://playo.gumlet.net/icons/temp_3x.png" alt=""> -->
<p class="text">Temprature Check</p>
</div>
<div style="margin-top: 2px;">
<!-- <img class="safeicon" src="https://playo.gumlet.net/icons/hand_3x.png" alt=""> -->
<p class="text">Handwash Station</p>
</div>
</div>
<div class="greendivbottom"></div>
</div>
<div id="sportsavailable">
<p id="amenties_text">SPORTS AVAILABLE</p>
<div style=" width: 50px; text-align: center; height: 80px; margin-left: 17px;" >
<!-- <img style="margin-left: 5%;" width="100%" src="https://playo.imgix.net/SPORTICONS/SP2/ic_football_green.png?auto=format,compress&h=70" alt=""> -->
<p style="margin-left: 5%; margin-top: 5px;" id="cat">Football</p>
</div>
</div>
<div id="additionalinfo">
<p id="amenties_text">ADITIONAL INFO</p>
<div style="margin-left: 2%;">
Football: <br>
- It is recommended but not compulsory to wear football studs while playing at the facility.
<br> - Metal studs are not allowed.
</div>
</div>
<div id="amenities">
<p id="amenties_text">AMENTIES</p>
<div id="grid_text">
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Valet Parking</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Restrooms</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Dressing Room</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Sitting Stand</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Gym</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">First Aid</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Shower</p>
</div>
<div class="grid_text_item">
<!-- <img class="check" src="https://playo-website.gumlet.net/venues-listing/check-circle-filled.svg" alt=""> -->
<p style="letter-spacing: 1px; font-size: 15px; font-weight: 100; color: #424242;">Drinking Water</p>
</div>
</div>
</div>
<div id="relatedto">
<p id="relatedto_text">Related to South United Football Club, RBANM's Ground</p>
<a style="text-decoration: none;" href="/"><p style=" margin-left: 10px; font-weight: 2.0; font-size: 13px; letter-spacing: 0.5px; line-height: 18px; color: #808080;">Sports Clubs in RBANM's Ground, Football Grounds in RBANM's Ground, Football Grounds in Bengaluru, Sports Clubs in Bengaluru</p></a>
</div>
</div>
<!-- Right div start -->
<div id="right_div">
<div id="timing">
<p id="amenties_text" style="margin: 0; width: 88%; margin-left: 6%; margin-bottom: 10px;">TIMING</p>
<div id="time_duration">
</div>
</div>
<div id="location">
<p id="amenties_text" style="margin: 0; width: 88%; margin-left: 6%; margin-bottom: 10px;">LOCATION</p>
<div id="address">
</div>
<div id="map_div">
</div>
</div>
<!-- share button -->
<button id="share_btn">Share</button>
<!-- book now button -->
<button id="booknow_btn2" style="margin-left: -8px; font-size: 18px; font-weight: 600;">Book Now</button>
</div>
<!-- Right Div end -->
</div>
<div id="footer">
</div>
<!-- need help button div -->
<a href="contact.html">
<div id="needhelp">
<p>Need help?</p>
<!-- <img id="needhelpiconimage" src="https://playo-website.gumlet.net/venues-listing/maximize.svg" width="10%" height="60%"> -->
</div>
</a>
</body>
</html>
<script type="module">
import nav from "./components/nav.js"
import footer from "./components/footer.js"
let container = document.getElementById("navbar");
container.innerHTML = nav();
let containerf = document.querySelector("#footer");
containerf.innerHTML = footer();
</script>
<script>
// let Guser = localStorage.getItem("Glogin");
// document.querySelector("#myBtn").textContent = "Monu";
//Login and pop up full functionalities start
// document.querySelector("#logo").addEventListener("click", ()=>{
// window.location.href = "index.html";
// })
// navbar popup functionality
// document.querySelector("#giveOTP").style.visibility = "hidden";
// const open = document.getElementById("nav2div");
// const modal_container = document.getElementById("modal_container");
// const close = document.getElementById("close");
// open.addEventListener("click", ()=>{
// modal_container.classList.add("show")
// });
// close.addEventListener("click", ()=>{
// modal_container.classList.remove("show")
// });
// //If user is logged in
// login()
// function login(){
// console.log("test")
// let loginStatus = localStorage.getItem("login")
// console.log(typeof(loginStatus))
// if(loginStatus === "true"){
// let ph = localStorage.getItem("mobileNumber");
// console.log(ph)
// document.querySelector("#myBtn").textContent = ph;
// open.addEventListener("click", ()=>{
// modal_container.classList.remove("show")
// window.location.href = "login_profile.html";
// })
// }
// else{
// return false;
// }
// }
// //When user add mobile number to it
// document.querySelector("#sendOTP").addEventListener("click", ()=>{
// let mobNo = document.querySelector("#input").value;
// if(mobNo.length != 10){
// alert("Please Give correct Mobile Number");
// }
// else{
// localStorage.setItem("mobileNumber", mobNo);
// // modal_container.style.visibility = "hidden";
// // document.querySelector(".loginp")
// document.querySelector("#entermobile").textContent = `We have sent an OTP to ${mobNo}`;
// document.querySelector("#rem1").style.visibility = "hidden";
// document.querySelector("#rem2").style.visibility = "hidden";
// document.querySelector("#countryDrop").style.visibility = "hidden";
// document.querySelector("#input").value = null;
// document.querySelector("#input").placeholder = "Enter OTP"
// document.querySelector("input").style.textAlign = "center";
// document.querySelector("#sendOTP").style.visibility = "hidden";
// document.querySelector("#giveOTP").style.visibility = "visible";
// document.querySelector("#giveOTP").addEventListener("click", ()=>{
// let otp = document.querySelector("input").value;
// if(otp == "123456"){
// // alert("success");
// modal_container.classList.remove("show")
// document.querySelector("#myBtn").textContent = mobNo;
// localStorage.setItem("login", true);
// open.addEventListener("click", ()=>{
// modal_container.classList.remove("show")
// window.location.href = "login_profile.html";
// login()
// })
// }
// else{
// alert("Wrong OTP");
// document.querySelector("#entermobile").textContent = `Enter Your mobile number`;
// document.querySelector("#rem1").style.visibility = "visible";
// document.querySelector("#rem2").style.visibility = "visible";
// document.querySelector("#countryDrop").style.visibility = "visible";
// document.querySelector("#input").value = null;
// document.querySelector("#input").placeholder = "Enter Mobile Number"
// document.querySelector("#sendOTP").style.visibility = "visible";
// document.querySelector("#giveOTP").style.visibility = "hidden";
// }
// })
// }
// })
//Login and pop up full functionalities end
// time_duration
// Retrieve image URLs from local storage
// console.log(image1);
// // Set image source for each slide
// const slides = document.getElementsByClassName('slide1');
// const slides2 = document.getElementsByClassName('slide2');
// slides.src = image1;
// slides2.src = image2;
// let currentSlide = 0;
// function showSlide(slideIndex) {
// // Remove active class from all slides
// for (let i = 0; i < slides.length; i++) {
// slides[i].classList.remove('active');
// }
// // Add active class to the current slide
// slides[slideIndex].classList.add('active');
// }
// function nextSlide() {
// currentSlide = (currentSlide + 1) % slides.length;
// showSlide(currentSlide);
// }
// // Start the slideshow
// showSlide(currentSlide);
// setInterval(nextSlide, 3000); // Change slide every 3 seconds
//Append value
// var image = localStorage.getItem(singleVenueImage);
// var image2 = localStorage.getItem(singleVenueImage2);
let loc = JSON.parse(localStorage.getItem("singleVenueLocation"));
console.log(loc)
document.getElementById("address").textContent=loc;
let nam = JSON.parse(localStorage.getItem("singleVenueName"));
document.querySelector("#name").textContent = nam;
document.querySelector("#ground_name").textContent = "RBANM's Ground";
// // document.querySelector("#rate").textContent = rating;
let vote = localStorage.getItem("votes");
document.querySelector("#rateCount").textContent = vote;
let time_duration = JSON.parse(localStorage.getItem("singleVenueTiming"));
document.querySelector("#time_duration").textContent = time_duration;
// // document.querySelector("#cat").textContent = category;
// document.querySelector("#notBlur").src = "https://playo-activities.gumlet.io/SEHWAGCRICKETACADEMY/SehwagCricketAcademycover1509335108795.jpg?q=40";
// document.querySelector("#svgBlur").src = image2;
let map_div = document.getElementById("map_div");
map_div.innerHTML = `<iframe
width= "100%"
height= "100%"
style="border:0"
loading="lazy"
allowfullscreen
src="https://maps.google.com/maps?q=${loc}&t=&z=13&ie=UTF8$iwloc=&output=embed">
</iframe>`
let rateVenue = document.getElementById("rateVenue");
let different_ratings = document.getElementById("different_ratings");
rateVenue.addEventListener("click", ()=>{
different_ratings.classList.add("show")
})
// let category = filter_by[0];
let count = 0;
document.addEventListener('click', (event)=>{
if(event.target) {
count++;
}
if(count == 2) {
count =0;
different_ratings.classList.remove("show")
}
});
// mobile page append here
document.addEventListener("click", (event) => {
if (!event.target.matches('.bodyy') && event.target.matches('.different_ratings')) {
different_ratings.classList.add("");
}
}, true)
document.querySelector("#booknow_btn").addEventListener("click", ()=>{
window.location.href = "bookVenue.html";
})
document.querySelector("#booknow_btn2").addEventListener("click", ()=>{
window.location.href = "bookVenue.html";
})
</script>