Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RanjanWorks authored Sep 17, 2024
1 parent ac32d21 commit 6195792
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const searchInput = document.getElementById("search");
const switcher = document.getElementById("toggle");
let CountryArray = [];
let countryBoxes;
checkForDarkMode()
const spinner =
'<svg aria-hidden="true" width="24" height="24" viewBox="0 0 24 24"><use href="#icon.spinner"></use></svg>';

Expand Down Expand Up @@ -105,7 +106,7 @@ function displayCountry(country) {
function removePreviousCountry() {
CountryContainer.innerHTML = "";
}
/*

switcher.addEventListener("click", () => {
document.body.classList.toggle("active");
if (document.body.classList.contains("active")) {
Expand All @@ -128,4 +129,4 @@ function checkForDarkMode() {
switcher.textContent = "light_mode";
}
}
*/

0 comments on commit 6195792

Please sign in to comment.