Project: dom
Task (moderate): Drag and move an entry to append to entries panel, or to insert after other file. Drag and move an entry to append to other dir when dragging to target's left half part, and to insert after the target when dragging to target's right half part. Save codes to 'common/drag.js' imported by 'index.js'.