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

Dazaev did his weather app in metric units cause hes mexican #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dazaevvc
Copy link

No description provided.

Copy link

@BritneyJo BritneyJo left a 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">

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){

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(){

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);

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants