<!-- Adapted and improved from: https://jsfiddle.net/Logan_Wayne/ru1a3npc/ -->
<!-- Goal:
1. Save the coordinate of each class draggable as JSON String
2. Load their coordinates from JSON string
*** Remark: I know changing the position to absolute helps,
but my website is reponsive so the absolute layout will break out from the parent class if i rescale the page***
-->
<div id="containment-wrapper">
<div id="1" class="ui-widget-content draggable" data-left="20px" data-top="20px" style="position: relative; left:20px; top:20px">Table</div>
<div id="2" class="ui-widget-content draggable" data-left="97px" data-top="102px" style="position: relative; left: 97px; top:102px;">Chair</div>
<div id="3" class="ui-widget-content draggable" data-left="98px" data-top="20px" style="position: relative; left:98px; top: 20px;">Couch</div>
<div id="4" class="ui-widget-content draggable" data-left="176px" data-top="20px" style="position: relative; left: 176px; top:20px;">Window</div>
</div>
<button id="save">Save Position</button>
<button id="load">Load json</button><br>
Press save Position, copy this json String, paste the it into javascript line line 46 and then RUN the fiddle again
<div id="message"></div>