-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraggable.html
25 lines (22 loc) · 1.27 KB
/
draggable.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<title>Draggable</title>
</head>
<body ng-app="myApp" ng-controller="MyCtrl">
<div ng-repeat="item in items" draggable positioned>{{item.content}} (x:{{item.left}} / y:{{item.top}})</div>
<button ng-click="addItem()">add</button>
<button ng-click="log()">log scope</button>
<button ng-click="loadItemsFromScript()">load from script</button>
<input type="text" ng-model="storage_prefix" placeholder="storage prefix" />
<button ng-click="loadItemsFromLocalStorage()">load from storage</button>
<button ng-click="saveItemsToLocalStorage()">save to storage</button>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>
<script src="draggable.js"></script>
</body>
</html>