• Home
  • Raw
  • Download

Lines Matching refs:var

219   var MAX_LIST_DESC_LENGTH = 130; // the length at which we will trim the description
220 var MAX_VIDEO_DESC_LENGTH = 100; // the length at which we will trim the description
221 var MAX_LIST_LENGTH = 4; // number of videos to put in the list
222 var feed = data.feed;
223 var entries = feed.entry || [];
224 var playlistId = feed.yt$playlistId.$t;
226 var $ulVideos = $('<ul style="display:none"/>');
227var summary = feed.media$group.media$description != null ? feed.media$group.media$description.$t :…
229 var $liPlaylist = $('<li class="playlist"></li>');
230 var $aPlaylist = $('<a href="" onclick="togglePlaylist(this);return false;"></a>');
234 var playlistDescription = summary.substr(0, MAX_LIST_DESC_LENGTH);
239var length = feed.entry.length < MAX_LIST_LENGTH ? feed.entry.length : MAX_LIST_LENGTH; // max of …
240 for (var i = 0; i < length; i++) {
241 var entry = entries[i];
243 var title = entry.title.$t;
244 var id = entry.media$group.yt$videoid.$t;
245 var thumbUrl = entry.media$group.media$thumbnail[0].url;
246 var fullDescription = entry.media$group.media$description.$t;
247 var playerUrl = entry.media$group.media$content[0].url;
249 var shortDescription = fullDescription.substr(0, MAX_VIDEO_DESC_LENGTH);
252 var img = $('<img src="' + thumbUrl + '" width="60" height="45"/>');
253var a = $('<a href="#" onclick="loadVideo(\'' + id + '\',\'' + escape(title) + '\',true); return f…
254 var pShortDescription = $('<p>' + shortDescription + '</p>');
255 var h5Title = "<h5>" + title + "</h5>";
256 var li = $('<li class="playlist-video"/>');
281 var MAX_DESC_LENGTH = 125; // the length at which we will trim the description
282 var feed = data.feed;
283 var entries = feed.entry || [];
284 var playlistId = feed.yt$playlistId.$t;
286 var ul = $('#DevelopersLive');
289 for (var i = 0; i < 4; i++) {
290 var entry = entries[i];
292 var title = entry.title.$t;
293 var id = entry.media$group.yt$videoid.$t;
294 var thumbUrl = entry.media$group.media$thumbnail[0].url;
295 var fullDescription = entry.media$group.media$description.$t;
296 var playerUrl = entry.media$group.media$content[0].url;
297 var shortDescription = fullDescription.substr(0, MAX_DESC_LENGTH);
300 var img = $('<img src="' + thumbUrl + '" width="120" height="90"/>');
301var a = $('<a href="#" onclick="loadVideo(\'' + id + '\',\'' + escape(title) + '\',true); return f…
302 var pShortDescription = $('<p>' + shortDescription + '</p>');
303 var h4Title = "<h4>" + title + "</h4>";
304 var li = $('<li/>');
317 var playlists = {
334 for (var x in playlists) {
335 var ids = playlists[x].ids;
336 for (var i in ids) {
337 var script = "<script type='text/javascript' src='//gdata.youtube.com/feeds/api/playlists/"
348 var playlistId = "PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0"; /* DevBytes */
349 var script = "<script type='text/javascript' src='//gdata.youtube.com/feeds/api/playlists/"
357 var $list = $(listLink).parent();
358 var $ul = $list.find('ul');