diff options
| author | jules <jules@okfoc.us> | 2014-01-25 23:24:36 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2014-01-25 23:24:36 -0500 |
| commit | 9433b20670a1eada77e1a4372a8f8ccad6f499c3 (patch) | |
| tree | c01c78b3c724d23d23ee4fc044b2d864fc60d382 /js/help.js | |
| parent | e35a55d8dbc8696b0c5ab2f26cc4801957324394 (diff) | |
split out help and whatever else
Diffstat (limited to 'js/help.js')
| -rw-r--r-- | js/help.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/help.js b/js/help.js new file mode 100644 index 0000000..5610794 --- /dev/null +++ b/js/help.js @@ -0,0 +1,19 @@ + +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") } |
