-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (76 loc) · 3.05 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Luno Order Book</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" type="image/png" href="favicon.png"/>
<link rel="stylesheet" href=styles/styles.css>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<div class="content" id="app">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-2 col-xs-0">
<!-- empty for display pursposed -->
</div>
<div class="col-md-6 col-sm-8 col-xs-12">
<div class="page-header">
<h1 class="text-center">Luno Order Book</h1>
</div>
<div class="alert alert-warning text-center" role="alert" v-if="error_message.length > 0">
{{error_message}}
</div>
</div>
<div class="col-md-3 col-sm-2 col-xs-0">
<!-- empty for display pursposed -->
</div>
</div>
<div class="row">
<div class="main-column" v-if="asks.length > 0">
<table>
<tr>
<th class="text-left">
<small>Price</small>
</th>
<th class="text-right">
<small>Volume</small>
</th>
</tr>
</table>
<div ref="askstable" class="order-table pre-scrollable">
<table class="table-striped">
<tr v-for="item in asksToRender" v-bind:class="[item.isLatest ? latestClass : '']">
<td>
<small>{{item.price}}</small>
</td>
<td class="text-right">
<small>{{item.volume.toFixed(6)}}</small>
</td>
</tr>
</table>
</div>
<div class="row text-center spread">
<small>{{spread}} Spread</small>
</div>
<div class="order-table pre-scrollable ">
<table class="table-striped">
<tr v-for="item in bidsToRender" v-bind:class="[item.isLatest ? latestClass : '']">
<td>
<small>{{item.price}}</small>
</td>
<td class="text-right">
<small>{{item.volume.toFixed(6)}}</small>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>