Front end tweaks

Added visibility options and server log panel
This commit is contained in:
Pax1601
2023-07-21 17:33:24 +02:00
parent 5613394a2c
commit 4ae72b7c0b
24 changed files with 238 additions and 104 deletions

View File

@@ -366,7 +366,7 @@ export function convertDateAndTimeToDate(dateAndTime: DateAndTime) {
return new Date(year, month, date.Day, time.h, time.m, time.s);
}
export function createCheckboxOption(value: string, text: string, checked: boolean = true) {
export function createCheckboxOption(value: string, text: string, checked: boolean = true, callback: CallableFunction = (ev: any) => {}) {
var div = document.createElement("div");
div.classList.add("ol-checkbox");
var label = document.createElement("label");
@@ -379,6 +379,7 @@ export function createCheckboxOption(value: string, text: string, checked: boole
label.appendChild(input);
label.appendChild(span);
div.appendChild(label);
input.onclick = (ev: any) => callback(ev);
return div as HTMLElement;
}