javascript - display buttons for few seconds and then reset screen -
i have piece of code makes counter work 2 minutes. after 2 min on alert box appears informing time completion. what trying when alert box appears , user clicks ok , returns screen want make 2 buttons disappear , 1 button should stay. till here have been able part(also indicated through comment b/w code) should stay 20 seconds , after screen should reset automatically. the code using is var ticker = function() { counter--; var t = (counter / 60) | 0; // round off digits.eq(0).text(t); t = ((counter % 60) / 10) | 0; digits.eq(2).text(t); t = (counter % 60) % 10; digits.eq(3).text(t); if (!counter) { clearinterval(timer); alert('sorry, time out.'); /***3 lines given below should stay 20 sec , after screen should reset***/ $("#count").hide(); $(...