Skip to content

how to write the script two functions #101

@ariefwiryanto

Description

@ariefwiryanto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions