-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (70 loc) · 2.97 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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="icon" type="image/x-icon" href="/icon.ico"/>
<script src="https://www.gstatic.com/firebasejs/5.7.0/firebase.js"></script>
<link rel="apple-touch-icon" sizes="152x152" href="icon-152.png">
<link rel="apple-touch-icon" sizes="180x180" href="icon-180.png">
<link rel="apple-touch-icon" sizes="167x167" href="icon-167.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/min/moment.min.js"></script>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, user-scalable=no"/>
<link rel="no-on-ios" href="manifest.json"/>
</head>
<body>
<div id="container">
<ul class="nav nav-tabs" id="nav">
<li class="nav-item"><a class="nav-link" onclick="showAllBillsPage()">All Bills</a></li>
<li class="nav-item"><a class="nav-link" onclick="showUploadBillPage()">Add New Bill</a></li>
<li class="nav-item"><a class="nav-link" id="refresh-cache" onclick="getBillsAndRefresh();">Refresh</a></li>
</ul>
<div id="pages">
<div id="bill-page" style="display: none;">
<form>
<div id="key-input-div" class="form-group">
<label class="form-control">Key</label>
<input id="input-el-key" disabled="true"/>
</div>
<div class="form-group">
<label class="form-control">Name</label>
<input requred type="text" id="input-el-name" name="name"/>
</div>
<div class="form-group">
<label class="form-control">Amount</label>
<input requred type="number" id="input-el-amount" name="amount"/>
</div>
<div class="form-group">
<label class="form-control">Date</label>
<input disabled requred type="text" id='dateVisible' name='dateVisible'/>
</div>
<div class="form-group">
<label id="image-div"><img class=".img-fluid" id="image"></img></label>
<input type="file" id="input-el-image-file" accept="image/*" name="image-file" accept="image/*"/>
</div>
<div id="update-buttons" class="row justify-content-center">
<button type="button" class="btn btn-light" id="upload-button" onclick="addBillOnClick()">Upload</button>
<button type="button" class="btn btn-light" id="delete-button" onclick="deleteBillOnClick()">Delete Bill</button>
</div>
</div>
</form>
<div id="all-bills-page" style="display: none;">
<table class="table fullwidth" id="all-bills-table">
<tr id="heading-row">
<th>Name</th>
<th>Amount</th>
<th>Date</th>
</tr>
</table>
</div>
</div>
<script type="text/javascript" src="db.js"></script>
<script type="text/javascript" src="main.js"></script>
</div>
<div rv-show="loading" id="loading-overlay">
<div class="spinner-border" role-"status" id="loading-text"></div>
</div>
</body>
</html>