Skip to content

Commit

Permalink
Merge pull request vinayakgavariya#238 from geeky01adarsh/searchbar
Browse files Browse the repository at this point in the history
Made searchbar responsive
  • Loading branch information
vinayakgavariya authored Oct 27, 2022
2 parents 5e3ba77 + 5bccaa7 commit bdee2f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<div class="stickheader" id="myHeader">
<h2 class="brand">PlayListAdda</h2>
<input id="search_bar" type="text" onkeyup="searchPlaylist()" placeholder="Search Playlists..." />
<button id="search-icon" onclick="show_bar()"><img src="https://cdn-icons-png.flaticon.com/512/149/149852.png" width='20px' alt=""> </button>
</div>
<h3 class="subtitle"><span class="auto-type"></span></h3>
<div class="main">
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ $(document).ready(function () {
});


});
});

function show_bar() {
$("#search-icon").hide();
$("#search_bar").show();
}
18 changes: 18 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,21 @@ html::-webkit-scrollbar-track:hover {
}

/* End Bottom to Top */



/* search icon */

#search-icon{
display: none;
}

@media screen and (max-width:500px) {
#search-icon{
display: contents;
}
#search_bar{
display: none;
}
}

0 comments on commit bdee2f6

Please sign in to comment.