Team:EPF-Lausanne/Playground
From 2011.igem.org
(Difference between revisions)
(→Picasa Widget) |
|||
Line 8: | Line 8: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $j = jQuery.noConflict(); | + | // $j = jQuery.noConflict(); |
- | $ | + | $(function(){ |
- | $ | + | $.getJSON("http://picasaweb.google.com/data/feed/base/user/igem2011.epfl?kind=photo&thumbsize=100c&access=public&alt=json&callback=?", |
function(data){ | function(data){ | ||
var thumbCount = 9; | var thumbCount = 9; | ||
Line 19: | Line 19: | ||
for (var i = picsCount; i > picsCount - thumbCount; i--) { | for (var i = picsCount; i > picsCount - thumbCount; i--) { | ||
var pic = data.feed.entry[i]; | var pic = data.feed.entry[i]; | ||
- | $ | + | $("<img/>").attr("src", pic.media$group.media$thumbnail[smallThumb].url).attr("alt", pic.summary.$t).appendTo("#picasaStream"); |
} | } | ||
}); | }); |
Revision as of 10:15, 14 September 2011
Playground
Use this page to test stuff.
Picasa Widget