-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
211 lines (202 loc) · 7.51 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TKRSEARCH</title>
<!-- link includes for MDB 4.19.1 -->
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- Bootstrap core CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css" rel="stylesheet">
<!-- Tabulator -->
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
<!-- our stylesheet -->
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<!-- navbar -->
<nav class="navbar fixed-top">
<a class="navbar-brand" href="#"><sup>tkr</sup><u>S</u>earch</a>
</nav>
<!-- main container -->
<div class="container">
<!-- Search Form -->
<form class="form-inline">
<!-- Ticker Input -->
<div class="md-form">
<input id="searchInput" class="form-control text-center" type="search"
placeholder="Stock or Crypto Ticker" aria-label="Search">
</div>
<!-- Radio button 1 for stocks-->
<div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input" id="defaultInline1" name="inlineDefaultRadiosExample" checked>
<label class="custom-control-label" for="defaultInline1">Stock</label>
</div>
<!-- Radio button 2 for crypto-->
<div class="custom-control custom-radio custom-control-inline">
<input type="radio" class="custom-control-input" id="defaultInline2" name="inlineDefaultRadiosExample">
<label class="custom-control-label" for="defaultInline2">Crypto</label>
</div>
<button id="searchBtn" class="btn btn-sm mb-20" type="submit">Search</button>
<!-- form end -->
</form>
<!-- Main Panels -->
<!-- Left Panel -->
<div class="row">
<div class="col-md-6">
<div class="panelLeft">
<div class="text-center align-items-center">
<div>
<h4>
<strong>Top Active Stocks</strong>
</h4>
<!-- Left Panel Table -->
<div>
<table class="table table-sm table-striped" id="stockTable">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
<th scope="col">Symbol</th>
<th scope="col" class="text-right">Price $</th>
</tr>
</thead>
<tbody id="stockList">
<!-- Sample data. Actual data fetched using api
<tr>
<td>1</td>
<td>Apple</td>
<td>APPL</td>
<td>$ 500</td>
</tr> -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Right Panel -->
<div class="col-md-6">
<div class="panelRight">
<!-- Content -->
<div class="text-center align-items-center">
<div>
<h4>
<strong>Top Crypto by Volume</strong>
</h4>
<!-- Right panel table -->
<div>
<table class="table table-sm table-striped" id="cryptoTable">
<thead>
<tr>
<th>Rank</th>
<th>Name</th>
<th>Symbol</th>
<th class="text-right">Price $</th>
</tr>
</thead>
<tbody id="cryptoList">
<!-- Sample data. Actual data fetched using api
<tr>
<td>1</td>
<td>Apple</td>
<td>APPL</td>
<td>$ 500</td> -->
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End main panels -->
<!-- Results Containers -->
<!-- Stocks Results -->
<div class="resultContainer">
<div class="card" id="stockResults">
<div class="card-header align-text-top text-center" id="stockNameInfo">
<span id="stockName"></span>(<span id="stockTicker"></span>)
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">
<span>Stock Price: </span>
<span id="stockPrice"></span>
</li>
<li class="list-group-item">
<span>Previous Close: </span>
<span id="stockOpen"></span>
</li>
<li class="list-group-item">
<span>52 Week High: </span>
<span id="stockHigh"></span>
</li>
<li class="list-group-item">
<span>52 Week Low: </span>
<span id="stockLow"></span>
</li>
<li class="list-group-item">
<span>Profile: </span>
<span id="stockProfile"></span>
</li>
</ul>
</div>
</div>
<!-- Crypto Results -->
<div class="resultContainer">
<div class="card" id="cryptoResults">
<div class="card-header align-text-top text-center" id="cryptoNameInfo">
<span id="cryptoName"></span>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">
<span>Crypto Price: </span>
<span id="cryptoPrice"></span>
</li>
<li class="list-group-item">
<span>Crypto Open: </span>
<span id="cryptoOpen"></span>
</li>
<li class="list-group-item">
<span>Crypto High: </span>
<span id="cryptoHigh"></span>
</li>
<li class="list-group-item">
<span>Crypto Low: </span>
<span id="cryptoLow"></span>
</li>
</ul>
</div>
</div>
</div>
<!-- Footer -->
<footer id="footer">
GitHub Project Details <a href="https://github.com/bhagatabhijeet/tkrsearch" target="_blank"><i
class="fab fa-github"></i></a>
</footer>
<!-- script includes for MDB 4.19.1 -->
<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>
<!-- Tabulator Script -->
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
<!-- Moment JS -->
<script src="./scripts/moment.js"></script>
<!-- Main Script -->
<script type="module" src="./script.js"></script>
</body>
</html>