dikplhd/public/assets/js/pages/extended-sortable.min.js

1 line
1.3 KiB
JavaScript

var gridDemo=document.getElementById("gridDemo"),moveLeft=document.getElementById("move-left"),moveRight=document.getElementById("move-right"),moveHandleRight=document.getElementById("moveHandle-right"),moveHandleLeft=document.getElementById("moveHandle-left"),example1=document.getElementById("example1"),example2Left=document.getElementById("example2-left"),example2Right=document.getElementById("example2-right"),example3Left=document.getElementById("example3-left"),example3Right=document.getElementById("example3-right"),example4=document.getElementById("example4");new Sortable(gridDemo,{animation:150,ghostClass:"blue-background-class"}),new Sortable(moveLeft,{group:"shared",animation:150}),new Sortable(moveRight,{group:"shared",animation:150}),new Sortable(moveHandleLeft,{handle:".handle",group:"shared",animation:150}),new Sortable(moveHandleRight,{handle:".handle",group:"shared",animation:150}),new Sortable(example1,{animation:150,ghostClass:"blue-background-class"}),new Sortable(example2Left,{group:{name:"shared",pull:"clone"},animation:150}),new Sortable(example2Right,{group:{name:"shared",pull:"clone"},animation:150}),new Sortable(example3Left,{group:{name:"shared",pull:"clone",put:!1},animation:150,sort:!1}),new Sortable(example3Right,{group:"shared",animation:150}),new Sortable(example4,{filter:".filtered",animation:150});