Browse files

Updated Documentation

  • Loading branch information...
1 parent 623d215 commit 14ea74cc8b8142467139d8724daec5b45e9848d0 @kgaddy committed Mar 25, 2012
Showing with 24 additions and 4 deletions.
  1. +23 −3
  2. +1 −1 css/styles.css
@@ -11,6 +11,26 @@ gameclock.js is a javascript library that can be used to create a timer/clock fo
A step by step guide on how to use gameclock.js:
-## Demo's
+Use gameclock.js:
+<script type="text/javascript" src="js/gameclock.js"></script>
+Create an instance of the clock:
+var clock = new Clock({
+ time:9000,
+ displayEL:'clock',
+ stopAferTimeout:true,
+ resetAfterTimeout:false,
+ timeoutCallBack:stopme
+Start The clock:
+Stop The clock:
+Rest The clock:
+displayEL: The display element. This will display the current state of the clock in a element.
+time: The amount of time for the game.
+stopAferTimeout: If true, will stop at zero. If false, will contine to display a negative time.
+resetAfterTimeout: If true, will reset the clock to the "time" value and continue to countdown.
+timeoutCallBack: A callback function that will fire when the clock reaches zero.
2 css/styles.css
@@ -31,7 +31,7 @@ body{
- width:250px;
+ width:290px;

0 comments on commit 14ea74c

Please sign in to comment.