Skip to content

Commit

Permalink
método consult() pero me falta la API key
Browse files Browse the repository at this point in the history
  • Loading branch information
silSuarezP committed Nov 16, 2023
1 parent 53efda3 commit 2b3dd33
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions js/fondo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Fondo {


constructor(countryName, capitalName, coords) {
this.countryName = countryName;
this.capitalName = capitalName;
this.coords = coords;
}


consult() {
(function() {
var flickrAPI = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";
$.getJSON(flickrAPI,
{
geo: "0°32′52″S 166°55′15″E",
format: "json"
})
.done(function(data) {
$.each(data.items, function(i,item ) {
$("<img />").attr( "src", item.media.m).appendTo( "#imagenes" );
if ( i === 20 ) {
return false;
}
});
});
})();
}







}

0 comments on commit 2b3dd33

Please sign in to comment.