-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (41 loc) · 1.7 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
<!doctype html>
<html lang="en">
<head>
<title>Chatter!</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheer" href="css/chatter-web.css" />
</head>
<div class="container-fluid">
<h1 class="sr-only">Chatter! A Twitter Rip-Off</h1>
<img class="center-block" src="img/chatter-web-sm.png" alt="Image of Chatter Logo" data-bind="click: Add" />
<div class="list-group" data-bind="foreach: Chits">
<div class="list-group-item clearfix">
<h4 class="list-group-item-heading" data-bind="text: UserName, attr { id: Id }"></h4>
<p class="list-group-item-text" data-bind="text: Message"></p>
<span class="pull-right">
<button class="btn btn-md btn-warning">
<span class="glypicon glyphicon-pencil"></span>
</button>
<button class="btn btn-md btn-danger" data-bind="click: $root.Delete">
<span class="glyphicon glyphicon-trash"></span>
</button>
</span>
</div>
</div>
<form class="form-inline" role="form">
<div class="form-group">
<label for="username">UserName:</label>
<input type="text" class="form-control" id="username" name="UserName">
</div>
<div class="form-group">
<label for="message">Message:</label>
<input type="text" class="form-control" id="message" name="Message">
</div>
<button type="button" class="btn btn-default" data-bind="click: Add">Chit!</button>
</form>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/knockout.min.js"></script>
<script type="text/javascript" src="js/chatter-web.js"></script>
</html>