-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
207 lines (179 loc) · 9.45 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!doctype html>
<html class="unsupported">
<head>
<title class="translate">Finances</title>
<link rel="stylesheet" href="css/layout.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="apps/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="apps/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="194x194" href="apps/favicon-194x194.png">
<link rel="icon" type="image/png" sizes="192x192" href="apps/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="apps/favicon-16x16.png">
<link rel="manifest" href="apps/manifest.json">
<link rel="mask-icon" href="apps/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="apps/favicon.ico">
<meta name="apple-mobile-web-app-title" content="Finances">
<meta name="application-name" content="Finances">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="msapplication-TileImage" content="apps/mstile-144x144.png">
<meta name="msapplication-config" content="apps/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<script>
if (localStorage !== undefined && localStorage.financeActiveTab !== undefined) {
document.documentElement.classList.remove('unsupported');
}
</script>
</head>
<body>
<aside role="region">
<div>
<h1 class="translate">Finances</h1>
<label for="month" class="translate">Month</label>
<input type="month" id="month"><button id="now">🕒</button><br>
<label for="expected" class="translate">Expected</label>
<input type="text" id="expected" readonly><br>
<label for="paid" class="translate">Paid</label>
<input type="text" id="paid" readonly><br>
<label for="remaining" class="translate">Remaining</label>
<input type="text" id="remaining" readonly>
</div>
</aside>
<nav id="tab-picker" role="tablist">
<a href="#tab-pending" class="translate active" role="tab">Pending Bills</a>
<a href="#tab-income" class="translate" role="tab">Planned Income</a>
<a href="#tab-paid" class="translate" role="tab">Paid Bills</a>
<a href="#tab-graphs" class="translate" role="tab" disabled>Statistics</a>
<a href="#tab-settings" class="translate" role="tab">Settings</a>
</nav>
<main>
<section id="tab-pending" role="tabpanel" class="loading">
<h2 class="translate">Pending Bills</h2>
<p class="controls">
<select class="benefactor-selector" hidden></select>
<button class="schedule bill" class="translate">Schedule Bill</button>
<button class="unexpected bill" class="translate">Unexpected Bill</button>
</p>
<table>
<thead>
<tr>
<th class="translate">Name</th>
<th class="translate">Remaining Budget</th>
<td>
</td>
</tr>
</thead>
<tbody id="pending-bills">
</tbody>
</table>
</section>
<section id="tab-income" role="tabpanel" class="loading" hidden>
<h2 class="translate">Planned Income</h2>
<p class="controls">
<select class="benefactor-selector" hidden></select>
<button class="schedule income" class="translate">Schedule Income</button>
<button class="unexpected income" class="translate">Unexpected Income</button>
</p>
<table>
<thead>
<tr>
<th class="translate">Name</th>
<th class="translate">Expected</th>
<th class="translate">Received</th>
<td>
</td>
</tr>
</thead>
<tbody id="income">
</tbody>
</table>
</section>
<section id="tab-paid" role="tabpanel" class="loading" hidden>
<h2 class="translate">Paid Bills</h2>
<p class="controls">
<select class="benefactor-selector" hidden></select>
</p>
<table>
<thead>
<tr>
<th class="translate">Name</th>
<th class="translate">Expected Cost</th>
<th class="translate">Actual Cost</th>
<th></th>
</tr>
</thead>
<tbody id="paid-bills">
</tbody>
</table>
</section>
<section id="tab-graphs" role="tabpanel" class="loading" hidden>
<h2 class="translate">Statistics</h2>
<div class="input-group">
<label for="graph-start" class="translate">Start Range</label>
<input id="graph-start" type="month">
</div>
<div class="input-group">
<label for="graph-end" class="translate">End Range</label>
<input id="graph-end" type="month">
</div>
<div class="input-group">
<label for="graph-scheduled" class="translate">Scheduled Only</label>
<input id="graph-scheduled" type="checkbox" checked>
</div>
<div class="input-group">
<label for="graph-summarize" class="translate">Summarise Small</label>
<input id="graph-summarize" type="checkbox" checked>
</div>
<h3 class="translate">Expenses by Category</h3>
<canvas id="graph-expenses-per-category" width="792" height="528"></canvas>
<h3 id="title-expenses-per-month" class="translate" hidden>Expenses by Month</h3>
<canvas id="graph-expenses-per-month" width="792" height="528" hidden></canvas>
</section>
<section id="tab-settings" role="tabpanel" hidden>
<h2 class="translate">Settings</h2>
<div class="input-group">
<label for="locale" class="translate">Language:</label>
<select id="locale"></select>
</div>
<div class="input-group">
<label for="currency" class="translate">Currency:</label>
<select id="currency"></select>
</div>
<div class="input-group">
<label for="excessive" class="translate">Excess Payment Margin:</label>
<input id="excessive" type="number" step="1" min="0">
<span class="after">%</span>
</div>
<hr>
<h2 class="translate">Backups</h2>
<p class="translate">All backups are encrypted with 256 bit AES-GCM encryption. You must provide a minimum 6 character password.</p>
<p class="translate">Please keep your backup passwords safe, they are not stored anywhere and your backup is useless without it.</p>
<p class="controls">
<button id="export" class="translate">Create Backup</button>
<button id="import" class="translate">Restore Backup</button>
</p>
<input type="file" id="backup" accept=".money" hidden>
</section>
</main>
<section id="unsupportedBrowser">
<h1>Unsupported Browser</h1>
Unfortunately it appears that your browser is not supported.<br>
Please use a modern browser such as
<a href="https://www.google.com/chrome/" rel="nofollow">Google Chrome</a>,
<a href="https://www.microsoft.com/microsoft-edge" rel="nofollow">Microsoft Edge</a> or
<a href="https://www.mozilla.org/firefox" rel="nofollow">Mozilla Firefox</a>.
</section>
<footer>
<hr>
<small>© 2018 Kristian Williams</small>
<br class="mobile">
<span class="desktop"> - </span>
<a href="https://github.com/kwilliams1987/account-manager" class="social-icon github">Github</a>
-
<a href="https://paypal.me/kristian1987" class="social-icon paypal">Donate</a>
-
<small><a rel="license" href="https://raw.githubusercontent.com/kwilliams1987/account-manager/master/LICENSE">License</a></small>
</footer>
<script defer type="module" src="js/utils/extensions.js"></script>
<script defer type="module" src="js/ui.js"></script>
</body>
</html>