diff --git a/main/scripts/drag.js b/main/scripts/drag.js index 2dec971..7ef3a06 100644 --- a/main/scripts/drag.js +++ b/main/scripts/drag.js @@ -4,39 +4,16 @@ // ------------ DRAG ------------ $( function() { - $( ".draggable" ).draggable(); + $( ".draggable" ).draggable( + //{ containment: [-1300,-750,1800,1250] } + ); }); -//{ containment: [-1300,-750,1800,1250] } - // ------------ ZOOM ------------- - - // $(window).on('wheel', function(event){ - // var zoom_wheel = 1.0; - - // // deltaY obviously records vertical scroll, deltaX and deltaZ exist too - // if(event.originalEvent.deltaY < 0){ - // zoom_wheel += 0.1; - // var zoom_lvl = zoom_wheel.toString(); - // $('#chaos').css('transform', 'scale(' + zoom_lvl + ',' + zoom_lvl + ')'); - // } - // else { - // zoom_wheel -= 0.1; - // var zoom_lvl = zoom_wheel.toString(); - // $('#chaos').css('transform', 'scale(' + zoom_lvl + ',' + zoom_lvl + ')'); - // } - // }); + // ------------ ZOOM ------------- function zoom(event) { - $("body").mousemove(function(event){ - var relX = event.pageX - $(this).offset().left; - var relY = event.pageY - $(this).offset().top; - - var x_lvl = relX.toString(); - var y_lvl = relY.toString(); - $('body').css('transform-origin', x_lvl + " " + relY); - }); event.preventDefault(); diff --git a/main/variations/arrow.png b/main/variations/arrow.png new file mode 100644 index 0000000..d7e9972 Binary files /dev/null and b/main/variations/arrow.png differ diff --git a/main/variations/fish.png b/main/variations/fish.png new file mode 100644 index 0000000..9e05d4a Binary files /dev/null and b/main/variations/fish.png differ diff --git a/main/variations/fish2.png b/main/variations/fish2.png new file mode 100644 index 0000000..e08bd64 Binary files /dev/null and b/main/variations/fish2.png differ diff --git a/main/variations/fish3.png b/main/variations/fish3.png new file mode 100644 index 0000000..0980b6c Binary files /dev/null and b/main/variations/fish3.png differ diff --git a/main/variations/index.html b/main/variations/index.html index b5f79b6..32eb3da 100644 --- a/main/variations/index.html +++ b/main/variations/index.html @@ -49,20 +49,56 @@