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

Jessica's Trek #44

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Jessica's Trek #44

wants to merge 7 commits into from

Conversation

jchung722
Copy link

@CheezItMan CheezItMan self-assigned this Dec 2, 2016
Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Well done, a few comments in here, and you probably should have some messages when the API requests fail.

Overall pretty nice.

'url("http://images.nationalgeographic.com/wpf/media-live/photos/000/210/custom/21080_1600x1200-wallpaper-cb1318527290.jpg")',
'url("http://www.thedesignwork.com/wp-content/uploads/2011/03/rock-fort-india-national-geographic-wallpaper.jpg")'
);

Choose a reason for hiding this comment

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

Nice rotating background

var data = $(this).serialize();
$.post(reserveUrl, data, callback);
$('input').val('');
});

Choose a reason for hiding this comment

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

What about on failures?

$('#cost').text('Cost: $' + trip.cost);
}).fail(function(){
alert("failed");
});

Choose a reason for hiding this comment

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

Good that you're giving feedback on failsures.

$('#load').hide(); //hide trip load button
$('header').show(); //show header
$.get(url, successCallback);
clearInterval(refresh); //backgrounds stop transitioning when button is pressed

Choose a reason for hiding this comment

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

What about when the get request fails?

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

Successfully merging this pull request may close these issues.

2 participants