Add an AngularJS test to DoYouEvenBench
[WebKit-https.git] / PerformanceTests / DoYouEvenBench / todomvc / architecture-examples / angularjs / index.html
1 <!doctype html>
2 <html lang="en" ng-app="todomvc" data-framework="angularjs">
3     <head>
4     <meta charset="utf-8">
5     <meta http-equiv="X-UA-Compatible" content="IE=edge">
6     <title>AngularJS • TodoMVC</title>
7     <link rel="stylesheet" href="bower_components/todomvc-common/base.css">
8     <style>[ng-cloak] { display: none; }</style>
9     </head>
10     <body>
11     <section id="todoapp" ng-controller="TodoCtrl">
12     <header id="header">
13     <h1>todos</h1>
14     <form id="todo-form" ng-submit="addTodo()">
15     <input id="new-todo" placeholder="What needs to be done?" ng-model="newTodo" autofocus>
16     </form>
17     </header>
18     <section id="main" ng-show="todos.length" ng-cloak>
19     <input id="toggle-all" type="checkbox" ng-model="allChecked" ng-click="markAll(allChecked)">
20     <label for="toggle-all">Mark all as complete</label>
21     <ul id="todo-list">
22     <li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == editedTodo}">
23     <div class="view">
24     <input class="toggle" type="checkbox" ng-model="todo.completed">
25     <label ng-dblclick="editTodo(todo)">{{todo.title}}</label>
26     <button class="destroy" ng-click="removeTodo(todo)"></button>
27     </div>
28     <form ng-submit="doneEditing(todo)">
29     <input class="edit" ng-model="todo.title" todo-escape="revertEditing(todo)" todo-blur="doneEditing(todo)" todo-focus="todo == editedTodo">
30     </form>
31     </li>
32     </ul>
33     </section>
34     <footer id="footer" ng-show="todos.length" ng-cloak>
35     <span id="todo-count"><strong>{{remainingCount}}</strong>
36     <ng-pluralize count="remainingCount" when="{ one: 'item left', other: 'items left' }"></ng-pluralize>
37     </span>
38     <ul id="filters">
39     <li>
40     <a ng-class="{selected: location.path() == '/'} " href="#/">All</a>
41     </li>
42     <li>
43     <a ng-class="{selected: location.path() == '/active'}" href="#/active">Active</a>
44     </li>
45     <li>
46     <a ng-class="{selected: location.path() == '/completed'}" href="#/completed">Completed</a>
47     </li>
48     </ul>
49     <button id="clear-completed" ng-click="clearCompletedTodos()" ng-show="completedCount">Clear completed ({{completedCount}})</button>
50     </footer>
51     </section>
52     <footer id="info">
53     <p>Double-click to edit a todo</p>
54     <p>Credits:
55     <a href="http://twitter.com/cburgdorf">Christoph Burgdorf</a>,
56     <a href="http://ericbidelman.com">Eric Bidelman</a>,
57     <a href="http://jacobmumm.com">Jacob Mumm</a> and
58     <a href="http://igorminar.com">Igor Minar</a>
59     </p>
60     <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
61     </footer>
62     <script src="bower_components/todomvc-common/base.js"></script>
63     <script src="bower_components/angular/angular.js"></script>
64     <script src="js/app.js"></script>
65     <script src="js/controllers/todoCtrl.js"></script>
66     <script src="js/services/todoStorage.js"></script>
67     <script src="js/directives/todoFocus.js"></script>
68     <script src="js/directives/todoBlur.js"></script>
69     <script src="js/directives/todoEscape.js"></script>
70     </body>
71 </html>