Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery countdown pause and resume feature?

i need to code to pause and resume jquery countdown . for this script: http://plugins.jquery.com/project/jquery-countdown

like image 724
user526094 Avatar asked Jan 21 '23 23:01

user526094


1 Answers

With this plugin is very simple

http://keith-wood.name/countdown.html

$('#pauseButton').toggle(
    function() { 
        $(this).text('Resume'); 
        $('#pauseResume').countdown('pause'); 
    }, 
    function() { 
        $(this).text('Pause'); 
        $('#pauseResume').countdown('resume'); 
    } 
);
like image 98
Fernando Almeida Avatar answered Jan 31 '23 06:01

Fernando Almeida