-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
executable file
·121 lines (111 loc) · 2.45 KB
/
popup.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
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>crypto compare's Popup</title>
<style type="text/css">
/* ====== Reset ===== */
p {
margin: 0;
}
input {
padding: 5px;
}
/* ====== End Reset ===== */
body {
width: 500px;
margin: 10px;
white-space: nowrap;
box-sizing: border-box;
}
h1 {
font-size: 15px;
}
.subtle-hr {
opacity: 0.5;
}
#container {
display: flex;
flex-direction: column;
justify-content: space-between;
}
#container > section {
display: flex;
flex-direction: row;
align-items: center;
margin: 10px;
}
.results {
margin-left: 20px;
}
.results > div {
display: flex;
flex-direction: row;
padding: 5px 10px;
}
.results > div > p {
margin-right: 10px;
}
</style>
<script src="popup.js"></script>
</head>
<body>
<h1>Crypto Trading Tool</h1>
<div id="container">
<section id="buyStuff">
<div>
<input id="buyInput" type="number" placeholder="Buy Price">
</div>
<div id="breakevens" class="results">
<div>
<p>Maker Breakeven</p>
<span id="makeeven">0</span>
</div>
<hr class="subtle-hr">
<div>
<p>Taker Breakeven</p>
<span id="takeeven">0</span>
</div>
</div>
</section>
<br>
<section id="sellStuff">
<div>
<input id="sellInput" type="number" placeholder="Sell Price">
</div>
<div id="profits" class="results">
<div>
<p>Maker Profit</p>
<span id="makeprofit">0</span>
</div>
<hr class="subtle-hr">
<div>
<p>Taker Profit</p>
<span id="takeprofit">0</span>
</div>
</div>
</section>
<br>
<section id="totals">
<div>
<input id="currentBalance" type="number" placeholder="Current Balance">
</div>
<div id="totalsResults" class="results">
<div>
<p>Total Profit</p>
<span id="totalprofit">0</span>
</div>
<hr class="subtle-hr">
<div>
<p>% Profit</p>
<span id="percentprofit">0</span>%
</div>
</div>
</section>
</div>
</body>
</html>