![]() |
|
Realtime Clock - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visu (https://forum.logicmachine.net/forumdisplay.php?fid=24) +--- Thread: Realtime Clock (/showthread.php?tid=6376) |
Realtime Clock - KoBra - 01.04.2026 Is it possible to display the RTC inside the LM in Visu? RE: Realtime Clock - admin - 02.04.2026 Custom JavaScript example that adds current time near the close button. Header option must be enabled in General settings for this to work in Plan view. Code: const el = document.querySelector('.navbar > .container-fluid > div:last-child')RE: Visu bugs - Novodk - 09.04.2026 After implementing the time via JS the main title is shifted to the left, can this be resolved?
RE: Realtime Clock - admin - 09.04.2026 Try this: Code: const el = document.querySelector('.navbar > .container-fluid > div:last-child')RE: Realtime Clock - AlexLV - 09.04.2026 Hi, is possible provide Custom JavaScript for Tile View also? Alex RE: Realtime Clock - Novodk - 09.04.2026 (09.04.2026, 17:28)AlexLV Wrote: Hi, It works in Tile view as well. If you want 24 hour format and date here is an example Code: const el = document.querySelector('.navbar > .container-fluid > div:last-child')RE: Realtime Clock - admin - 10.04.2026 If you only want time in 24H format without seconds: Code: span.textContent = date.toTimeString().substring(0, 5) |