-
Notifications
You must be signed in to change notification settings - Fork 0
/
javascript.html
382 lines (311 loc) · 24.8 KB
/
javascript.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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular-touch.min.js"></script> -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-messages.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.js"></script>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- <script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/series-label.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script> -->
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<script src='javascript.js'></script>
<script src='app.js'></script>
<link rel="stylesheet" type="text/css" href="main1.css"/>
</head>
<body>
<div class="center-block">
<div class="panel panel-default container center-block" ng-controller="DemoCtrl as ctrl" layout="column" ng-cloak="" ng-app="inputform">
<br>
<div class="page1_1_whole row valign">
<!--
<div id="page1-0" class="container col-sm-3">
<center><strong> Stock Market Search</strong></center>
</div> -->
<div id="page1-1" class="container col-sm-3" style="margin-top:60px">
Enter Stock Ticker Symbol:*
</div>
<div id="page1-2" class="col-sm-6 text-left" ng-controller="DemoCtrl as ctrl" layout="column" ng-cloak="" ng-app="inputform">
<center><strong> Stock Market Search</strong></center>
<!-- <div ><strong>Enter Stock Ticker Symbol:* </strong></div> -->
<form id="getquote" name="stockform" style="margin-top: 24px" ng-submit="$event.preventDefault()">
<md-autocomplete ng-disabled="ctrl.isDisabled" md-no-cache="" md-selected-item="ctrl.selectedItem"
md-search-text-change="ctrl.searchTextChange(ctrl.searchText)"
md-search-text="ctrl.searchText"
md-selected-item-change="ctrl.selectedItemChange(item)"
md-items="item in ctrl.querySearch(ctrl.searchText)" md-item-text="item"
md-min-length="0" placeholder="e.g. AAPL" ng-focus="ctrl.focus">
<md-item-template>
<span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item}}</span>
</md-item-template>
<md-not-found>
No symbols matching "{{ctrl.searchText}}" were found.
</md-not-found>
</md-autocomplete>
</form>
<span id="hint" class="h5">Please enter a stock ticker symbol.</span>
</div>
<div id="page1-3" class="col-sm-3" style="margin-top: 50px;">
<button id="submitButton" type="submit" class="btn btn-primary col-md-6" >
<span class="glyphicon glyphicon-search" aria-hidden="true"></span> Get Quote
</button>
<button id="clearButton" type="submit" class="btn btn-primary col-md-6">
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Clear
</button>
</div>
</div>
</div>
<div class="container"><hr style="margin-top:0; margin-top:5px; margin-left:3px; margin-right:3px"></div>
<div id="part2" class="panel panel-default carousel slide container" data-ride="carousel" data-interval="false">
<div class="carousel-inner container" style="margin-left:0px; margin-right:0px; padding-left:0px; padding-right:0px">
<div id="page_one" class="item active" >
<div class="panel panel-default" style="margin-top:10px; margin-left:0px;margin-right:0px;margin-bottom:10px">
<div class="panel-heading" style="overflow:auto">
<div class="Favoriate_List">
<strong>Favorite List</strong>
</div>
<div class="toggle_part">
<input checked data-toggle="toggle" type="checkbox">
<button id="refresh" type="button" class="btn btn-default">
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default btn-lg" id="myBtn2" disabled="true">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true" ></span>
</button>
</div>
</div>
<div class="panel-body">
<!-- <div class="dropdownpart"> -->
<div class="container-fluid">
<div class="col-md-6" style="display: inline-block">
<div class="" style="width: 90px; margin-bottom: 10px; display: inline-block"><strong>Sort by</strong><br></div>
<div class="" style="display: inline-block;">
<ul class="nav navbar-nav" style="height: 31px" >
<li class="dropdown">
<a id='showitem' href="#" class="dropdown-toggle" data-toggle="dropdown">
Default
<b class="caret"></b>
</a>
<ul class="dropdown-menu" id="select-method">
<li><a href="#" onclick='sort6()'>Default</a></li>
<li><a href="#" onclick='sort1()'>Symbol</a></li>
<li><a href="#" onclick='sort2()'>Price</a></li>
<li><a href="#" onclick='sort3()'>Change</a></li>
<li><a href="#" onclick='sort4()'>Change Percent</a></li>
<li><a href="#" onclick='sort5()'>Volume</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="col-md-6" style="display: inline-block;">
<span class="" style="width: 90px; display: inline-block;"><strong>Order</strong></span>
<span class="" style="display: inline-block; margin-top: 10px;">
<ul class="nav navbar-nav" style="height: 31px">
<li class="dropdown">
<a id='showitem1' href="#" class="dropdown-toggle" data-toggle="dropdown">
Ascending<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#" onclick='changeordervalue("Ascending") '>Ascending</a></li>
<li><a href="#" onclick='changeordervalue("Descending")'>Descending</a></li>
</ul>
</li>
</ul>
</span>
</div>
</div>
<!-- </div> -->
<div class="container-fluid">
<div class="table1 table-responsive" style="margin-top: 50px;">
<table id="fav_table" class="table table-striped" >
<tr>
<th>Symbol</th>
<th>Stock Price</th>
<th>Change (Change Percent)</th>
<th>Volume</th>
<th>Cancel</th>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="page_two" class="item center-block container" >
<div class="panel panel-default" style="margin-top:10px; margin-left:0px;margin-right:0px;margin-bottom:10px">
<div class="panel-heading">
<span><center><strong>Stock Details</strong></center></span>
<!-- <div class="page_2_left_button"> -->
<button id="myBtn" type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
</button>
<!-- </div> -->
</div>
<div class="panel-body">
<div class="page2-1">
<ul class="nav nav-pills">
<li class="active"><a href="#page2_below_main" data-toggle="tab"><span class="glyphicon glyphicon-ban-circle" aria-hidden="true"></span> Current Stock</a></li>
<li><a href="#page2_below_hist" data-toggle="tab"><span class="glyphicon glyphicon-stats" aria-hidden="true"></span> Historical Charts</a></li>
<li><a href="#page2_below_news" data-toggle="tab"><span class="glyphicon glyphicon-paperclip" aria-hidden="true"></span> News Feeds</a></li>
</ul>
</div>
<hr style=" margin-top:5px; margin-left:3px; margin-right:3px">
<div id="page2_below" class="tab-content">
<div class="tab-pane fade in active" id="page2_below_main">
<div id="page2_table" class="container col-sm-6">
<div style="float:left"><strong>Stock Details</strong></div>
<div id="page2_table_favoritefb" style="float:right">
<button type="button" class="btn btn-default" id="bt_fav">
<img src="/img/star_empty.png" height="33" width="33">
</button>
<button type="button" class="btn btn-default" id="bt_fb">
<img src="/img/facebook.png" height="33" width="33">
</button>
</div>
<div id="table_part">
<!-- <table class='table table-striped' id='detail_table'>
<tr>
<th>Stock Ticker Symbol</th>
<td id='tda'></td>
</tr>
<tr>
<th>Last Price</th>
<td id='tdb'></td>
</tr>
<tr>
<th>Change(Change Percent)</th>
<td id='tdc'></td>
</tr>
<tr>
<th>Timestamp</th>
<td id='tdd'></td>
</tr>
<tr>
<th>Open</th>
<td id="tde"></td>
</tr>
<tr>
<th>Close</th>
<td id='tdf'></td>
</tr>
<tr>
<th>Day's Range</th>
<td id='tdg'></td>
</tr>
<tr>
<th>Volume</th>
<td id='tdh'></td>
</tr>
</table> -->
</div>
</div>
<div id="page2_chart" class="container col-sm-6">
<ul id="myTab" class="nav nav-tabs">
<li id="myTab1" class="active"><a href="#price" data-toggle="tab">Price</a></li>
<li id="myTab2"><a href="#sma" data-toggle="tab">SMA</a></li>
<li id="myTab3"><a href="#ema" data-toggle="tab">EMA</a></li>
<li id="myTab4"><a href="#stoch" data-toggle="tab">STOCH</a></li>
<li id="myTab5"><a href="#rsi" data-toggle="tab">RSI</a></li>
<li id="myTab6"><a href="#adx" data-toggle="tab">ADX</a></li>
<li id="myTab7"><a href="#cci" data-toggle="tab">CCI</a></li>
<li id="myTab8"><a href="#bbands" data-toggle="tab">BBANDS</a></li>
<li id="myTab9"><a href="#macd" data-toggle="tab">MACD</a></li>
</ul>
<div id="myTabContent" class="tab-content" >
<div class="tab-pane fade in active" id="price">
</div>
<div class="tab-pane fade" id="sma">
</div>
<div class="tab-pane fade" id="ema">
</div>
<div class="tab-pane fade" id="stoch">
</div>
<div class="tab-pane fade" id="rsi">
</div>
<div class="tab-pane fade" id="adx">
</div>
<div class="tab-pane fade" id="cci">
</div>
<div class="tab-pane fade" id="bbands">
</div>
<div class="tab-pane fade" id="macd">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="page2_below_hist"></div>
<div class="tab-pane fade" id="page2_below_news">
<div class="panel panel-default" id="new01" style="background-color:rgb(233, 206, 206);">
<div class="panel panel-default" id="new0" style="background-color:rgb(233, 206, 206); border:0; margin-left:12px; margin-top:15px;">
</div>
</div>
<div class="panel panel-default" id="new11" style="background-color:rgb(233, 206, 206);">
<div class="panel panel-default" id="new1" style="background-color:rgb(233, 206, 206); border:0; margin-left:12px; margin-top:15px;">
</div>
</div>
<div class="panel panel-default" id="new21" style="background-color:rgb(233, 206, 206);">
<div class="panel panel-default" id="new2" style="background-color:rgb(233, 206, 206); border:0; margin-left:12px; margin-top:15px;">
</div>
</div>
<div class="panel panel-default" id="new31" style="background-color:rgb(233, 206, 206);">
<div class="panel panel-default" id="new3" style="background-color:rgb(233, 206, 206); border:0; margin-left:12px; margin-top:15px;">
</div>
</div>
<div class="panel panel-default" id="new41" style="background-color:rgb(233, 206, 206);">
<div class="panel panel-default" id="new4" style="background-color:rgb(233, 206, 206); border:0; margin-left:12px; margin-top:15px;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '151701188685023',
autoLogAppEvents : true,
xfbml : true,
version : 'v2.11'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script>
if(document.getElementById("price").innerText!=""){
var content = document.getElementById("price").innerHTML;
console.log("CONTENT IS: "+content);
}
</script>
</body>
</html>