summaryrefslogtreecommitdiff
path: root/js/help.js
blob: 9ac26605062a8e1cf9ff4a4b43933c97cc881a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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) }