Tutorial Draggable without jQuery UI
It doesn't have all the fancy callbacks and options, but hey, it makes things draggable (and with a specified handle optionally). (funct...
https://iskablogs.blogspot.com/2014/03/tutorial-draggable-without-jquery-ui.html
It doesn't have all the fancy callbacks and options, but hey, it makes things draggable (and with a specified handle optionally).
(function($) {
$.fn.drags = function(opt) {
opt = $.extend({handle:"",cursor:"move"}, opt);
if(opt.handle === "") {
var $el = this;
} else {
var $el = this.find(opt.handle);
}
return $
(function($) {
$.fn.drags = function(opt) {
opt = $.extend({handle:"",cursor:"move"}, opt);
if(opt.handle === "") {
var $el = this;
} else {
var $el = this.find(opt.handle);
}
return $