From d9387df27c6cba7af91f17c52661254b2710acd7 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Wed, 10 Sep 2014 23:24:02 +0200 Subject: [PATCH] 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 --- js/tricorder.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(); }, -- 2.35.3