zeus.ugent.be/content/cammie.coffee

16 lines
374 B
CoffeeScript
Raw Normal View History

2016-07-18 09:24:24 +02:00
$('.ctrl').click ->
$.ajax "//kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi",
data:
command: $(this).attr("command")
posX: $(this).attr("posX")
posY: $(this).attr("posY")
2016-07-18 12:07:15 +02:00
$('.ctrl').hide()
timeout = null
$('.fullpage').mousemove (event) ->
clearTimeout(timeout) if timeout
$('.ctrl').fadeIn()
timeout = setTimeout (-> $('.ctrl').fadeOut()), 3000