From: Robert Kaiser Date: Sat, 11 Oct 2014 21:04:05 +0000 (+0200) Subject: add a comment about stardate rules X-Git-Tag: production~4^2 X-Git-Url: https://git-public.kairo.at/?p=tricorder.git;a=commitdiff_plain;h=af524a6f19f31a9ed98ecf8d9142eeaf63d7d7ca add a comment about stardate rules --- af524a6f19f31a9ed98ecf8d9142eeaf63d7d7ca diff --cc js/tricorder.js index 2574b01,de33ae3..dbd188d --- a/js/tricorder.js +++ b/js/tricorder.js @@@ -31,11 -33,13 +33,17 @@@ window.onload = function() }, false); } + window.onresize = function() { + if (document.getElementById("sectSound").classList.contains("active")) { + gModSound.resize(); + } + } + function updateStardate() { + // Stardate rules foggy at best. See http://en.wikipedia.org/wiki/Stardate + // and the Memory Alpha article linked there for more details. + // We roughly lean on TNG scale by splitting an Earth year into exactly 1000 + // units, but we put the 0 point at the TV premiere of The Original Series. if (!gStardate) gStardate = document.getElementById("stardate");