-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
77 lines (74 loc) · 2.98 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Fund Allocator</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<div>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Fund Allocator</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Ticker</th>
<th>Allocation %</th>
<th>PPS</th>
<th>Quantity</th>
<th>Total Equity</th>
</tr>
</thead>
<tbody id="stonks">
<tr>
<td><input id="symbol0" type="text"></td>
<td><input id="alloc0" type="text"></td>
<td id="pps0"></td>
<td id="quant0"></td>
<td id="eq0"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="container">
<div class="row">
<div class="col-md-12 offset-xl-0">
<div class="row">
<div class="col">
<h5>Available Capital: <input id="availCapital" type="text"></h5>
</div>
</div>
<div class="btn-group" role="group"><button class="btn btn-primary" type="button" onclick="addRow()">Add</button><button class="btn btn-primary" type="button" onclick="delRow()">Delete</button><button class="btn btn-primary" type="button" onclick="autoBalance()">Balance Using Given Allocations</button><button class="btn btn-primary" type="button" onclick="marketBalance()">Balance Using Market Weight</button><div id="loading" class="spinner-border" role="status" style="display:none">
<span class="sr-only">Loading...</span>
</div></div>
</div>
</div>
</div>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/etf.js"></script>
</body>
<script>
$(document).ajaxStart(function() {
$("#loading").show();
});
$(document).ajaxStop(function() {
$("#loading").hide();
});
</script>
</html>