timer.jquery
timer.jquery copied to clipboard
how to write the script two functions
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