summaryrefslogtreecommitdiff
path: root/js/help.js
blob: 1794f3bc36f57b7891d6a4795f86c8bc8505b911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var help = {}

help.init = function(){
	help.bind()
}

help.bind = function(){
	$(window).on("scroll DOMMouseScroll mousewheel", function(){ scrolling = true })
	$("#help,#instructions .close").click(function(){ $("#instructions").toggle() })
	$("#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) }