Team:UCLondon/Templates/Navigationv3
From 2012e.igem.org
(Difference between revisions)
Line 346: | Line 346: | ||
function loadPlaylist(){ | function loadPlaylist(){ | ||
$('#yt').html(''); | $('#yt').html(''); | ||
+ | |||
var playListURL = 'feed://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json&callback=?'; | var playListURL = 'feed://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json&callback=?'; | ||
var videoURL= 'http://www.youtube.com/watch?v='; | var videoURL= 'http://www.youtube.com/watch?v='; | ||
Line 352: | Line 353: | ||
var list_data=""; | var list_data=""; | ||
- | + | $.each(data.feed.entry, function(i, item) { | |
- | + | var feedTitle = item.title.$t; | |
+ | |||
+ | |||
+ | }); | ||
$(list_data).appendTo("#yt"); | $(list_data).appendTo("#yt"); | ||
}); | }); |
Revision as of 20:41, 14 October 2012