-
Notifications
You must be signed in to change notification settings - Fork 0
/
bse.html
223 lines (159 loc) · 7.01 KB
/
bse.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
<!DOCTYPE html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<title></title>
</head>
<body>
<nav class="navbar navbar-default" >
<span class="dropdown" style="padding-left: 10rem; padding-top: 1rem; float: left;">
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">BSE
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li ><a href="index.html">NSE</a></li>
<li class="active"><a href="bse.html">BSE</a></li>
</ul>
</span>
<span class="dropdown" style="padding-left: 10rem; padding-top: 1rem; float: right; ">
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">ASHOKLEY
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li class="active"><a href="ashok.html">ASHOKLEY</a></li>
<li><a href="cipla.html">CIPLA</a></li>
<li><a href="echer.html">ECHERMOT</a></li>
<li><a href="reli.html">RELIANCE</a></li>
<li><a href="tata.html">TATASTEEL</a></li>
</ul>
</span>
</nav>
<div class="panel panel-default">
<div class="panel-heading">
<div class="container-fluid">
<h3><b>SENSEX 50</b></h3>
<hr style="border-top: 3px solid grey;">
<div class="row">
<div class=" col-sm-4 col-lg-6" >
<h1><span style="font-style:bold; font-size: 5rem;" id="h">11,323.85</span></h1>
<span><h3 style="color:green;"><b>23.40(0.21%)</b></h3></span>
<span><h3 style="color:grey;"><b>13 August 2020(in reference with)</b></h3></span>
</div>
<div class=" col-sm-8 col-lg-6" >
<div class=" col-xs-12 col-lg-12">
<h4>Day Range</h4>
<span class=" col-xs-1 col-lg-1"><b id="l1">11,315.25</b><br>L</span>
<span class=" col-xs-10 col-lg-10 "><br><hr style="border-top: 2px solid grey;"></span>
<span class=" col-xs-1 col-lg-1"><b id="l2">11,361.40</b><br>H</span>
</div>
<div class=" col-xs-12 col-lg-12">
<h4>52 week Range</h4>
<span class=" col-xs-1 col-lg-1"><b id="l3">11,315.25</b><br>L</span>
<span class=" col-xs-10 col-lg-10 "><br><hr style="border-top: 2px solid grey;"></span>
<span class=" col-xs-1 col-lg-1"><b id="l4">11,361.40</b><br>H</span>
</div>
</div>
</div>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
</div>
</div>
<div class="panel-body">
<h3>OVERVIEW</h3>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
<div class="row">
<div class=" col-lg-6" >
<div><span style="float: right;" id="open"></span><span style="float: left">Open</span></div>
<br>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
<br>
<div><span style="float: right;" id="close"></span><span style="float: left">Previous close</span></div>
<br>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
<br>
<div><span style="float: right;" id="low"></span><span style="float: left">Day Low</span></div>
<br>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
</div>
<div class=" col-lg-6" >
<div><span style="float: right;" id="high"></span><span style="float: left">Day High</span></div>
<br>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
<br>
<div><span style="float: right;" id="min"></span><span style="float: left">52 week Low</span></div>
<br>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
<br>
<div><span style="float: right;" id="max"></span><span style="float: left">52 week High</span></div>
<br>
<hr style=" border-top: 1px dashed #8c8b8b;border-bottom: 1px dashed #fff;">
</div>
</div>
</div>
</div>
</div>
<script >
let max=0,high=0,low=0,close=0,ide=0,s=0;
$(document).ready(function(){
$.getJSON("bse.json",function(data){
$.each(data,function(key,value){
if(value.Date=="8/13/2020")
//if(value.id==1229)
{
high=value.High;
low=value.Low;
open=value.Open;
}
if(value.Date=="8/12/2020")
//if(value.id==1229)
{
close=value.Close;
}
if(value.Date=="8/13/2019")
{ ide=value.id ;
min=value.Low;
console.log(min);
console.log("hiii");
}
});
$.each(data,function(key,value){
if(value.id>=ide){
//console.log(value.id);
if( value.High>max && value.High != "null")
{
max=value.High;
}
if( value.Low <min)
{ if(value.Low == null){
var ll=value.Low
}
else
{
min=value.Low;
s=value.id;
}
console.log(min);
console.log(s);
}
}
});
console.log(min);
document.getElementById("open").innerHTML=open;
document.getElementById("high").innerHTML=high;
document.getElementById("low").innerHTML=low;
document.getElementById("close").innerHTML=close;
document.getElementById("max").innerHTML=max;
document.getElementById("min").innerHTML=min;
document.getElementById("l1").innerHTML=low;
document.getElementById("l2").innerHTML=high;
document.getElementById("l3").innerHTML=min;
document.getElementById("l4").innerHTML=max;
document.getElementById("h").innerHTML= (Math.round(( Math.random()* (Math.floor(high)-Math.floor(low))+ Math.floor(low))*10000))/10000;
//console.log((Math.random()*(high-low))+low);
});
});
</script>
</body>
</html>