var ultimateconfig = {
'tournament_title': 'Battle of Oak Hill 2019',
'tournament_footer': 'ekebergsk.com | #us4',
+ 'exohack': true,
// Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com.
'score_sheet_id': '1DSRRcV6d6Dx9KbCZgOSFF0MX9wKRex9nHcUjjOG4DNE',
if (sec < 10) sec = "0" + sec;
let text = min + ":" + sec;
- if (false) {
+ if (ultimateconfig['exohack']) {
// 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.
if (sec < 10) sec = "0" + sec;
let text = min + ":" + sec;
- document.getElementById('clock2').innerHTML = text;
+ if (ultimateconfig['exohack']) {
+ // 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('clock2').innerHTML = html;
+ } else {
+ document.getElementById('clock2').innerHTML = text;
+ }
}
function goalA()