-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsslon.html
93 lines (88 loc) · 3.03 KB
/
sslon.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
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sslon</title>
</head>
<body>
<h5>{{>codename}}</h5>
<div class="container">
<div class="row-fluid">
<div class="span6 orders">
{{> orders}}
</div>
<div class="span6 matches">
{{> matches}}
</div>
</div>
<h3>Live Orderbook</h3>
<div class="row-fluid orderbook">
{{> book}}
</div>
</div>
</body>
<template name="codename">
<div class="codename">Your callsign is: "{{genUser}}"</div>
</template>
<template name="orders">
<div class="btn-group" data-toggle="buttons-radio" id="my-toggle">
<button class="btn buy-toggle active" id="buyButton" >Buy</button>
<button class="btn sell-toggle" id="sellButton">Sell</button>
</div>
{{#isolate}}
<form class="form-horizontal">
<br>
<div class="control-group">
<label class="control-label"for="orderSize">mBTC</label>
<div class="controls">
<input class="input-reactive" type="number" id="orderSize" placeholder="1000 mBTC = 1 BTC"/>
</div>
</div>
<label class="control-label"for="orderPrice">Price</label>
<div class="controls">
<input class="input-reactive" type="number" id="orderPrice" placeholder="$/BTC"/>
</div>
</div>
<div class="control-group">
<label class="control-label"for="orderSubmit">Sub-Total: ${{getSubTotal}}</label>
<div class="controls">
<input type="button" class="btn" id="orderSubmit" value="Submit"/>
</div>
</div>
</form>
{{/isolate}}
</template>
<template name="book">
<div class="span6">
<h4>Bids</h4>
<table class="table table-bordered">
<tr><th>Size (mBTC)</th><th>Price ($/BTC)</th></tr>
{{#each getBids}}
<tr><td>{{size}}</td><td>{{toDec price}} {{#if isMine}}
<span class="label delete-button" style="float:right">delete</span>
{{/if}}</td></tr>
{{/each}}
</table>
</div>
<div class="span6">
<h4>Asks</h4>
<table class="table table-bordered">
<tr><th>Size (mBTC)</th><th>Price ($/BTC)</th></tr>
{{#each getAsks}}
<tr><td>{{size}}</td><td>{{toDec price}} {{#if isMine}}
<span class="label delete-button" style="float:right">delete</span>
{{/if}}</td></tr>
{{/each}}
</table>
</div>
</template>
<template name="matches">
<h4>Your Matched Trades</h4>
<table class="table table-bordered">
<tr><th>Size<br><span style="font-size: 75%">(mBTC)</span></th><th>Price<br><span style="font-size: 75%">($/BTC)</span></th><th>Total</th><th>Opponent</th></tr>
{{#each getMyMatches}}
<tr><td>{{size}}</td><td>{{price}}</td><td>${{subTotal this}}</td><td>{{opponent}} <span class="label dismiss-button" style="float:right">done</span></td></tr>
{{/each}}
{{#each getMatches}}
<tr><td>{{size}}</td><td>{{price}}</td><td>${{subTotal this}}</td><td>{{owner}} <span class="label dismiss-button" style="float:right">done</span></td></tr>
{{/each}}
</table>
</template>