From 65047260d5fdca1cb690d64828dd5600ce127503 Mon Sep 17 00:00:00 2001 From: yashcrest Date: Thu, 3 Aug 2023 14:58:04 +0930 Subject: [PATCH] changes made to styling --- .gitignore | 1 + style.css | 2 +- weather.js | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..722d5e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode diff --git a/style.css b/style.css index a101fb4..62edfe9 100644 --- a/style.css +++ b/style.css @@ -29,7 +29,7 @@ body{ } .flex .description { - margin-bottom: 0p; + margin-bottom: 0px; } .celcius{ diff --git a/weather.js b/weather.js index 061bd71..0c0282b 100644 --- a/weather.js +++ b/weather.js @@ -10,6 +10,7 @@ let weather = { .then((res) => res.json()) .then((data) =>{ this.displayWeather(data); + console.log(data); }) .catch((error) => console.log("There was error fetching: " + error)) }, @@ -17,8 +18,6 @@ let weather = { const { name } = data.location; const {text, icon} = data.current.condition; const {temp_c, humidity, wind_kph} = data.current; - console.log(data); - console.log(name, icon, text, temp_c, humidity); document.querySelector(".city").textContent = "Weather in " + name; document.querySelector(".weatherImg").src = icon; document.querySelector(".celcius").innerHTML = temp_c + "°C";