Created
January 24, 2014 21:07
-
-
Save pboehm/8606449 to your computer and use it in GitHub Desktop.
Loads the last photos from your public Flickr Timeline ... Replace the id in the API Url with your own ID.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css" media="all"> | |
.flickr_image_container { | |
margin-bottom: 30px; | |
position: relative; | |
} | |
.flickr_image_container img { | |
position: relative; | |
left:0; | |
top:0; | |
} | |
.flickr_image_title { | |
z-index: 100; | |
position: absolute; | |
color: rgb(231, 230, 230); | |
font-size: 14px; | |
left: 0px; | |
bottom: 6px; | |
padding: 3px 15px; | |
margin: 0px !important; | |
background: rgba(0, 0, 0, 0.5); | |
} | |
</style> | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function() { | |
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=100567917@N06&lang=de-de&format=json&jsoncallback=?", function(data){ | |
$.each(data.items, function(i,item){ | |
var image = | |
'<div class="flickr_image_container">' + | |
'<a class="flickr_image" href="' + item.link + | |
'"><img src="' + item.media.m.replace('m.jpg', 'z.jpg') + | |
'"/></a>' + '<p class="flickr_image_title">' + item.title + | |
'</p>' + '</div>'; | |
$(image).appendTo("#images"); | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extract your ID outof your RSS Feed Url http://www.flickr.com/help/forum/en-us/72157634595102791/