Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="72 - Flickr" />
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>Ejemplo Flickr</title>
</head>
<body>
  <div id="contenido"></div>
</body>
</html>
 
div#laCapa {
  width: 250px; height: 180px; margin: 10px; padding: 20px;
  background: blue; border: 2px solid black; cursor: pointer;
}
p, span {
  font-size: 16pt;
}
button {
  margin: 5px;
}
 
var flickrAPI = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";
$.getJSON( flickrAPI, {
    tags: "proyecto víbora ii",
    tagmode: "any",
    format: "json"
}, formateaImagenes);
function formateaImagenes(datos) {
    $.each(datos.items, function(i, elemento) { // <1>
        $("<img>").attr("src", elemento.media.m).appendTo("#contenido");    // <2>
        if (i === 4) {  // <3>
            return false;
        }
    });
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
aitormedran0pro
0viewers