javascript countdown timer pause resume
At first my countdown timer has no pause and resume function and the timer runs just fine. Now I just added the feature, have no problem pausing but having problem resuming the time. The time just would not display from where it was and countdown from there on. How do I change my codes? $('#pause').click(function(){ // Get current minutes and seconds // var text = $('#countdown').html(); var min_sec = text.split(":"); pause_minutes = min_sec[0]; pause_seconds = min_sec[1]; // Stop the timer // clearTimeout(stop_start); // Hide pause button, show the play button // $('#pause').hide(); $('#cont'