could anyone one point me in the right direction to where I might obtain HTML for a countdown timer that I wish to use in a webviewer.
Thanks in advance.
Try this one.
go to the "Try it yourself" to get the full text to copy.
Place all of the text into a field (global) and then do this in the Web Viewer:
"data:text/html," & yourfield_here
I forgot to add...
There is a hard coded date in the code.
// Set the date we're counting down tovar countDownDate = new Date("Jan 5, 2018 15:37:25").getTime();
// Set the date we're counting down to
var countDownDate = new Date("Jan 5, 2018 15:37:25").getTime();
change this or make it a field (global or otherwise):
And use this in the Web Viewer:
"data:text/html," & Substitute( yourfield_here ; "Jan 5, 2018 15:37:25" ; yourdate_here )
Got that to work by cutting and pasting. (although I tried altering the date by replacing var countDownDate as you suggested but could not get this to work)
The Date is always the CurrentDate, so days are not required.
I need the ability to have up to 30 "Timers" that occur one after the other, whereby the organiser when setting up the event specifies the starting time of the event (Event::StartTime) and then specifies the length of time for each "Timer" (Event::Level1 Duration) required that commence immediately after the previous timer.
I have included an example made in excel below that shows the structure that I require.
I would also require the ability to "pause" the timer and then "recommence" the timer.
If you have any suggestions it would be greatly appreciated.
Retrieving data ...