Skip to content

Matt Cain submitting weather hw#5

Open
thrakc3001 wants to merge 1 commit intowdi-atx-12:masterfrom
thrakc3001:master
Open

Matt Cain submitting weather hw#5
thrakc3001 wants to merge 1 commit intowdi-atx-12:masterfrom
thrakc3001:master

Conversation

@thrakc3001
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

$('form').submit(function(event) {
event.preventDefault();
$.ajax({
method: 'GET',

Choose a reason for hiding this comment

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

make sure to indent!

function onSuccess(data) {
//TODO
console.log(data);
var humidity = $('.humidity').text(data.main.humidity);

Choose a reason for hiding this comment

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

Since you never reuse variables on lines 26, 27, 30, 31, 32, 39 - you can just do the action and not set them = to vars.

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