-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
115 lines (111 loc) · 3.52 KB
/
index.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html lang="en" data-framework="troopjs">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>TroopJS • TodoMVC</title>
<link rel="stylesheet" href="components/todomvc-common/base.css">
<!-- CSS overrides - remove if you don't need it -->
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<input id="new-todo" placeholder="What needs to be done?" autofocus data-weave="widget/create">
</header>
<!-- This section should be hidden by default and shown when there are todos -->
<section id="main" data-weave="widget/display">
<input id="toggle-all" type="checkbox" data-weave="widget/mark">
<label for="toggle-all">Mark all as complete</label>
<ul id="todo-list" data-weave="widget/list"></ul>
</section>
<!-- This footer should hidden by default and shown when there are todos -->
<footer id="footer" data-weave="widget/display">
<!-- This should be `0 items left` by default -->
<span id="todo-count" data-weave="widget/count"><strong>1</strong> item left</span>
<!-- Remove this if you don't implement routing -->
<ul id="filters" data-weave="widget/filters">
<li>
<a class="selected" href="#/">All</a>
</li>
<li>
<a href="#/active">Active</a>
</li>
<li>
<a href="#/completed">Completed</a>
</li>
</ul>
<!-- Hidden if no completed items are left ↓ -->
<button id="clear-completed" data-weave="widget/clear">Clear completed (1)</button>
</footer>
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
<!-- Change this out with your name and url ↓ -->
<p>Created by <a href="https://github.com/mikaelkaron">Mikael Karon</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<!-- Scripts here. Don't remove this ↓ -->
<script src="components/todomvc-common/base.js"></script>
<script type="text/javascript">
"use strict";
var require = {
"baseUrl" : "js",
"packages" : [{
"name" : "jquery",
"location" : "lib/jquery",
"main" : "dist/jquery.min"
}, {
"name" : "poly",
"location" : "lib/troopjs-bundle/lib/poly",
"main" : "poly"
}, {
"name" : "when",
"location" : "lib/troopjs-bundle/lib/when",
"main" : "when"
}, {
"name" : "troopjs-core",
"location" : "lib/troopjs-bundle/lib/troopjs-core"
}, {
"name" : "troopjs-browser",
"location" : "lib/troopjs-bundle/lib/troopjs-browser"
}, {
"name" : "troopjs-data",
"location" : "lib/troopjs-bundle/lib/troopjs-data"
}, {
"name" : "troopjs-jquery",
"location" : "lib/troopjs-bundle/lib/troopjs-jquery"
}, {
"name" : "troopjs-requirejs",
"location" : "lib/troopjs-bundle/lib/troopjs-requirejs"
}, {
"name" : "troopjs-utils",
"location" : "lib/troopjs-bundle/lib/troopjs-utils"
}, {
"name" : "troopjs-bundle",
"location" : "lib/troopjs-bundle",
"main" : "maxi.min"
}, {
"name" : "troopjs-todos",
"location" : ".",
"main" : "application.min"
}],
"map" : {
"*" : {
"template" : "troopjs-requirejs/template"
}
},
"deps" : [ "require", "jquery", "troopjs-bundle" ],
"callback" : function Boot (contextRequire, jQuery) {
contextRequire([ "troopjs-browser/application/widget", "troopjs-browser/route/widget" ], function Strap (Application, RouteWidget) {
jQuery(function ($) {
Application($("html"), "bootstrap", RouteWidget($(window), "route")).start();
});
});
}
};
</script>
<script type="text/javascript" async="async" src="js/lib/requirejs/require.js"></script>
</body>
</html>