Changed order and reformatted settings #721

This commit is contained in:
Daniël van Noord
2021-03-23 09:35:48 +01:00
parent f7c4e23eb3
commit 02d49dca2e
29 changed files with 855 additions and 853 deletions

View File

@@ -1,6 +1,6 @@
/** Functions to create various DOM elements used by the Bars */
import { ColorBackPre, ColorBlue, ColorTextPre } from '../VariablesAndData';
import { ColourBackPre, ColourBlue, ColourTextPre } from '../VariablesAndData';
/**
* This function creates an indivudual timer for the timer bar
@@ -47,7 +47,7 @@ export function CreateTimer(id, name, bars) {
colorBar.style.borderBottomRightRadius = '10px';
}
if (typeof bars[i].color !== 'undefined') {
colorBar.className = ColorBackPre + bars[i].color;
colorBar.className = ColourBackPre + bars[i].color;
}
div.appendChild(colorBar);
}
@@ -83,7 +83,7 @@ export function CreateBotBarBuildingColumn(buildingName) {
);
const span = header.appendChild(document.createElement('span'));
span.className = ColorTextPre + ColorBlue;
span.className = ColourTextPre + ColourBlue;
header.appendChild(document.createTextNode(')'));
type.lastChild.style.paddingLeft = '8px';