From b094b0c4a4309f48d9da7253de78ebda20a8a81c Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 14 Dec 2010 15:49:38 -0800 Subject: [PATCH] modifications to webinars: add the ability to add an upcoming webinar event to Google Calendar; add some introduction text; adjust some markup Change-Id: I4d18a183b1520e79a45e114dc49e725fe27a43c9 --- docs/html/resources/webinars/date.js | 19 +++++++++++++++++++ .../resources/webinars/webinar-upcoming.jd | 15 +++++++++++++-- docs/html/resources/webinars/webinar-watch.jd | 15 ++++++++++----- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/docs/html/resources/webinars/date.js b/docs/html/resources/webinars/date.js index 97abf4b350d73..5768aa7d05124 100644 --- a/docs/html/resources/webinars/date.js +++ b/docs/html/resources/webinars/date.js @@ -98,3 +98,22 @@ function formatDate(start,end) { return str; } + + +function formatDateUtf(date) { + var regex = /(^\d{4})-(\d{2})-(\d{2})\s{1}(\d{2}):(\d{2}):(\d{2}$)/; + var match = regex.exec(date.toString()); + var yy = match[1]; + var mm = match[2]; + var dd = match[3]; + var hh = parseInt(match[4], 10) + 8; // +8 to convert from PST to GMT + var mi = match[5] + "00"; // add seconds + + if (hh >= 24) { // If the GMT adjustment put us into the next day, + dd++; // increment the day and + hh -= 24; // set the hour back to real hours + } + hh = hh < 10 ? "0" + hh : hh; // form a double digit number for single digit hours + + return yy + mm + dd + 'T' + hh + mi + 'Z'; +} diff --git a/docs/html/resources/webinars/webinar-upcoming.jd b/docs/html/resources/webinars/webinar-upcoming.jd index b9602f4df5f37..34879ec91ed54 100644 --- a/docs/html/resources/webinars/webinar-upcoming.jd +++ b/docs/html/resources/webinars/webinar-upcoming.jd @@ -26,8 +26,15 @@ function renderWebinar(data) { code.push('
'); code.push('

' + title + '

'); - code.push('

' + formatDate(start, end) + ''); - code.push('

' + description); + code.push('

' + formatDate(start, end) + ''); + code.push('
Add this to my calendar

'); + code.push('

' + description + '

'); code.push('
'); } @@ -48,6 +55,10 @@ showWebinars(); // load webinars +

This page provides a schedule of upcoming webinars. + When a webinar occurs, you can watch it live and participate in an ICQ session that's coupled + with the presentation, by following the live link at + Watch a Webinar.

diff --git a/docs/html/resources/webinars/webinar-watch.jd b/docs/html/resources/webinars/webinar-watch.jd index 5301b3f6fc2a5..81c2bec3d1886 100644 --- a/docs/html/resources/webinars/webinar-watch.jd +++ b/docs/html/resources/webinars/webinar-watch.jd @@ -1,4 +1,4 @@ -page.title=Watch A Webinar +page.title=Watch a Webinar @jd:body - +

Webinars are web-based seminars that provide online training for a wide range of Android + developer topics. When a new webinar takes place, you can watch live and chat with the presenter + and other participants in an IRC session that's coupled with the presentation. The IRC session +is held on the #android-dev channel at irc.freenode.net.

+

When available, live webinars appear at the top of this page. If there's no live webinar, you + can watch one of the previous webinars from the list below.