projects
/
tricorder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
06b2173
)
adjust Stardate slightly and add a comment for the source; rename one redundant gModN...
author
Robert Kaiser
<kairo@kairo.at>
Wed, 10 Sep 2014 21:24:02 +0000
(23:24 +0200)
committer
Robert Kaiser
<kairo@kairo.at>
Wed, 10 Sep 2014 21:24:02 +0000
(23:24 +0200)
js/tricorder.js
patch
|
blob
|
blame
|
history
diff --git
a/js/tricorder.js
b/js/tricorder.js
index ff53ccb176bc28d9f5f58a907ee5a7edd360cb55..28852a02b72c504475529d29f8bf298ec1e79ca2 100644
(file)
--- a/
js/tricorder.js
+++ b/
js/tricorder.js
@@
-37,8
+37,10
@@
function updateStardate() {
var curDate = new Date();
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)
if (!gSDBase)
- gSDBase = new Date("September 8, 1966 20:
0
0:00 EST");
+ gSDBase = new Date("September 8, 1966 20:
3
0:00 EST");
var sdateval = (curDate - gSDBase) / (86400 * 365.2425);
gStardate.textContent = sdateval.toFixed(1);
var sdateval = (curDate - gSDBase) / (86400 * 365.2425);
gStardate.textContent = sdateval.toFixed(1);
@@
-252,10
+254,11
@@
var gModDev = {
batteryTimer: null,
}
batteryTimer: null,
}
-var gMod
Null
= {
+var gMod
Sound
= {
activate: function() {
//gSounds.scan.play();
},
activate: function() {
//gSounds.scan.play();
},
+ // getUserMedia ("WebRTC") + MediaElementAudioSourceNode (WebAudio)
deactivate: function() {
gSounds.scan.pause();
},
deactivate: function() {
gSounds.scan.pause();
},