Can the 'Save' button in my code save team assignments for players selected using drag and drop? I'm considering using localStorage, but unsure about implementation.
Note: To run the code properly, copy it as an HTML file on your computer.
/* MODIFY THESE VARIABLES */
var boxSizeArray = [13,13,13,13,13,13];
var arrow_offsetX = -5;
var arrow_offsetY = 0;
// other variables...
...
// Javascript code
...
// CSS style
body{
font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
background-color:#E2EBED;
}
// more CSS styles...
/* End main container CSS */
<div id="dhtmlgoodies_dragDropContainer">
<div id="topBar">
<img src="/images/heading3.gif" />
</div>
// HTML structure
</ul>