Countdown Timer

Description

The countdown timer is a specificc component, designed to render a countdown timer from a given date. Any JS Date compatible date format, entered as a string, works: see here. Currently, only one timer per page is supported.

Sample Countdown Timer

Rendered


This is the context section

0weeks
0days
0hours
0minutes
0seconds

this is a footnote


Options

classes : string

context : string

footnote : string

target_date : valid time string
For more information, see documentation on the javascript Date object: here


Sample Countdown Timer

Code


{% include components/countdown-timer.html classes="inverted padding-vertical-medium" context="This is the context section" target_date="Friday, december 31, 2019" footnote="this is a footnote" %}

Rendered


This is the context section

0weeks
0days
0hours
0minutes
0seconds

this is a footnote