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;

  1. replace black background floorplan.

enter image description here

  1. replace white square simple image icon.

enter image description here

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -