Server IP : 150.95.80.236 / Your IP : 3.147.193.37 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/dist/assets/js/custom/documentation/general/draggable/ |
Upload File : |
"use strict";var KTDraggableRestricted={init:function(){!function(){var e=document.querySelectorAll(".draggable-zone");const a=document.querySelector('[data-kt-draggable-level="restricted"]');if(0===e.length)return!1;var r=new Droppable.default(e,{draggable:".draggable",dropzone:".draggable-zone",handle:".draggable .draggable-handle",mirror:{appendTo:"body",constrainDimensions:!0}});let t;r.on("drag:start",(e=>{t=e.originalSource.getAttribute("data-kt-draggable-level")})),r.on("drag:over",(e=>{e.overContainer.closest('[data-kt-draggable-level="restricted"]')&&"admin"!==t?a.classList.add("bg-light-danger"):a.classList.remove("bg-light-danger")})),r.on("drag:stop",(r=>{e.forEach((e=>{e.classList.remove("draggable-dropzone--occupied")})),a.classList.remove("bg-light-danger")})),r.on("droppable:dropped",(e=>{e.dropzone.closest('[data-kt-draggable-level="restricted"]')&&"admin"!==t&&(a.classList.add("bg-light-danger"),e.cancel())}))}()}};KTUtil.onDOMContentLoaded((function(){KTDraggableRestricted.init()}));