forked from grassator/batmanjs-address-book
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
40 lines (37 loc) · 1.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Address Book</title>
<script src="/batman/coffee-script.js" type="text/javascript"></script>
<script src="/batman/es5-shim.js" type="text/javascript"></script>
<script src="/batman/dist/batman.js" type="text/javascript"></script>
<script src="address_book.js" type="text/javascript"></script>
<link rel="stylesheet" href="resources/styles.css">
</head>
<body>
<div id="container">
<header>
<h1>Address Book</h1>
<input type="text" size="40"
placeholder="Search contact"
data-bind="controllers.contact.search">
</header>
<ul>
<li data-foreach-contact="controllers.contact.filtered_contacts">
<button type="button" data-event-click="contact.destroy">Delete</button>
<input type="text"
class="name"
data-bind="contact.name"
data-event-blur="contact.save"
placeholder="Name">
<input type="text"
data-bind="contact.phone"
data-event-blur="contact.save"
placeholder="Phone Number">
</li>
</ul>
<button type="button" data-event-click="controllers.contact.create">Add a contact</button>
</div>
<script type="text/javascript">AddressBook.run();</script>
</body>
</html>