Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $(function() {
  2. const timer = $('.timer');
  3. timer.startTimer({ allowPause: true });
  4.  
  5. setTimeout(() => {
  6. timer.trigger('click');
  7. timer.data('timeLeft', 30);
  8. timer.trigger('click');
  9. }, 3000);
  10. });
  11.  
  12. /*
  13. * Try this with a <h1 class="timer" data-seconds-left="55"></h1> for example,
  14. * and you should see it updating to 30 seconds at the 52 second mark
  15. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement