blob: 6f39aa7c7653512b6d461e8cc65b6e691627debe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
var help = {}
help.init = function(){
help.bind()
}
help.bind = function(){
$(window).on("scroll DOMMouseScroll mousewheel", function(){ scrolling = true })
$("#help").click(function(){ $("#instructions").toggle() ;console.log("zZ") })
$("#instructions .close").click(function(){ $("#instructions").toggle() ;console.log("zZ") })
$("#instructions").draggable({
start: drag_start,
stop: drag_stop
})
$("#instructions").disableSelection();
}
function drag_start(){ dragging = true; $(this).addClass("dragging") }
function drag_stop(){ dragging = false; $(".dragging").removeClass("dragging") }
function status(s){ $(".status").html(s); console.log(s) }
function quiet_status(s){ $(".status").html(s) }
|