Skip to content

Commit

Permalink
checks and improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
sivangbagri committed Jan 4, 2024
1 parent 3589ecb commit d5d83c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions planet/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -433,3 +433,6 @@ a {
z-index: 100;
}

.nav-content {
display: none;
}
19 changes: 10 additions & 9 deletions planet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@
<script>
document.addEventListener("scroll", function () {
var navbar = document.querySelector(".nav-extended");
if (document.body.scrollTop > 210 || document.documentElement.scrollTop > 210) {
navbar.classList.remove("lighten-1");
}
else{
navbar.classList.add("lighten-1");
}
if (navbar){
if (document.body.scrollTop > 210 || document.documentElement.scrollTop > 210) {
navbar.classList.remove("lighten-1");
}
else{
navbar.classList.add("lighten-1");
}
}
});
</script>

Expand All @@ -65,13 +67,12 @@
<li class="tab"><a id="global-tab" href="#global"></a></li>
<li>
<li>
<div class="nav-content" id="searchcontainer"
style="display: none;">
<div class="nav-content" id="searchcontainer">
<div class="container">
<div class="input-field search">
<i class="material-icons prefix "
id="searchicon">search</i><input
placeholder="" id="global-search"
placeholder="Search here" id="global-search"
type="text"><span><i
class="material-icons"
id="search-close">clear</i></span>
Expand Down

0 comments on commit d5d83c5

Please sign in to comment.