Countdown timer with vanilla javascirpt requiring no dependencies.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.html
simple.countdown.js

README.md

Overview

Simple countdown timer, mainly used for an event or countdown to day done in plain javascript with no dependencies.

Markup

  1. Create a container:
<div id="countdown">
	-- content will go here --
</div>
  1. Create a container for each digit (example: days). Create one for each digit, days, hours, minutes, seconds:
<div id="days">
    <span id="daysVal"></span>
    <div class="countdown-label">Days</div>
</div>

JS

  1. Run the function:
simple_countdown("Month Day, Year 00:00:00");

Demo

See the basic functionality here.