-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (31 loc) · 1.71 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://learn.knockoutjs.com//Content/TutorialSpecific/loadingsaving.css">
<link rel="stylesheet" type="text/css" href="http://learn.knockoutjs.com/Content/App/coderunner.css">
<SCRIPT TYPE="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" src="lib/toastr.js"></SCRIPT>
<link href="normalize.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style.css">
<link href="http://codeseven.github.com/toastr/toastr.css" rel="stylesheet" type="text/css" />
<link href="http://codeseven.github.com/toastr/toastr-responsive.css" rel="stylesheet" type="text/css" />
</head>
<body class="codeRunner">
<h3>Tasks</h3>
<form data-bind="submit: addTask">
Add task: <input data-bind="value: newTaskText" placeholder="What needs to be done?" />
<button type="submit">Add</button>
</form>
<ul data-bind="foreach: tasks(), visible: tasks().length > 0">
<li>
<input type="checkbox" data-bind="checked: isDone" />
<input data-bind="value: title, disable: isDone()" />
<a href="#" data-bind="click: $parent.removeTask">Delete</a>
</li>
</ul>
You have <b data-bind="text: incompleteTasks().length"> </b> incomplete task(s)
<span data-bind="visible: incompleteTasks().length == 0"> - it's beer time!</span>
<button data-bind="click: save">Save</button>
<script type="text/javascript" data-main="scripts/init.js" src="lib/require.js"></script>
</html>