vvvw/static/js/draggable.js

22 lines
387 B
JavaScript
Raw Normal View History

2020-09-08 17:39:27 +02:00
// draggable
$(document).ready(function() {
var a = 3;
var dragOpts = {
cursor: "move",
cursor: "grab",
// axis: "y",
distance: "0",
// cursorAt: {
// top: 0,
// left: 0
// }
};
2020-09-08 16:33:34 +02:00
2020-09-08 17:39:27 +02:00
$('.draggable').draggable({
start: function(event, ui) { $(this).css("z-index", a++); }
});
2020-09-08 16:33:34 +02:00
2020-09-08 17:39:27 +02:00
});