FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Indira dev by asdharshini · Pull Request #2 · cl-lw/HTML-CSS-JavaScript-projects-for-beginners · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .css  (1) .js  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 2 additions & 0 deletions projects/weather-app/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ formEl.addEventListener("submit", (event) => {
getWeatherData(cityValue);
});


async function getWeatherData(cityValue) {
try {
const response = await fetch(
Expand Down Expand Up @@ -54,5 +55,6 @@ async function getWeatherData(cityValue) {
"An error happened, please try again later";

weatherDataEl.querySelector(".details").innerHTML = "";

}
}
6 changes: 5 additions & 1 deletion projects/weather-app/style.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body {
margin: 0;
font-family: "Montserrat", sans-serif;
background-color: #f7f7f7;
background-color: #f8a5c2;
}

.container {
Expand Down Expand Up @@ -46,6 +46,10 @@ form input[type="submit"]:hover {
background-color: #0062cc;
}

::placeholder {
border: 1px solid lightpink;
}

.icon img {
width: 100px;
height: 100px;
Expand Down

Back | FazBrowse Home | New Git URL