From: Robert Kaiser Date: Wed, 10 Sep 2014 21:24:02 +0000 (+0200) Subject: adjust Stardate slightly and add a comment for the source; rename one redundant gModN... X-Git-Tag: production~14 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=d9387df27c6cba7af91f17c52661254b2710acd7;p=tricorder.git adjust Stardate slightly and add a comment for the source; rename one redundant gModNull to gModSound and add a comment on how we'd get access to microphone sounds --- diff --git a/js/tricorder.js b/js/tricorder.js index ff53ccb..28852a0 100644 --- a/js/tricorder.js +++ b/js/tricorder.js @@ -37,8 +37,10 @@ function updateStardate() { var curDate = new Date(); + // Star Trek famously premiered on Thursday, September 8, 1966, at 8:30 p.m. + // See http://www.startrek.com/article/what-if-the-original-star-trek-had-debuted-on-friday-nights if (!gSDBase) - gSDBase = new Date("September 8, 1966 20:00:00 EST"); + gSDBase = new Date("September 8, 1966 20:30:00 EST"); var sdateval = (curDate - gSDBase) / (86400 * 365.2425); gStardate.textContent = sdateval.toFixed(1); @@ -252,10 +254,11 @@ var gModDev = { batteryTimer: null, } -var gModNull = { +var gModSound = { activate: function() { //gSounds.scan.play(); }, + // getUserMedia ("WebRTC") + MediaElementAudioSourceNode (WebAudio) deactivate: function() { gSounds.scan.pause(); },