Drag and Drop: Copy and Move elements with DataTransfer
credit: github.com/mdn/mdn.github.io/dom-examples/drag-and-drop
Modified from that version as follows:
- Added these "credit" and "Modified" notes.
- Sourced a drag-and-drop API shim for mobile browsers, mobile-drag-drop in npm, via jsdelivr CDN. The specific files are index.min.js and default.css.
- Work in progress. Does not work for me yet in my mobile browser.
Select this element and drag to the Copy Drop Zone.
Copy Drop Zone
Select this element and drag to the Move Drop Zone.
Move Drop Zone