Skip to content

kt3k/text-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text-timer v0.1.1

Simple text timer

This library depends on jquery and gameloop.

Usage

<script src="path/to/jquery.js"></script>
<script src="path/to/gameloop.js"></script>

<script src="path/to/text-timer.js"></script>


<span class="text-timer" data-time="360000"></span>

The above span tag content become hh:mm:ss.uu and stop with label 00:00:00.00 after 6 minutes.

Initialize manually

$(document).trigger('init.text-timer');

Trigger init.text-timer event on document and initialize the text-timers.

About

Simple text timer

Resources

Stars

Watchers

Forks

Packages

No packages published