]> git.sesse.net Git - ultimatescore/blobdiff - score.js
Add a clean target.
[ultimatescore] / score.js
index 3f0a4d055daad4353f9d96ceffedd3adaf9679f8..133a7d834383c97398f8f6283177901af2fe1146 100644 (file)
--- a/score.js
+++ b/score.js
@@ -166,18 +166,22 @@ function update_clock()
        if (sec < 10) sec = "0" + sec;
        let text = min + ":" + sec;
 
-       // 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>";
+       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;
        }
-       document.getElementById('clock').innerHTML = html;
 }
 
 function goalA()