-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
108 lines (99 loc) · 3.91 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
<html>
<head>
<meta charset="utf-8" />
<title>Tallycoin Connect</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" href="assets/favicon.png">
<link href="assets/connect.css" rel="stylesheet">
<script src="assets/connect.js"></script>
<script>
// Load components when ready
let preloaded_assets = 0
let setup_timer = setInterval(() => {
if (typeof connect === "function") {
connect = new connect()
preloaded_assets++
}
if (preloaded_assets == 1 && document.readyState === 'complete') {
clearInterval(setup_timer)
connect.init()
}
}, 50)
</script>
</head>
<body>
<div class="topshelf">
<div class="maxwidth">
<div class="logo"><img src="assets/tallycoin-connect.png"></div>
<div class="floatright">
<div class="navitem" onclick="connect.open_page('transactions')">Transactions</div>
<div class="navitem" onclick="connect.open_page('setup')"><span id="sync">●</span> Setup</div>
</div>
<div style="clear:both"></div>
</div>
</div>
<div id="setup">
<div class="smtext" id="error">
<p>There was a problem during setup:</p>
<p id="errorDetails">There was a problem during setup:</p>
<p>
Make sure Tallycoin Connect has been installed correctly.
<a href="https://github.com/djbooth007/tallycoin_connect" target="_github">[See instructions]</a>
</p>
</div>
<div id="settings">
<div class="text">Your API Key</div>
<input type="text" id="api_key" onkeyup="connect.check_enter(event, 'api')">
<div id="save_api_key" class="btn" onclick="connect.submit_api()">Save API</div>
<div class="saved" id="saved_api">✔ DONE</div>
<div class="text smtext">
Don't have your Tallycoin API key?<br />
<a href="https://tallycoin.app/" target="_tallycoin">Login</a> and go to Settings - My Wallets - Tallycoin Connect
</div>
<hr>
<div class="text">Restrict Access</div>
<input type="password" id="passwd" onkeyup="connect.check_enter(event, 'passwd')">
<div id="save_passwd" class="btn" onclick="connect.submit_passwd()">Save Password</div>
<div class="saved" id="saved_passwd">✔ DONE</div>
<div class="text smtext">Prevent unwanted visitors from accessing this page by setting a password.</div>
</div>
</div>
<div id="transactions">
<div style="text-align:center;">
<div class="paid_sats"><span id="paid_sats_total"></span> sats</div>
<label class="radiolabel">All
<input value="all" type="radio" name="inv_status" id="inv_status_all" onclick="connect.change_status('all')">
<span class="radiobtn"></span>
</label>
<label class="radiolabel">Paid
<input value="paid" type="radio" id="inv_status_paid" name="inv_status"
onclick="connect.change_status('paid')">
<span class="radiobtn"></span>
</label>
<label class="radiolabel">Not Paid
<input value="unpaid" type="radio" id="inv_status_unpaid" name="inv_status"
onclick="connect.change_status('unpaid')">
<span class="radiobtn"></span>
</label>
</div>
<div id="invoices">
<table>
<thead>
<tr>
<th class="column1"> </th>
<th class="column2">Date</th>
<th class="column3">Sats</th>
<th class="column4">Message</th>
</tr>
</thead>
<tbody id="invoice_list"></tbody>
</table>
</div>
<div id="tx_count">Showing most recent <span id="inv_count"></span> transactions.</div>
</div>
<audio id="sfx">
<source src="assets/incoming_tx.ogg" type="audio/ogg">
<source src="assets/incoming_tx.mp3" type="audio/mpeg">
</audio>
</body>
</html>