add a comment about stardate rules
authorRobert Kaiser <robert@widebook.box.kairo.at>
Sat, 11 Oct 2014 21:04:05 +0000 (23:04 +0200)
committerRobert Kaiser <robert@widebook.box.kairo.at>
Sat, 11 Oct 2014 21:04:05 +0000 (23:04 +0200)
1  2 
js/tricorder.js

diff --cc js/tricorder.js
index 2574b01f6fb7e334618e130079fa19b991ddb7bc,de33ae3a630e2c2eed70a95e946c314aea24b8fd..dbd188d93bb5ae05ff326113bb7ab5e70f4a9c3d
@@@ -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");