Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 10
- setCount = ->
- $("#timer").html("(" + count + ")")
- setCount()
- counter = setInterval ->
- count = count - 1
- if count <= 0
- clearInterval counter
- $("form").submit()
- setCount()
- return
- , 1000
Add Comment
Please, Sign In to add comment