Team:UCLondon/Templates/Navigationv3
From 2012e.igem.org
(Difference between revisions)
Line 343: | Line 343: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 414: | Line 401: | ||
$('body').on('click', '#close-box', closeContactBox); | $('body').on('click', '#close-box', closeContactBox); | ||
- | + | ||
loadLatestTweet(); | loadLatestTweet(); | ||
}); | }); | ||
+ | |||
+ | |||
+ | /* YOUTUBE CRAP */ | ||
+ | |||
+ | |||
+ | function loadPlaylist(){ | ||
+ | $('#yt').html(''); | ||
+ | |||
+ | var _pURL = 'https://gdata.youtube.com/feeds/api/playlists/PLtGCURRfxampHgpkl-tUkzSeZhItvY3_u?v=2&alt=json'; | ||
+ | |||
+ | $.getJSON(_pURL,function(plists){ | ||
+ | alert(plists.feed.entry.length); | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | loadPlaylist(); | ||
Revision as of 20:16, 15 October 2012