Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- const timer = $('.timer');
- timer.startTimer({ allowPause: true });
- setTimeout(() => {
- timer.trigger('click');
- timer.data('timeLeft', 30);
- timer.trigger('click');
- }, 3000);
- });
- /*
- * Try this with a <h1 class="timer" data-seconds-left="55"></h1> for example,
- * and you should see it updating to 30 seconds at the 52 second mark
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement