hy/site/coffee/main.coffee

19 lines
348 B
CoffeeScript
Raw Normal View History

2013-03-10 20:17:16 +01:00
reload = ->
input = $("#repl-input").val()
$('#repl-output').load('/hy2pycol', {'code': input})
2013-03-10 19:20:09 +01:00
2013-03-10 20:17:16 +01:00
$(document).ready(->
count = 0
$("#repl-input").keyup((e) ->
curcount = 0
count += 1
curcount = count
window.setTimeout(->
if curcount == count
console.log("trigger")
reload()
, 500)
)
reload()
);