timer.jquery icon indicating copy to clipboard operation
timer.jquery copied to clipboard

how to write the script two functions

Open ariefwiryanto opened this issue 4 years ago • 0 comments

Dear Sir/Madam,

how to write the script two functions, such as start a timer & execute a function in 5 minutes & 30 seconds and also execute a function every 2 minutes ? is it true like below :

$('#div-id').timer({ duration: '5m30s', callback: function() { alert('Time up!'); } });

$('#div-id').timer({ duration: '2m', callback: function() { console.log('Why, Hello there'); }, repeat: true });

Thanks in advance Regards,

Arief

ariefwiryanto avatar Mar 05 '21 10:03 ariefwiryanto