Make better use of constants
This commit is contained in:
parent
6fc1dfe707
commit
62358a7c6e
8 changed files with 41 additions and 17 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue