Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My task is 70% done #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 57 additions & 26 deletions activities.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div id="explorenavbar" style="height: 50px; margin-bottom: 50px;">
<div id="logodiv" >
<a href="index.html">
<img id="logo" src="https://playo-website.imgix.net/company/logo1.png?auto=compress,format" alt="playo logo" style="margin-top: 7px;">
<img id="logo" src="https://playo.co/_next/image?url=https%3A%2F%2Fplayo-website.gumlet.io%2Fplayo-website-v2%2FLogo%2Bwith%2BTrademark_Filled.png%3Fq%3D20%26format%3Dauto&w=1920&q=75" alt="playo logo" style="margin-top: -3px;">
</a>
</div>

Expand All @@ -30,7 +30,7 @@

<!-- -->
<div id="searchbar" style="margin-bottom: 25px;">
<input type="text" id="typesearch" placeholder="Type a city" style="border: 1px solid grey; border-top-left-radius: 2px; border-top-right-radius: 2px;">
<input type="text" id="typesearch" oninput="debounce(main,1000)" placeholder="Type a city" style="border: 1px solid grey; border-top-left-radius: 2px; border-top-right-radius: 2px;">
<button id="searchbtn" >Detect</button>
</div>

Expand Down Expand Up @@ -539,7 +539,9 @@
'Udham Singh Nagar',
'Uttarkashi'];
city_names.sort((a,b)=>a-b);
//console.log(city_names)
// console.log(city_names)
localStorage.setItem("city",JSON.stringify(city_names));


for(var i=0; i<city_names.length; i++){
var showcities=document.querySelector("#citynames");
Expand Down Expand Up @@ -649,38 +651,67 @@



</script>
<script>

let cityName=JSON.parse(localStorage.getItem("city"))||[];


// console.log(cityName);
let id;
const debounce = (func) => {
if (id) {
clearTimeout(id);
}
id = setTimeout(() => {
func();
}, 2000);
};

function main(){
let inputData=document.getElementById("typesearch").value;
let length1=inputData.length;
console.log(inputData+" "+length1)

var showcities=document.querySelector("#citynames");
showcities.innerHTML=null;

for(var i=0; i<cityName.length; i++){
let str1="";
let str=cityName[i];
for(var j=0;j<length1;j++){

str1+=str[j];
}
if(str1==inputData){
console.log(str1)
var p=document.createElement("p");
p.addEventListener("click",()=>{


let data = {
city: document.getElementById("typesearch").value,

};

let location = localStorage.setItem("name", JSON.stringify(data));
window.location.href = "explore.html";
})
var line=document.createElement("hr");
p.innerHTML=cityName[i];
showcities.append(p,line);
}
}


}
// document.querySelector("#searchbtn").addEventListener("click",()=>{
// let data = {
// city: document.getElementById("typesearch").value,

// };























</script>
// let location = localStorage.setItem("name", JSON.stringify(data));
// window.location.href = "explore.html";
// })
</script>
16 changes: 8 additions & 8 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@

<div id="sports-news">SPORTS</div>
<div id="health-news">HEALTH</div>
<div>CRICKET</div>
<div>FOOTBALL</div>
<div>TENNIS</div>
<div>QUIZ</div>
<div id="cricket-news">CRICKET</div>
<div id="football-news">FOOTBALL</div>
<div id="tennis-news">TENNIS</div>
<div id="quiz-news">QUIZ</div>


</div>
Expand All @@ -86,9 +86,9 @@

<!-- Static News -->

<div class="static-news">
<!-- <div class="static-news">

<div id="first-blog">
<div id="first-blog">
<img src="https://blog.playo.co/wp-content/uploads/2021/10/playo-wants-you-351x185.jpg" alt="">
<div>
<div>NOVEMBER 16,2021</div>
Expand All @@ -105,8 +105,8 @@
<div>Covid Guidelines to #PlaySafe in these times</div>
</div>
<div>COVID SAFETY GUIDELINES Playing during Omicron Scare?... </div>
</div>
</div>
</div> -->
<!-- </div> -->

<!-- Dynamic News -->
<div class="dynamic-news">
Expand Down
2 changes: 1 addition & 1 deletion bookVenue.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div id="explorenavbar">

<div id="logodiv" >
<img id="logo" src="https://playo-website.imgix.net/company/logo1.png?auto=compress,format" alt="playo logo">
<img id="logo" src="https://playo-website.imgix.net/company/logo1.png?auto=compress,format" alt="playo logo1">
</div>

<div id="nav2div">
Expand Down
19 changes: 19 additions & 0 deletions bookvenue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"posts": [
{
"id": 1,
"title": "json-server",
"author": "typicode"
}
],
"comments": [
{
"id": 1,
"body": "some comment",
"postId": 1
}
],
"profile": {
"name": "typicode"
}
}
44 changes: 22 additions & 22 deletions components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,30 @@ function footer()
return `<div id="infooter">
<div id="div1">
<div id="weblogo">
<a href="index.html"><img src="https://playo-website.gumlet.net/logo/playo-logo-footer-website.png?auto=format,compress&h=100" alt="logo" width="100%" height="100%"></a>
</div>
<a href="index.html"><img src="https://playo-website.gumlet.io/playo-website-v2/Logo+with+Trademark_Filled.png" alt="logo" width="100%" height="100%"></a>
</div>
<p id="para1">Your Sports Community App</p>

<div id="playstore">
<a href="https://play.google.com/store/apps/details?id=com.techmash.playo">
<img src="https://playo-website.gumlet.net/icons/download-android.png?auto=format,compress " >
<img src="https://playo.co/_next/image?url=https%3A%2F%2Fplayo-website.gumlet.io%2Fplayo-website-v2%2Fstatic_pages%2FPlay%2Bstore.png&w=1920&q=75"width=170px>
</a>

<a href="https://apps.apple.com/us/app/playo-local-sports-community/id1018786950?ls=1">
<img src="https://playo-website.gumlet.net/icons/download-ios.png?auto=format,compress" >
<img src="https://playo.co/_next/image?url=https%3A%2F%2Fplayo-website.gumlet.io%2Fplayo-website-v2%2Fstatic_pages%2Fapple-padding-2x.png&w=1920&q=75"width=170px>
</a>
</div>
<div id="loweritems">
<a href="faq.html"><p>FAQs</p></a>
<a href=""><p>Privacy POlicy</p></a>
<a href=""><p>Terms Of Service</p></a>
<a href=""><p>Cancellation & Refund Policy</p></a>
<a href=""><p>Careers</p></a>
<a href=""><p id="hiring">We're Hiring!</p></a>
</div>
<div id="copyright">
<p>©2022 TechMash Solutions Private Limited.<span> All Rights Reserved.</span></p>
</div>
<div id="loweritems">
<a href="faq.html"><p>FAQs</p></a>
<a href=""><p>Privacy POlicy</p></a>
<a href=""><p>Terms Of Service</p></a>
<a href=""><p>Cancellation & Refund Policy</p></a>
<a href=""><p>Careers</p></a>
<a href=""><p id="hiring">We're Hiring!</p></a>
</div>
</div>
<div id="div2">
<a href="about.html"><p>About Us</p></a>
Expand All @@ -36,17 +39,14 @@ function footer()
<a href="corporate.html"><p>Corporate Offerings</p></a>
<a href="contact.html"><p>contact Us</p></a>
</div>
<div id="div3">
<a href="venues.html"><p>Book Venues</p></a>
<a href="activities.html"><p>Activities</p></a>
<a href="blog.html"><p>Blog</p></a>
<a href="faq.html"><p>FAQ's</p></a>
</div>

<div id="div4">
<a href="https://www.facebook.com/PlayoApp/"><p>Facebook</p></a>
<a href="https://twitter.com/playoApp"><p>Twitter</p></a>
<a href="https://www.instagram.com/playoapp/"><p>Instagram</p></a>
<a href="https://www.linkedin.com/company/playo"><p>LinkdIn</p></a>
<a href="https://www.facebook.com/PlayoApp/">
<img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-instagram.png"width=40px>
</a>
<a href="https://twitter.com/playoApp"> <img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-facebook.png"width=40px></a>
<a href="https://www.instagram.com/playoapp/"> <img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-linkedin.png"width=40px></a>
<a href="https://www.linkedin.com/company/playo"> <img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-twitter.png" width=40px></a>
</div>
</div>`
}
Expand Down
Loading