epiclock EC_LOOP not repeating
I'm just trying out Epiclock using EC_LOOP. On the demo page, the clock counts down to zero, then resets and starts counting down again. When I test, it counts to zero and then stops. I'm clearly missing something: can anyone shed any light?
-
<html>
- <head>
-
<script type="text/javascript" src="jquery.js"></script>
-
<script type="text/javascript" src="epiclock/jquery.epiclock.js"></script>
-
<script type="text/javascript">
-
$(document).ready(function() {
-
jQuery('#clock').epiclock({mode: EC_LOOP, format: 's { seconds remain}', offset: {seconds: 2}, onTimer: function(){
-
rolls.text((rolls.text()*1) + 1);
-
}});
-
jQuery.epiclock(EC_RUN);
-
});
-
</script>
-
</head>
-
<body>
-
<div id="clock"></div>
-
</body>
- </html>