-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
132 lines (123 loc) · 4.18 KB
/
Copy pathindex.html
File metadata and controls
132 lines (123 loc) · 4.18 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<title>Budget Allocation App</title>
<script src = "BudgetApp.js"></script>
<link rel = "stylesheet" href = "BudgetApp.css">
</head>
<body>
<h1>Dan's Budget</h1>
<table id="HeadingTable">
<tr>
<td id="BudgetAmount" style="width:25%">
Budget: $
<input id="Budget" onchange="BudgetValidation()" type="number" placeholder="Amount" align="right" style = "width:64%"">
</td>
<td id="Remaining" style="width:25%">Remaining$: 1250</td>
<td id="Spent" style="width:25%">Spent So far$: 18750</td>
<td id="Currency" class="dropdown" style = "width:25%">
Currency
<select style = "width:69%">
<option value="USD">$ Dollar</option>
<option value="EUR">€ Euro</option>
<option value="GBP">£ Pound</option>
<option value="INR">₹ Rupee</option>
</select>
</td>
</tr>
</table>
<h2>Allocation</h2>
<table id="AllocationTable">
<th style="width:35%">Expense</th>
<th style="width:35%">Budget Allocation</th>
<th style="width:15%">increase by 10</th>
<th style="width:15%">decrease by 10</th>
<tr>
<td>Transport</td>
<td>
$ <input id="TransportAllocation"type="number" placeholder=6200 style ="width:93%">
</td>
<td>
<button type="button" class="add10"><i class="fa fa-plus-square" aria-hidden="true"></i></button>
</td>
<td>
<button type="button" class="decrease"><i class="fa fa-minus-square" aria-hidden="true"></i></button>
</td>
</tr>
<tr>
<td>Internet</td>
<td>
$ <input id="InternetAllocation"type="number" placeholder=5400 style ="width:93%">
</td>
<td>
<button type="button" class="add10"><i class="fa fa-plus-square" aria-hidden="true"></i></button>
</td>
<td>
<button type="button" class="decrease"><i class="fa fa-minus-square" aria-hidden="true"></i></button>
</td>
</tr>
<tr>
<td>Power</td>
<td>
$ <input id="PowerAllocation"type="number" placeholder=2550 style = "width:93%">
</td>
<td>
<button type="button" class="add10"><i class="fa fa-plus-square" aria-hidden="true"></i></button>
</td>
<td>
<button type="button" class="decrease"><i class="fa fa-minus-square" aria-hidden="true"></i></button>
</td>
</tr>
<tr>
<td>Water</td>
<td>
$ <input id="WaterAllocation" type="number" placeholder=3900 style = "width:93%">
</td>
<td>
<button type="button" class="add10"><i class="fa fa-plus-square" aria-hidden="true"></i></button>
</td>
<td>
<button type="button" class="decrease"><i class="fa fa-minus-square" aria-hidden="true"></i></button>
</td>
</tr>
<tr>
<td>Other</td>
<td>
$ <input id="OtherAllocation" type="number" placeholder=700 style = "width:93%">
</td>
<td>
<button type="button" class="add10"><i class="fa fa-plus-square" aria-hidden="true"></i></button>
</td>
<td style="width: 200px">
<button type="button" class="decrease"><i class="fa fa-minus-square" aria-hidden="true"></i></button>
</td>
</tr>
</table>
<h2>Change Allocation</h2>
<table>
<tr>
<td style="width:30%"">
Expense
<select>
<option value=" Transport">Transport</option>
<option value="Internet">Internet</option>
<option value="Power">Power</option>
<option value="Water">Transport</option>
<option value="Other">Other</option>
</select>
</td>
<td>
<select>
<option value="Add">Add</option>
<option value="Subtract">Substract</option>
</select>
</td>
<td>
$
<input type="number" style="width:85%">
</td>
<td><button type="button" class = "save" onclick = "SaveBudget()">Save</button></td>
</tr>
</table>
</body>
</html>