Make better use of constants

This commit is contained in:
Djuri 2023-10-30 23:50:07 +01:00
parent 6fc1dfe707
commit 62358a7c6e
8 changed files with 41 additions and 17 deletions

View file

@ -35,6 +35,7 @@ fetch('/api/settings', {
document.getElementById('bgColor').querySelector('[value="0xF800"]').remove();
}
document.getElementById('customText').setAttribute('maxlength', jsonData.numScreens);
document.getElementById('output').classList.add("fg-" + jsonData.fgColor.toString(16));
document.getElementById('output').classList.add("bg-" + jsonData.bgColor.toString(16));