Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features #7

Merged
merged 3 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Contributions are what make the open-source community such an amazing place to l

## License

Distributed under the MIT License. See `LICENSE` for more information.
Distributed under the MIT License. See [LICENSE](../LICENSE) for more information.

## Contact

Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<meta http-equiv="content-language" content="en" />
<meta name="rating" content="general" />
<meta name="robots" content="index, follow" />
<meta name="rights" content="&copy; 2023 Son Nguyen Hoang" />

<link rel="canonical" href="https://hoangsonww.github.io/WeatherMate-App/" />
<link rel="stylesheet" href="src/css/style.css" />
Expand All @@ -27,11 +26,15 @@
<meta property="og:url" content="https://hoangsonww.github.io/WeatherMate-App/" />
<meta property="og:site_name" content="WeatherMate App" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="The WeatherMate App" />
<meta name="twitter:description" content="Stay updated with the latest weather forecasts with WeatherMate. Real-time updates, forecasts, and air quality info for your location." />
<meta name="twitter:image" content="https://hoangsonww.github.io/WeatherMate-App/utils/image.png" />
<meta name="twitter:site" content="@hoangsonww" />
<meta name="twitter:creator" content="@hoangsonww" />

<meta name="theme-color" content="#4DB8FF">

<script async src="https://www.googletagmanager.com/gtag/js?id=G-HXL07SQFH0"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function addWeatherToPage(data) {
weather.classList.add("weather");

weather.innerHTML = `
<h2 style="margin-left: 40px">${data.name}
<h2 style="margin-left: 20px">${data.name}
<button style="margin-left: 10px" id="favorite-btn">❤️ </button>
</h2>
<h2><img src="https://openweathermap.org/img/wn/${data.weather[0].icon}@2x.png" /> ${temp}${unit} <img src="https://openweathermap.org/img/wn/${data.weather[0].icon}@2x.png" /></h2>
Expand Down