epiclock EC_LOOP not repeating

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?

  1. <html>
  2. <head>
  3. <script type="text/javascript" src="jquery.js"></script>
  4. <script type="text/javascript" src="epiclock/jquery.epiclock.js"></script>
  5. <script type="text/javascript">
  6. $(document).ready(function() {
  7. jQuery('#clock').epiclock({mode: EC_LOOP, format: 's { seconds remain}', offset: {seconds: 2}, onTimer: function(){
  8. rolls.text((rolls.text()*1) + 1);
  9. }});
  10. jQuery.epiclock(EC_RUN);
  11. });
  12. </script>
  13. </head>
  14. <body>
  15. <div id="clock"></div>
  16. </body>
  17. </html>
    • Topic Participants

    • kae