diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-01-23 10:10:19 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-01-23 10:10:19 -0500 |
| commit | 3a51572e8a6628f90e73e2ab0bca52a98d9540e7 (patch) | |
| tree | 7187b65938780e22d091f5738636cf8b34f1ea3c /shader-picker.html | |
| parent | 9c9a700e268af6e3c6d4ed140d29d56968641dc7 (diff) | |
more shuffling
Diffstat (limited to 'shader-picker.html')
| -rw-r--r-- | shader-picker.html | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/shader-picker.html b/shader-picker.html index 923f1b6..0f27d6a 100644 --- a/shader-picker.html +++ b/shader-picker.html @@ -147,32 +147,13 @@ function init(){ mousey = e.pageY }) - $("#add-frame").click(add_frame) - $("#frames").sortable({ - start: drag_start, - stop: drag_stop - }); - $(document).on("click","#frames .remove",remove_frame) - $("#framecount").change(function(){ - var val = $(this).int() - if (val < 1 || isNaN(val)) $(this).val(val = 1) - if (val == 1) $("#add-frame").html("+add frame") - else $("#add-frame").html("+add frames") - }) $("#background").change(function(){ document.body.style.backgroundColor = $("#background").string() }) - $("#frames").disableSelection(); - $("#remove-all-frames").click(remove_all_frames) - $("#weave-frames").click(weave_frames) - $("#shuffle-frames").click(shuffle_frames) - $("#reverse-frames").click(reverse_frames) - $("#sort-frames").click(sort_frames) + frame_editor.init() - $("#render").click(render) - $("#save").click(save) - $("#upload").click(upload) + $(window).on("scroll DOMMouseScroll mousewheel", function(){ scrolling = true }) $("#help,#instructions .close").click(function(){ $("#instructions").toggle() }) $("#instructions").draggable({ start: drag_start, @@ -181,7 +162,6 @@ function init(){ $("#instructions").disableSelection(); load() - $(window).on("scroll DOMMouseScroll mousewheel", function(){ scrolling = true }) gallery.choose = choose gallery.init() |
