03.11.2025, 13:28
This turned a bit off topic, but... I can use this:
and have this in a html-widget:
and it works - after the first update of 35/0/6. Since the JS is run before the page is completely rendered, I have no way to have this value from start.
I'm sure there is a workaround I just don't understand..?
Code:
localbus.listen('object', '35/0/6', (value) => {
if (value)
{
document.getElementById("p1").value = value;
}
})and have this in a html-widget:
Code:
<progress id="p1" value="0" max="100"></progress>and it works - after the first update of 35/0/6. Since the JS is run before the page is completely rendered, I have no way to have this value from start.
I'm sure there is a workaround I just don't understand..?