-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbroker.html
232 lines (227 loc) · 9.98 KB
/
broker.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!doctype html5>
<html lang="en">
<head>
<title>Gimme Money</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Fonts and icons -->
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<!-- Material Kit CSS -->
<link href="assets/css/material-dashboard.css?v=2.1.0" rel="stylesheet" />
<!-- Specifics -->
<script src="./assets/js/broker.js"></script>
<script src="./assets/js/mainlogic.js"></script>
</head>
<body class="dark-edition">
<div class="wrapper ">
<div class="sidebar" data-color="danger" data-background-color="black" data-image="./assets/img/sidebar-4.jpg">
<div class="logo">
<a href="https://github.com/hYg-Cain" class="simple-text logo-normal">
Stock market Simulator
</a>
</div>
<div class="sidebar-wrapper">
<ul class="nav">
<li class="nav-item active">
<a class="nav-link" href="./broker.html">
<i class="material-icons">dashboard</i>
<p>Broker</p>
</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="./profile.html">
<i class="material-icons">person</i>
<p>Profile</p>
</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="./howto.html">
<i class="material-icons">help</i>
<p>HowTo</p>
</a>
</li>
<li class="nav-item ">
<a id="restart" class="nav-link" href="./broker.html">
<i class="material-icons">restart_alt</i>
<p>Restart</p>
</a>
</li>
<li class="nav-item ">
<a id="endgame" class="nav-link" href="./gameend.html">
<i class="material-icons">cancel</i>
<p>End game</p>
</a>
</li>
<li class="nav-item ">
<a id="logout" class="nav-link" href="./index.html">
<i class="material-icons">logout</i>
<p>Logout</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top ">
<div class="container-fluid">
<div class="navbar-wrapper">
<a class="navbar-brand" href="javascript:void(0)">Online Broker</a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span class="sr-only">Toggle navigation</span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
</button>
<div class="collapse navbar-collapse justify-content-end">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link" href="javscript:void(0);" onclick="RemoveNotificationCount();" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">notifications</i>
<span id="notificationCounter" ></span>
<p class="d-lg-none d-md-block">
Some Actions
</p>
</a>
<div id="notificationDropDown" class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
</div>
</li>
<!-- your navbar here -->
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="content">
<div class="container-fluid">
<!-- your content here -->
<!-- display the 3 stocks -->
<div class="row">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">account_balance</i>
</div>
<p class="card-category">Cash Balance</p>
<h3 id="balanceDisplay" class="card-title">49/50
<small>€</small>
</h3>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="material-icons">inventory</i>
</div>
<p class="card-category"></p>
<p class="card-category">Holding</p>
<h3 id="holdingdisplay" class="card-title">$34,245
<small>€</small>
</h3>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div id="profitCard" class="card-header card-header-success card-header-icon">
<div class="card-icon">
<i id="profitCardSymbol" class="material-icons">trending_up</i>
</div>
<p class="card-category"></p>
<p class="card-category">Profit <small>based on 50k</small></p>
<h3 id="profitDisplay" class="card-title">72
<small>%</small>
</h3>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-12 col-lg-24">
<div class="card card-chart">
<div class="card-header card-header-success">
<div class="ct-chart" id="dogeCoinChart"></div>
</div>
<div class="card-body">
<h4 id="dogeTitle" class="card-title">Dogecoin</h4>
<p class="card-category">
<span id="dogeSuc" class="text-success"><i class="fa fa-long-arrow-up"></i> % </span> since start </p>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">access_time</i><var id="gameclockID"> updates every second</var><var> s left</var>
</div>
</div>
</div>
</div>
<div style="padding-left: 15px;">
<input id="dogeAmount" class="form-control" type="text" placeholder="amount...">
<button id="buyDoge" type="submit" class="btn btn-default">Buy</button>
<button id="sellDoge" type="submit" class="btn btn-default">Sell</button>
</div>
<!-- only if I have too much time on my hands
<div class="col-xl-4 col-lg-24">
<div class="card card-chart">
<div class="card-header card-header-success">
<div class="ct-chart" id="TeslaChart"></div>
</div>
<div class="card-body">
<h4 class="card-title">TSLA</h4>
<p class="card-category">
<span id="TSLAsuc" class="text-success"><i class="fa fa-long-arrow-side"></i> % </span> since start.</p>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">access_time</i> updates every 5 seconds
</div>
</div>
</div>
</div>
-->
</div>
<div id="alertbar"><!--
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div> -->
</div>
</div>
</div>
<footer class="footer">
<div class="copyright float-right">
©
<script>
document.write(new Date().getFullYear())
</script>, adapted with <i class="material-icons">favorite</i> by
<a href="https://github.com/hYg-Cain" target="_blank">Timo Heyenga</a> for a better grade.
</div>
<!-- your footer here -->
</div>
</footer>
</div>
</div>
<!-- Core JS Files -->
<script src="./assets/js/core/jquery.min.js"></script>
<script src="./assets/js/core/popper.min.js"></script>
<script src="./assets/js/core/bootstrap-material-design.min.js"></script>
<script src="https://unpkg.com/default-passive-events"></script>
<script src="./assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- Chartist JS -->
<script src="./assets/js/plugins/chartist.min.js"></script>
<!-- Notifications Plugin -->
<script src="./assets/js/plugins/bootstrap-notify.js"></script>
<!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->
<script src="./assets/js/material-dashboard.js?v=2.1.0"></script>
</body>
</html>