diff --git a/script.js b/script.js index c4b5bc6..6365554 100644 --- a/script.js +++ b/script.js @@ -6,6 +6,7 @@ const searchInput = document.getElementById("search"); const switcher = document.getElementById("toggle"); let CountryArray = []; let countryBoxes; +checkForDarkMode() const spinner = ''; @@ -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")) { @@ -128,4 +129,4 @@ function checkForDarkMode() { switcher.textContent = "light_mode"; } } -*/ +