-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
44 lines (40 loc) · 1.14 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>
<head>
<title>My Expenses Sheet</title>
<link rel="stylesheet" type="text/css" href="css/default.css">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.0.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-2.2.1.js"></script>
</head>
<body>
<h1>Expenses Application</h1>
<div class="total">
Billing Amount <strong>$<span data-bind="text: total"></span></strong>
</div>
<div class="row-title">
<div class="col">
Description
</div>
<div class="col-time">
Time
</div>
<div class="clear"></div>
</div><!--end of row title -->
<div data-bind="foreach: expenses">
<div class="row" >
<div class="col">
<span data-bind="text: desc"></span>
</div>
<div class="col-time">
<span data-bind="text: time"></span>
</div>
<div class="clear"></div>
</div><!--end of row -->
</div><!--end of foreach: expenses -->
<h1>Add Expense</h1>
<input type="text" id="desc" placeholder="Description" />
<input type="text" id="time" placeholder="Time Spent" />
<input type="button" data-bind="click: addExpense" value="Add" />
<script src="scripts/default.js"></script>
</body>
</html>