POR ALEGORÍAS

document.addEventListener('DOMContentLoaded', function() { if (window.innerWidth <= 768) { // Solo para pantallas móviles var sortableTables = document.querySelectorAll('.scporder-table tbody'); sortableTables.forEach(function(tbody) { new Sortable(tbody, { animation: 150, handle: '.scporder-handle', scroll: true, fallbackOnBody: true, swapThreshold: 0.65 }); }); } });