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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -