Guest User

Untitled

a guest
Aug 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. count = 10
  2.  
  3. setCount = ->
  4.     $("#timer").html("(" + count + ")")
  5.  
  6. setCount()
  7.  
  8. counter = setInterval ->
  9.     count = count - 1
  10.     if count <= 0
  11.         clearInterval counter
  12.         $("form").submit()
  13.     setCount()
  14.     return
  15. , 1000
Add Comment
Please, Sign In to add comment