Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 1.17 KB
<!doctype html>
<html ng-app ng-csp>
<head>
<script src="loader.js"></script>
<script src="angular.min.js"></script>
<script src="controller.js"></script>
<link rel="stylesheet" href="todo.css">
</head>
<body ng-controller="TodoCtrl" ng-class="dropClass">
<h2>Todo</h2>
<div>
<span>{{remaining()}} of {{todos.length}} remaining</span>
[ <a href="" ng-click="archive() || save()">archive</a> ]
<ul class="unstyled">
<li ng-repeat="todo in todos">
<input type="checkbox" ng-model="todo.done" ng-change="save()">
<img style="max-height: 48px; max-width: 120px;" ng-show="todo.validImage" ng-src="{{todo.imageUrl}}"></img>
<span class="done-{{todo.done}}">{{todo.text}}</span>
<a ng-show="todo.uri" href="" ng-click="showUri(todo.uri)">(view url)</a>
</li>
</ul>
<form ng-submit="addTodo() || save()">
<input type="text" ng-model="todoText" size="30"
placeholder="add new todo here">
<input class="btn-primary" type="submit" value="add">
</form>
<div>
{{dropText}}
</div>
<webview></webview>
</div>
</body>
</html>