-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (101 loc) · 2 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
<!DOCTYPE html>
<html>
<head>
<script src="main.js?v=200117"></script>
<title>EUR/BTC/KRW arbitrage</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: sans-serif;
padding: 0;
margin: 20px;
text-align: center;
background-color: #222;
color: #f7f7f7;
}
a:link, a:visited {
color: rgb(0, 255, 255);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
#content {
margin: 0 auto;
display: flex;
}
#content > div {
margin: 0 .5em;
flex: 1;
}
.block {
border: 1px solid #333;
padding: 1em;
background-color: #f0f0f0;
margin-bottom: .5em;
line-height: 1;
}
.block.result {
background-color: #e8fbdd;
}
.label {
display: block;
font-weight: bold;
font-size: .9em;
margin-bottom: .5em;
}
.value {
font-size: 1.4em;
}
.coinmatrix {
width: 100%;
border-collapse: collapse;
}
.coinmatrix td,
.coinmatrix th {
width: 10em;
padding: 1em .5em;
border: 1px solid #000;
}
.coinmatrix .source {
font-size: .8em;
color: #777;
}
.coinmatrix th {
font-weight: bold;
line-height: 3em;
}
.coinmatrix td {
vertical-align: top;
}
.coinmatrix .compare {
font-size: .8em;
}
.coinmatrix .reference {
background-color: rgba(0, 255, 0, 0.1);
}
.coinmatrix thead th {
cursor: pointer;
}
.change {
color: rgb(150, 150, 150);
}
.change.positive {
color: rgb(50, 255, 0);
}
.change.negative {
color: rgb(255, 20, 20);
}
</style>
</head>
<body>
<div id="content">
Fetching data (only works in recent browsers)...
</div>
<p>Click on a column to change the reference for comparisons.</p>
<p>Crypto prices are nearly real-time, fiat prices are updated daily.</p>
<p>Page reloads every 30 seconds</p>
<p>Crypto data: <a href="http://cryptocompare.com">cryptocompare.com</a><br>EUR/KRW: <a href="http://fixer.io">fixer.io</a></p>
<p>Developed by <a href="http://graycoding.com">Paul Grau</a></p>
</body>
</html>