0
Real time clock within a form view
Hello Again All,
Is it possible to have clock (face or digital) that keeps the current local time within a form view?
Thanks,
Sam
20 replies
-
Hi Sam, something like that, I can send you the code tomorrow the router die today.
-
a realtime clock like this:
let css := " <style> main { font: 1.5em 'Courier New',monospace; } </style>"; let content := " <main id='clock'></main> <script> function addZero(i) { if (i < 10) {i = '0' + i} return i; }; setInterval( function() { let now = new Date(); let houres = now.getHours(); let minutes = now.getMinutes(); let seconds = now.getSeconds(); let node = document.querySelector('#clock'); node.innerHTML = addZero(houres) + ':' + addZero(minutes) + ':' + addZero(seconds); } , 1000)(); </script> "; html(css + content)
Content aside
- Status Answered
- 1 yr agoLast active
- 20Replies
- 206Views
-
4
Following