-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·67 lines (51 loc) · 1.33 KB
/
Copy pathindex.html
File metadata and controls
executable file
·67 lines (51 loc) · 1.33 KB
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
<!doctype html>
<html lang="en">
<head>
<title>Todo App - Backbone - Require - Wire - Thomas Davis</title>
<link rel="stylesheet" href="css/todos.css">
<script src="js/_libs/requirejs/require.js"></script>
<script>
if ( window.location.hash === '#dev' ) { // Is dev mode
document.write('<script src="js/todos/src/amd.base.js"></sc' + 'ript>');
} else { // Live mode
require.config( {
baseUrl: 'js/todos/build',
packages: [
{ name: 'wire' },
{ name: 'when' }
]
} );
}
</script>
<script>
// Load the modules
require( [ 'todos' ] );
</script>
</head>
<body>
<div id="todoapp">
<div class="title">
<h1>Todos</h1>
</div>
<div class="content">
<div id="create-todo">
<input id="new-todo" placeholder="What needs to be done?" type="text" />
<span class="ui-tooltip-top" style="display:none;">Press Enter to save this task</span>
</div>
<div id="todos">
<input class="check mark-all-done" type="checkbox"/>
<label for="check-all">Mark all as complete</label>
<ul id="todo-list"></ul>
</div>
<div id="todo-stats"></div>
</div>
</div>
<div id="credits">
<p>Modularized by
<a href="http://backbonetutorials.com">Thomas Davis</a>.
Originally by
<a href="http://jgn.me/">Jérôme Gravel-Niquet</a>.
</p>
</div>
</body>
</html>