Skip to content

HTML5 drag drop experiment using draggable and ondragstart attributes and dragover and drop events. Completely client-side code using localStorage to save state. Done to help my wife plan a "Primay Program" (church children's choir concert).

ddanger/choir-singer-placement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTML5 Drag and Drop Divs

Summary

This project was a quick use of HTML5 drag and drop divs to help solve a problem. The problem was the need to arrange 60 choir singers on a stage with multiple platforms so their heights would look good relative to eachother.

This project is simple vanilla HTML5 and javascript with no dependencies. You might be interested if you want do this without any libraries.

Clone it

Run it

  1. Launch client\index.html in a browser (I only tested with Chrome)
  2. Expect to see some fixed divs indicating a stage.
  3. Expect to see lots of divs stacked on top of eachother in the upper left (these represent the singers)
  4. Your task is to arrange the people on the platforms so their heads will all be visible.

Good Luck!

Note: The app uses localStorage so you don't lose your work when you refresh the page.

A Solution

In singer-positions.json there is a solution. To see it, paste the contents into the singer-positions localStorage value, then refresh the page.

References

About

HTML5 drag drop experiment using draggable and ondragstart attributes and dragover and drop events. Completely client-side code using localStorage to save state. Done to help my wife plan a "Primay Program" (church children's choir concert).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published