Integrate AJAX requests to at least one relevant external API into your portfolio
$.get("http://URL", callBackFn)
$.post("http://URL", {"json":"json"}, callBackFn)
function addProject(result) {
var projectHTML = '<a href="#" class="thumbnail">' +
'<img src="' + result['image'] + '" class="img">' +
'<p>' + result['title'] + '</p>' +
'<p><small>' + result['date'] +
'</small></p></a>';
}
$ sudo bash lab6/check-setup.sh
What's the vagrant password?
vagrant
I get a blank page!
Make sure node is running (see previous slide).
I'm having trouble figuring out how to select the right div!
Try looking at lab 3, slide 21
Ensure that the project details are added only for the project you clicked on and not for all projects. This will be fixed by selecting the right div! :-)
$('body').css('background-color', colors[0]);
$('.thumbnail').css('background-color', colors[1]);
$('h1, h2, h3, h4, h5, h5').css('color', colors[2]);
$('p').css('color', colors[3]);
$('.project img').css('opacity', .75);
git status
git add ...
git commit -m "putting it together lab"
git push
heroku create newapplicationname
git push heroku master
$.get('http://foobar.com', callbackFunction, 'jsonp')