javascript - Replace dark background and square -
below example of pretty cool angularjs app has drag-and-drop feature. uses ngdraggable module.
http://jsfiddle.net/zargyle/35z4j/
<div ng-app="test" ng-controller="testctrl"> <div id="container"> <div class="shape" ng-draggable='dragoptions'></div> </div> </div>
the background black. user can drag white square around. want 2 things;
- replace black background floorplan.
- replace white square simple image icon.
how can jsfiddle modified above?
check link
http://jsfiddle.net/35z4j/113/
#container { width : auto; height: 1200px; background:url('http://i.stack.imgur.com/ggzvy.jpg'); background-repeat:no-repeat; } .shape { position: absolute; width : 200px; height: 500px; background:url('http://i.stack.imgur.com/ngqbn.png'); background-repeat:no-repeat; }
Comments
Post a Comment