Skip to content

Commit

Permalink
switch location adjusted (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj-Mathur authored Oct 11, 2023
1 parent 211d105 commit f82f9c3
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 244 deletions.
11 changes: 7 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
<!-- Logo section -->
<div class="logo">
<a href="https://doofenshmirtz-evil-incorp.github.io/Fuelish/" target="_blank" rel="noopener noreferrer"><img class="logo-image" src="images/logo.png" width="150px" alt=""></a>

<label class="switch">
<input type="checkbox" id="mode-toggle">
<i class="icontoggle fa fa-moon-o" id="toggle-icon" aria-hidden="true"></i>
</label>

</div>
<!-- Search box section -->
<div class="container">
Expand All @@ -35,10 +41,7 @@
<option value="" selected disabled style="color: azure;">Select a city</option>
</select>
<br>
<label class="switch">
<input type="checkbox" id="mode-toggle">
<i class="icontoggle fa fa-moon-o" id="toggle-icon" aria-hidden="true"></i>
</label>


</div>
<!-- Map section -->
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ modeToggle.addEventListener("change", () => {
const classtogglename=document.getElementById("toggle-icon");
classtogglename.classList.remove('fa-moon-o');
classtogglename.classList.add('fa-sun-o');
classtogglename.style.color="white"
classtogglename.style.color="black"
mapContainer.classList.add("light-mode");
} else {

Expand All @@ -428,3 +428,5 @@ modeToggle.addEventListener("change", () => {
classtogglename.style.color="white"
}
});


Loading

0 comments on commit f82f9c3

Please sign in to comment.