Skip to content

fran hw, minimal styling#10

Open
CescoIV wants to merge 1 commit intowdi-atx-12:masterfrom
CescoIV:fran_hw
Open

fran hw, minimal styling#10
CescoIV wants to merge 1 commit intowdi-atx-12:masterfrom
CescoIV:fran_hw

Conversation

@CescoIV
Copy link

@CescoIV CescoIV commented Sep 27, 2017

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

function setIcon(data){
console.log(data.weather[0].icon);
var icon_code = data.weather[0].icon;
var icon_src = '<img src="http://openweathermap.org/img/w/' +icon_code+'.png">';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With all of the quotes in this string concatenation, i'd recommend using ES6 syntax.

$('.description-label').text(label);
$('.description').text(desc);
}
function clearWeather(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to clear the text input here as well?

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