-
Notifications
You must be signed in to change notification settings - Fork 17
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
Dazaev did his weather app in metric units cause hes mexican #9
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time you can google for a CDN for the flag library instead of downloading and using node to install. That will eliminate having 500+ files you have to add to the repo: https://cdnjs.com/libraries/flag-icon-css
@@ -5,16 +5,17 @@ | |||
<title>Mini Weather App</title> | |||
<link rel="stylesheet" href="css/style.css"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure your custom CSS file is loaded after any libraries you're using (i.e. bootstrap and flags).
$(document).ready(function(){ | ||
console.log("ready!"); | ||
//this is what has to be triggered when they look for weather and click submit | ||
$("#fetchWeather").click(function(event){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look like it's doing anything?
}) | ||
|
||
function currentTemperature(){ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you were going to convert kelvin to celsius since you're mexican!!
$("h3.results-country").append('<img class="flagger" src="flag-icon-css-master/flags/1x1/'+data.sys.country+'.svg">'); | ||
$(".temperature-label").append(data.main.temp); | ||
$(".humidity-label").append(data.main.humidity); | ||
$("span.description-label").append(data.weather[0].main); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last piece will then be to clear out the main input once the data has been retrieved and displayed.
No description provided.