-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathportfolio.html
64 lines (58 loc) · 1.94 KB
/
portfolio.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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>
NSE | BSE - Stocks
</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript">
$(document).ready(function() {
$.ajax(
{
url:'pd.json',
dataType:'json',
success: function(dataSet){
console.log(dataSet);
$('#step-table').DataTable( {
data: dataSet,
columns: [
{ title: "Name" },
{ title: "Sector" },
{ title: "LTP" },
{ title: "Last % Change" },
{ title: "52 Wk Low" },
{ title: "52 Wk High" },
{ title: "Market Cap" }
]
} );
},
error: function(jqXHR,textStatus,errorThrown){
alert("Alert \n "+textStatus+"\n" +errorThrown)
}
});
});
</script>
<script type="text/javascript">
</script>
</head>
<body style="background: linear-gradient(to right, #dae2f8, #d6a4a4);">
<div class="page-header text-center">
<h1>Portfolios<small> NSE | BSE</small></h1>
</div>
<br>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<table id='step-table' class="display" cellspacing="0" width="100%">
</table>
</div>
</div>
</div>
</body>
</html>