• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Upcoming Schedule
2@jd:body
3
4<script type="text/javascript">
5
6/**
7/* Draw all webinars from feed into a 'webinars' div
8 * @param data  The feed data returned from the webinars request
9 */
10function renderWebinar(data) {
11
12  var entries = data.webinars || [];
13
14  var resultsDiv = $('#resource-browser-results');
15  var code = [];
16
17  // Loop through each entry (each webinar) and add it to the 'webinars' list
18  for (var i = 0; i < entries.length; i++) {
19    var entry = entries[i];
20
21    var title = entry.title;
22    var description = entry.description;
23    var url = entry.url;
24    var start = entry.start;
25    var end = entry.end;
26
27    code.push('<div>');
28    code.push('<h3>' + title + '</h3>');
29    code.push('<p><i>' + formatDate(start, end) + '</i>');
30    code.push('<br/><a href="https://www.google.com/calendar/event?action=TEMPLATE&hl=en&text=' + title +
31                  '&dates=' + formatDateUtf(start) + '/' + formatDateUtf(end) +
32                  '&details=' + description + '  Go to: http://developer.android.com/resources/webinars/webinar-watch.html' +
33                  '&location=developer.android.com' +
34                  '&sprop=name:Android Developers' +
35                  '&sprop=website:developer.android.com' +
36                  '" target="_blank">Add this to my calendar</a></p>');
37    code.push('<p>' + description + '</p>');
38    code.push('</div>');
39  }
40
41  var html = code.join('\n');
42  resultsDiv.html(html);
43}
44
45/* Request the webinar feeds from webinarhosting server */
46function showWebinars() {
47  var script = "<script type='text/javascript' src='/resources/webinars/date.js'><\/script>";
48  $("body").append(script);
49  $.getJSON(
50  'http://android-webinars.appspot.com/feeds/api/upcomingwebinars?callback=?',
51  function(json){renderWebinar(json);});
52}
53// Initialization actions
54showWebinars();           // load webinars
55
56</script>
57
58<p>This page provides a schedule of upcoming webinars.
59  When a webinar occurs, you can watch it live and participate in an ICQ session that's coupled
60  with the presentation, by following the live link at
61  <a href="{@docRoot}resources/webinars/webinar-watch.html">Watch a Webinar</a>.</p>
62
63<div id="resource-browser-results">
64  </div>
65