-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
209 lines (180 loc) · 10.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- IE Edge Meta Tag -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="styles.css">
<title>Stock Search</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.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="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js" type="text/javascript"></script>
<script src="stock.js"></script>
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '347797988677374',
xfbml : true,
version : 'v2.5'
});
};
(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 = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script>
$(document).ready(function() {
$("#fbShareButton").click(function(e){
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'Current Stock Price of ' companyData.Name " is " companyData.LastPrice,
link: 'http://www.kickstarter.com',
picture: "http://chart.finance.yahoo.com/t?s=" companyData.Symbol "&lang=en-US&width=400&height=300",
caption: "LAST TRADE PRICE:" companyData.LastPrice ", CHANGE:" companyData.Change "(" companyData.ChangePercent "%)",
description: 'Stock Information of ' companyData.Name " (" companyData.Symbol ")",
message: ''
},
function(response){
if (response && response.post_id) {
//alert('Post was published.');
alert('Posted Successfully');
//window.location.href = "http://redirect-user-here.com";
} else {
alert("Not Posted");
}
});
});
});
</script>
<!-- search form on the web page-->
<div class="container">
<div class="col-sm-12">
<div class="row searchpad">
<form id="searchForm" role="form" class="form" method="post">
<br>
<h1 id="SS" class="col-sm-12">Stock Market Search</h1>
<label class="col-sm-3 control-label" for="companySymbol" >Enter the stock name or symbol:<span style="color:red;">*</span></label>
<div class="col-sm-6">
<input class="form-control" id="companySymbol" type="text" name="company" autofocus required="required" placeholder="Apple or AAPL">
<div id="errormessage"></div>
</div>
<div class="col-sm-3" id="formbutton">
<button type="submit" id="quotebutton" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> Get Quote</button>
<button type="reset" id="clearbutton" name="clear" value="Clear" onclick="ResetPage(this.form)" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span> Clear</button>
</div>
<div class="col-sm-3 col-sm-offset-9">
<label for="power">Powered by: </label><a id="power" href="https://www.markit.com/product/markit-on-demand"><img id="logo" src="mod-logo.png" height="25" width="150"></a>
</div>
</form>
</div>
<div class="row">
<hr>
</div>
<div class="row">
<div class="carousel slide" id="resultpadslide">
<div class="carousel-inner">
<!-- first carousel page -->
<div class="item active"id="favouritepad">
<div id="bottompanel" class="panel panel-default">
<div class="panel-heading clearfix">
<b>Favortite List</b>
<div class="pull-right">
<label><span id="hiddentext">Automatic Refresh </span><input id="toggleSwitch" class="btn-small" type="checkbox" data-toggle="toggle" ></label>
<button id="refreshButton" class="btn btn-default"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="nextslide" style="cursor:not-allowed" class="btn btn-default" disabled><span class="glyphicon glyphicon-chevron-right"></span></button>
</div>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped" id="favouriteList">
<tr>
<th>Symbol</th>
<th>Company Name</th>
<th>Stock Price</th>
<th>Change(Change Percent)</th>
<th>Market Cap</th>
<th></th>
</tr>
</table>
</div>
</div>
</div>
</div>
<!-- second carousel page -->
<div class="item" id="detailspad">
<div id="bottompanel" class="panel panel-default">
<div class="panel-heading text-center clearfix"><button id="prevslide" class="btn btn-default pull-left"><span class="glyphicon glyphicon-chevron-left"></span></button><span>Stock Details</span>
</div>
<div class="panel-body">
<div id="tabarea">
<!-- Nav tabs -->
<ul class="nav nav-pills" role="tablist">
<li role="presentation" class="active"><a href="#currentstock" aria-controls="currentstock" role="tab" data-toggle="tab"><span class="glyphicon glyphicon-dashboard"></span><span class="mobileHidden"> Current</span> Stock</a></li>
<li role="presentation"><a href="#historicalcharts" id="highchart" aria-controls="historicalcharts" role="tab" data-toggle="tab"><span class="glyphicon glyphicon-stats"></span><span class="mobileHidden"> Historical</span> Charts</a></li>
<li role="presentation"><a href="#newsfeed" aria-controls="newsfeed" role="tab" data-toggle="tab"><span class="glyphicon glyphicon-link"></span> News<span class="mobileHidden"> Feeds</span></a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="currentstock">
<hr>
<div class="row">
<div class="pull-left">
<label id="tableTitle">Stock Details</label>
</div>
<div class="pull-right" id="twoButtons">
<img id="fbShareButton" src="1459164023_facebook.ico">
<button id="favouriteButton" type="button" class="btn btn-default"><span id="starButton" class="glyphicon glyphicon-star"></span></button>
</div>
</div>
<div class="row">
<div class="col-sm-6" id="stockTable">
<!-- The stock details talbe will showed here -->
</div>
<div class="col-sm-6" id="daily_stock_chart">
<!-- Yahoo daily charts will showed here -->
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="historicalcharts"><hr>
<div id="interactive_charts">
<!-- The historicalcharts will showed here -->
</div>
</div>
<div role="tabpanel" class="tab-pane" id="newsfeed"><hr>
<div id="news">
<!-- The news feed will showed here -->
</div>
</div>
</div><!-- tab content -->
</div><!-- id=tabarea -->
</div><!-- panel body -->
</div><!-- bottompanel -->
</div><!-- second carousel page -->
</div><!-- carousel inner -->
</div><!-- carousel slide -->
</div>
</div><!-- col-sm-12 -->
</div> <!-- container -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
</body>
</html>