let sec = elapsed % 60;
if (sec < 10) sec = "0" + sec;
- document.getElementById('clock').innerHTML = min + ":" + sec;
+ let text = min + ":" + sec;
+
+ if (false) {
+ // This is a hack around the fact that Exo has variable-width numerals.
+ // It doesn't look fantastic, but for the clock, it's better not to have
+ // the text jumping around.
+ let html = "";
+ for (let i = 0; i < text.length; ++i) {
+ if (text.charAt(i) === ':') {
+ html += ':';
+ } else {
+ html += "<div style='display: inline-block; width: 15px'>" + text.charAt(i) + "</div>";
+ }
+ }
+ document.getElementById('clock').innerHTML = html;
+ } else {
+ document.getElementById('clock').innerHTML = text;
+ }
}
function goalA()
document.getElementById('score').innerHTML = scoreA + " – " + scoreB;
}
-/* called by caspar only */
+/* called by the Nageru theme only */
function play()
{
document.getElementById('manualcontrols').style.display = 'none';