Team:NYU Gallatin/
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 76: | Line 76: | ||
var md = $(this); | var md = $(this); | ||
var allopts = $.extend(true, {}, defoptions, options); | var allopts = $.extend(true, {}, defoptions, options); | ||
- | $.getJSON('http://gdata.youtube.com/feeds/api/users/' + allopts.user + '/uploads?alt=jsonc&v=2', null, function(data) { | + | $.getJSON('http://gdata.youtube.com/feeds/api/users/' + allopts.user + '/uploads?alt=jsonc&v=2', null, function(data) { |
var videos = []; | var videos = []; | ||
var playlist = ''; | var playlist = ''; | ||
Line 138: | Line 138: | ||
<div class="loading">Loading...</div> | <div class="loading">Loading...</div> | ||
</div> | </div> | ||
- | <!-- Bottom of the page, probably. Change host --><script src="http://aseatobacter.tumblr.com/api/read/json?callback=tumblr&num=10" type="text/javascript"></script> </div> | + | <!-- Bottom of the page, probably. Change host --><script src="http://aseatobacter.tumblr.com/api/read/json?callback=tumblr&num=10" type="text/javascript"></script> </div> |
</div> | </div> | ||
<div id="block-block-9" class="block block-block"> | <div id="block-block-9" class="block block-block"> | ||
Line 150: | Line 150: | ||
<!--//--><![CDATA[// ><!-- | <!--//--><![CDATA[// ><!-- | ||
- | $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=85815851@N04&tags=featured&lang=en-us&format=json&jsoncallback=?", displayImages); | + | $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=85815851@N04&tags=featured&lang=en-us&format=json&jsoncallback=?", displayImages); |
function displayImages(data) { | function displayImages(data) { | ||
// Start putting together the HTML string | // Start putting together the HTML string | ||
Line 194: | Line 194: | ||
<!--//--><![CDATA[// ><!-- | <!--//--><![CDATA[// ><!-- | ||
- | var featured_url = "http://gdata.youtube.com/feeds/api/playlists/8340F2FAB32CAB64?alt=jsonc&v=2"; | + | var featured_url = "http://gdata.youtube.com/feeds/api/playlists/8340F2FAB32CAB64?alt=jsonc&v=2"; |
$.get(featured_url, function(data) { | $.get(featured_url, function(data) { | ||
- | var src = 'http://www.youtube.com/embed/' + data.data.items[0].video.id + '?width=250&height=180'; | + | var src = 'http://www.youtube.com/embed/' + data.data.items[0].video.id + '?width=250&height=180'; |
ifr = $('<iframe scrolling="no" frameborder="no">'); | ifr = $('<iframe scrolling="no" frameborder="no">'); | ||
ifr.attr({'src': src, width: 250, height: 180}); | ifr.attr({'src': src, width: 250, height: 180}); |
Revision as of 17:58, 26 September 2012