-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME
More file actions
25 lines (21 loc) · 963 Bytes
/
README
File metadata and controls
25 lines (21 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--------------------
2011-03-27
Changed the way the output is generated. In the example below i have an unordered list with ids on the <li>s.
HTML
<div id="timer">
<ul>
<li id="days"></li>
<li id="hours"></li>
<li id="minutes"></li>
<li id="seconds"></li>
</ul>
</div>
CSS
#timer ul { list-style-type: none; }
#timer ul li span { display: block; float: left; width: 100px; }
Added support page at: http://www.matthewaprice.com/simple-javascript-timer/
--------------------
2011-03-27
This is a simple javascript countdown timer for jquery. You put this in your scripts.js file. This is not a plugin. Currently it works by pulling unix time off an id of a span in your html. My original purpose was for pulling the initial timer from a db. I would like to adapt this into a jquery plugin so that you could call it like this:
$("#timer").countDown("September 01, 2011 00:00:00");
--------------------