Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jquery revert time left to time spend .setTimeout()
  2. function win() {
  3.     clearTimeout(timer);
  4.     $('#panel').hide();
  5.     var timeElapsed = 30 - seconds;
  6.     $('#won').fadeIn('slow').html('<span class="">You click all div's in ' + timeElapsed + ' seconds</span>');
  7. }