Team:EPF-Lausanne/Playground

From 2011.igem.org

(Difference between revisions)
(Picasa Widget)
Line 3: Line 3:
Use this page to test stuff.
Use this page to test stuff.
 +
</html>
== Picasa Widget ==
== Picasa Widget ==
<html>
<html>
-
<script type="text/javascript">
+
<script type='text/javascript'
-
        // $j = jQuery.noConflict();
+
          src='https://2011.igem.org/Team:EPF-Lausanne/Templates/picasawidget?action=raw&amp;ctype=text/javascript'></script>
-
        $(function(){
+
-
        $.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];
+
-
                        $("<img/>").attr("src", pic.media$group.media$thumbnail[smallThumb].url).attr("alt", pic.summary.$t).appendTo("#picasaStream");
+
-
                  }
+
-
                  });
+
-
                });
+
-
      </script>
+
-
 
+
<div id="picasaStream"></div>
<div id="picasaStream"></div>
</html>
</html>
{{:Team:EPF-Lausanne/Templates/Footer}}
{{:Team:EPF-Lausanne/Templates/Footer}}

Revision as of 11:39, 14 September 2011