-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
73 lines (67 loc) · 1.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fee Graph</title>
<style>
html {
font-family: -apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
}
td.left {
vertical-align: top;
}
div.left > div {
margin-top: 5px;
display: grid;
grid-template-columns: 100px 150px;
}
.right {
width: 500px;
height: 300px;
}
</style>
</head>
<body>
<div>
<canvas style="max-width: 90%; max-height: 500px;" id="target"></canvas>
</div>
<table style="padding: 5px;">
<tbody>
<tr>
<td class="left">
<div class="left">
<div>
<label for="buyer_price">Buyer Price:</label>
<input id="buyer_price" type="number" onkeyup="script.update('buyer');" />
</div>
<div>
<label for="seller_gain">Seller Gain:</label>
<input id="seller_gain" type="number" onkeyup="script.update('seller');" />
</div>
<div>
<label for="fees">Fees:</label>
<span id="fees"></span>
</div>
</div>
</td>
<td>
<div class="right">
<canvas id="visualizer"></canvas>
</div>
</td>
</tr>
</tbody>
</table>
<script src="out/build.js"></script>
</body>
</html>