resetpassword.ui.js 284 B

123456789101112
  1. $(function()
  2. {
  3. if(expired)
  4. {
  5. setInterval(function()
  6. {
  7. var time = $('#time').text();
  8. if(time == 0) window.location.href = $('#redirect').attr('href');
  9. $('#time').text(time - 1 <= 0 ? 0 : time - 1);
  10. }, 1000);
  11. }
  12. })