blob: 7bc3a6b020b88938f7b4023c317de8cc8a154b9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
var help = {}
help.init = function(){
help.bind()
}
help.bind = function(){
$(window).on("scroll DOMMouseScroll mousewheel", function(){ scrolling = true })
$("#show-commands").click(function(){ $("#tutorial").hide(); $("#commands").toggle() })
$("#show-tutorial").click(function(){ $("#commands").hide(); $("#tutorial").toggle() })
$("#commands .close").click(function(){ $("#commands").toggle() })
$("#tutorial .close").click(function(){ $("#tutorial").toggle() })
$("#commands,#tutorial").draggable({
start: drag_start,
stop: drag_stop
})
$("#commands,#tutorial").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) }
|