Skip to content

done #5

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

Open
wants to merge 2 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
4 changes: 2 additions & 2 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
</div>
<!-- these div for right side image only -->
<div id="rightourstory">
<img src="https://playo-website.gumlet.net/company/images/story1.png?auto=compress,format" width="100%" height="100%">
<img src="https://playo.co/_next/image?url=https%3A%2F%2Fplayo-website.gumlet.io%2Fplayo-website-v2%2Fstatic_pages%2FOur%2BStory%2BImages%2B-%2BWith%2BPattern.png&w=640&q=60" width="100%" height="100%">
</div>
</div>

<!-- these div for our story second image wala div -->
<div id="ourstorysecond">
<div id="oursecondimg">
<img src="https://playo-website.gumlet.net/company/images/story2.png?auto=compress,format" width="70%" height="100%">
<img src="https://playo.co/_next/image?url=https%3A%2F%2Fplayo-website.gumlet.io%2Fplayo-website-v2%2Fstatic_pages%2FOur%2BStory%2BImages%2B-%2BWith%2BPattern.png&w=640&q=60" width="70%" height="100%">
</div>
<div class="oursecondtext">
<p class="ourstorytext">
Expand Down
123 changes: 111 additions & 12 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-website.gumlet.io/playo-website-v2/Logo+with+Trademark_Filled.png" alt="playo logo" style="margin-top: -2px;">
</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" 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 @@ -541,8 +541,28 @@
city_names.sort((a,b)=>a-b);
//console.log(city_names)

// function D_Fun_C(data){
// data.map((({city})=>{
// var showcities=document.querySelector("#citynames");
// var p=document.createElement("p");
// var line=document.createElement("hr");
// p.innerHTML=city;

// showcities.append(p,line);
// })
// }








// cities list appending here

for(var i=0; i<city_names.length; i++){
var showcities=document.querySelector("#citynames");
var showcities=document.querySelector("#citynames");
var p=document.createElement("p");
var line=document.createElement("hr");
p.innerHTML=city_names[i];
Expand Down Expand Up @@ -622,18 +642,18 @@
// localStorage.setItem("myLocal",JSON.stringify(arr))
// }

// function find() {
// // let c= document.getElementById("cities").value
// // console.log(c)
function find() {
let c= document.getElementById("cities").value
console.log(c)

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

// };
};

// let location = localStorage.setItem("name", JSON.stringify(data));
// window.location.href = "explore.html";
// }
let location = localStorage.setItem("name", JSON.stringify(data));
window.location.href = "explore.html";
}


document.querySelector("#searchbtn").addEventListener("click",()=>{
Expand All @@ -655,6 +675,85 @@



// debouncing funvtion

document.getElementById("typesearch").addEventListener("keyup",()=>{
debounce(mainFun);
});

let id;
function debounce(func){
if(id){
clearTimeout(id);
}
id = setTimeout(() => {
func();
},500)
};


const mainFun = async () => {
let query1 = document.getElementById("typesearch").value;
try{
let response = await fetch(`http://localhost:3000/City_name?q=${query1}`);
let data = await response.json();
console.log(data);
showDataFun(data);
}
catch(err){
console.log(err);
}

}

var showcities1=document.querySelector("#citynames");
function showDataFun(data){
showcities1.innerHTML = "";
data.forEach(function(elem){
var p=document.createElement("p");
var line=document.createElement("hr");
p.innerText = elem.city;
showcities1.append(p,line)
})

}




// const debounce = (func,delay) =>{
// let id;
// return function(query){
// if(id){
// clearTimeout(id);
// }
// id=setTimeout(function(){
// func(query);
// },delay)
// }
// }

// function fetchItems(query){
// console.log(query)
// var showcities1=document.querySelector("#citynames");
// var p1=document.createElement("p");
// var line1=document.createElement("hr");
// for(var i=0;i<city_names.length;i++){
// if(query == city_names[i]){
// p1.innerHTML=city_names[i];
// showcities1.append(p1,line1);
// }

// }

// }

// let betterFetchItems = debounce(fetchItems,500);

// let input = document.getElementById("typesearch");
// input.addEventListener("keyup",function(e){
// betterFetchItems(e.target.value);
// })



Expand Down
12 changes: 9 additions & 3 deletions bookVenue.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
</style>
</head>
<body>

<!-- Navbar div -->
<div id="navbar_container"></div>

<div id="navbar" style="margin-bottom: 15px;">
<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.gumlet.io/playo-website-v2/Logo+with+Trademark_Filled.png" alt="playo logo">
</div>

<div id="nav2div">
<img id="pplogo" src="https://playo-website.gumlet.net/playo_functional/Icons/user_blank.svg" alt="">
<img id="pplogo" src="https://playo-website.gumlet.io/playo-website-v2/Logo+with+Trademark_Filled.png" alt="">
<p id="myBtn" class="loginp">Login/Signup</p>
<img id="dropdownarrow" src="https://playo-website.gumlet.net/playo_functional/Icons/arrow_light.svg" alt="arrow">
</div>
Expand Down Expand Up @@ -233,7 +237,9 @@
</div>
</a>


<!-- footer container start -->
<div id="footer"></div>
<!-- footer container end -->

</body>
</html>
Expand Down
1 change: 1 addition & 0 deletions components/apicall.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


async function apiCall(url){
try{
let response = await fetch(url);
Expand Down
17 changes: 10 additions & 7 deletions components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ 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>
<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>
<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://www.freepnglogos.com/uploads/google-play-png-logo/new-get-it-on-google-play-png-logo-20.png " height="100%" width="100%">
</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://www.freepnglogos.com/uploads/app-store-logo-png/available-the-app-store-badge-vector-11.png" height="100%" width="100%">
</a>
</div>
<div id="copyright">
Expand Down Expand Up @@ -43,10 +43,13 @@ function footer()
<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-facebook.png" ></a>
<br><br>
<a href="https://twitter.com/playoApp"><img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-twitter.png"></a>
<br><br>
<a href="https://www.instagram.com/playoapp/"><img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-instagram.png"></a>
<br><br>
<a href="https://www.linkedin.com/company/playo"><img src="https://playo-website.gumlet.io/playo-website-v2/static_pages/footer-linkedin.png"></a>
</div>
</div>`
}
Expand Down
2 changes: 1 addition & 1 deletion components/navbarblack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function navbar()
{
return `<div id="navbar">
<div id="imgdiv">
<a href="index.html"><img src="https://playo-website.gumlet.net/logo/playo-logo-header-website.png?auto=compress,format&q=90" width="85%" height="60%"></a>
<a href="index.html"><img src="https://playo-website.gumlet.io/playo-website-v2/Logo+with+Trademark_Filled.png" width="85%" height="60%" style="margin-top: 7px;"></a>
</div>
<div id="tabsdiv">
<a href="venues.html"><p>Book Venues</p></a>
Expand Down
2 changes: 1 addition & 1 deletion contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div id="imgdiv">
<a href="index.html"
><img
src="https://playo-website.gumlet.net/logo/playo-logo-header-website.png?auto=compress,format&q=90"
src="https://playo-website.gumlet.io/playo-website-v2/Logo+with+Trademark_Filled.png"
width="85%"
height="60%"
/></a>
Expand Down
Loading