-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTrade.html
157 lines (136 loc) · 7.02 KB
/
Trade.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<html>
<head>
<meta charset="UTF-8">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/devexpress/dx.common.css">
<link rel="stylesheet" href="css/devexpress/dx.contrast.css">
<link rel="stylesheet" href="css/bloomberg.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="js/devexpress/js/dx.web.js"></script>
<script src="js/start.js"></script>
</head>
<body>
<h1>Trade</h1>
<h3>Your Trading Limit on this Pool is £300</h3>
<div id="gridContainer">
</div>
<!-- Deal ticket Modal -->
<div class="modal fade" id="dealTicket" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 id="dealTicket_title" class="modal-title">Deal Ticket</h4>
</div>
<div class="modal-body">
<div class="ticket-panel">
<div class="ticket-field">
<input type="hidden" id="trade_epic" />
<input type="hidden" id="trade_expiry" />
<span class="ticket-field-label">Size</span> <input id="trade_size" type="text" value="1" />
</div>
<div class="ticket-field">
<span class="ticket-field-label">Currency</span>
<select id="trade_currency">
<option value="GBP">GBP</option>
<option value="EUR">EUR</option>
<option value="USD">USD</option>
</select>
</div>
</div>
</div>
<div class="modal-footer">
<input type="hidden" id="trade_direction" />
<div class="ticket-buttons">
<input type="hidden" id="trade_bid" />
<button id="sell_button" class="btn btn-large btn-success glowing-border-off" type="button">
Bid <span id="ticket_sell_price">-</span>
</button>
<input type="hidden" id="trade_offer" />
<button id="buy_button" class="btn btn-large btn-danger glowing-border-off" type="button">
Offer <span id="ticket_buy_price">-</span>
</button>
<button type="button" class="btn btn-large btn-default cancel_button" data-dismiss="modal">Cancel</button>
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Result Modal -->
<div class="modal fade" id="joinModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Order placed</h4>
</div>
<div class="modal-body">
<p id="txtResult" class="modalText"></p>
</div>
<div class="modal-footer">
<button id="btnModalTrade" type="button" class="btn btn-default" data-dismiss="modal">Ok</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Question Modal -->
<div class="modal fade" id="myModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title modalText">Market</h4>
</div>
<div class="modal-body">
<p class="modalText">The UK has left the EU. What do you think I will happen to the FTSE…</p>
</div>
<div class="modal-footer">
<div class="row">
<button type="button" class="btn btn-default btn-block" data-dismiss="modal">I don't care</button>
</div>
<div class="row">
<button id="market_up" type="button" class="btn btn-primary btn-block">It's going up</button>
</div>
<div class="row">
<button id="market_ok" type="button" class="btn btn-primary btn-block">Nothing is going to change</button>
</div>
<div class="row">
<button id="market_down" type="button" class="btn btn-primary btn-block">Definitely Down</button>
</div>
<div class="row">
<a href="Trade.html" class="btn btn-success btn-block">I want to trade this</a>
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Result Modal -->
<div class="modal fade" id="repModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Pools</h4>
</div>
<div class="modal-body">
<p id="txtRepResult" class="modalText"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Ok</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
</html>