Countdown Timer
Contents
About
The code for this tool was pulled from DKB-505.
This countdown timer works well in a bonus block. It displays a countdown clock until the timer runs out, at which point the content is replaced with new content, such as a link to the event page.
This tool works well in a bonus block, but can also be used in other page sections. Because it is coded with JavaScript as opposed to jQuery, the entire contents of the code can be added to any page block or editable content section by any user role without requiring custom code access.
If the timer should still display after the countdown ends, change autoreplace = true to autoreplace = false.
Display
Below you can see how the countdown block will display before and after the timer runs out.
Timer runs out on:
Default block! Big sale, get in here!
Demo
Below is an example of how this widget displays.
Default block! Big sale, get in here!
Code Snippet
Click below to copy the code snippet to your clipboard.