Team:EPF-Lausanne/Playground

From 2011.igem.org

(Difference between revisions)
(Slideshow)
Line 42: Line 42:
<html>
<html>
<a href='https://static.igem.org/mediawiki/2011/9/9a/EPFL-Growth_plate_gelification.JPG' rel='lightbox'>Image #1</a>
<a href='https://static.igem.org/mediawiki/2011/9/9a/EPFL-Growth_plate_gelification.JPG' rel='lightbox'>Image #1</a>
 +
</html>
 +
 +
<html>
 +
<script type="text/javascript">
 +
        $j = jQuery.noConflict();
 +
        $j(document).ready(function(){
 +
        $j.getJSON("http://picasaweb.google.com/data/feed/base/user/igem2011.epfl?kind=photo&thumbsize=100c&access=public&alt=json&callback=?",
 +
                function(data){
 +
                  var thumbCount = 9;
 +
                  var smallThumb = 0;
 +
                  var mediumThumb = 1;
 +
                  var largeThumb = 2;
 +
                  var picsCount = data.feed.entry.length - 1;
 +
                  for (var i = picsCount; i > picsCount - thumbCount; i--) {
 +
                        var pic = data.feed.entry[i];
 +
                        $j("<img/>").attr("src", pic.media$group.media$thumbnail[smallThumb].url).attr("alt", pic.summary.$t).appendTo("#picasaStream");
 +
                  }
 +
                  });
 +
                });
 +
      </script>
 +
 +
<div id="picasaStream"></div>
</html>
</html>
{{:Team:EPF-Lausanne/Templates/Footer}}
{{:Team:EPF-Lausanne/Templates/Footer}}

Revision as of 10:03, 14 September 2011