Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 781 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 781 Bytes

drag-drop-weak-orders

JavaScript implementation of a drag and drop UI for weak orders (rankings with ties), based on the HTML5 drag and drop API. The code is vanilla JS, in the fully self-contained files horizontal.html (horizontal version) and vertical.html (vertical version with horizontal indifference classes). At the time of development (April 2024), the drag and drop API was still not well-supported on mobile browsers, so I'm also loading a polyfill javascript file (https://github.com/Bernardo-Castilho/dragdroptouch), but this may become unnecessary in due course.

Demo: https://dominikpeters.github.io/drag-drop-weak-orders/

drag-drop-weak-order