Skip to content

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

Open
dazaevvc wants to merge 1 commit intowdi-atx-12:masterfrom
dazaevvc:dazaev_branch
Open

Dazaev did his weather app in metric units cause hes mexican#9
dazaevvc wants to merge 1 commit intowdi-atx-12:masterfrom
dazaevvc:dazaev_branch

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