Difference between revisions of "Team:Tec-Monterrey/sandboxDavid"

Line 630: Line 630:
 
         </div>
 
         </div>
 
         <script>
 
         <script>
 +
        document.addEventListener("DOMContentLoaded", function(event) {
 
             // target elements with the "draggable" class
 
             // target elements with the "draggable" class
 
         interact('.draggable')
 
         interact('.draggable')
Line 637: Line 638:
 
                 // keep the element within the area of it's parent
 
                 // keep the element within the area of it's parent
 
                 restrict: {
 
                 restrict: {
                     restrict ({ drag: getElementById('#dropzoneWrapper') }),
+
                     restriction: "#dropzoneWrapper",
 
                     endOnly: true,
 
                     endOnly: true,
 
                     elementRect: {
 
                     elementRect: {
Line 763: Line 764:
 
                 onmove: dragMoveListener,
 
                 onmove: dragMoveListener,
 
             });
 
             });
 +
        }
 
     </script>
 
     </script>
 
     </section>
 
     </section>

Revision as of 03:26, 15 October 2018


E. coding
Tec-Monterrey

Contact Us

Sponsors