-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·59 lines (49 loc) · 1.55 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
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Serenade.js</title>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="css/style.css?v=2">
<link rel="stylesheet" href="css/todos.css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/x-serenade" id="app">
.content
form[event:submit=addNew!]
input#new-todo[placeholder="What needs to be done?" type="text" event:change=setTitle]
p
label
input[type="checkbox" event:click=setTodoDone checked=@allCompleted]
"Mark all as complete"
ul#todo-list
- collection @todos
- view "todo"
#todo-stats
- if @completedCount
button[class="some-completed" type="button" event:click=clear] "Clear " @completedCount " completed item"
span @incompleteCount " items left"
</script>
<script type="text/x-serenade" id="todo">
li[class=@status]
label
input[type="checkbox" checked=@done event:click=toggleDone]
span @title
</script>
</head>
<body>
<div id="todoapp">
<div class="title">
<h1>Todos</h1>
</div>
</div>
<div id="credits">
Credits:<br />
Jonas Nicklas
</div>
<script src="js/serenade.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>