-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
84 lines (75 loc) · 3.41 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Stock Price Prediction</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script src='main.js'></script>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/data.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<script src="https://code.highcharts.com/stock/modules/export-data.js"></script>
<style>
#stock_icon{
font-size: 50px;
}
#circle{
border-radius: 30px;
}
</style>
</head>
<body>
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo center"><i class="material-icons" id="stock_icon">timeline</i>Stock Price Prdiction</a>
</div>
</nav>
<div class="container">
<div class="row"><br>
<div class="col s1"><a class="btn-floating btn-large waves-effect waves-light blue z-depth-4"><i class="material-icons">arrow_back</i></a></div>
<div class="col s11"><a class="waves-effect waves-light btn-large z-depth-4">You are viewing Stock of: <b>Microsoft (MSFT)</b></a></div>
</div>
<div class="row"><br>
<div class="col s12"><a class="waves-effect waves-light btn-large z-depth-4 purple darken-2" id="circle"><b>Current Live Stock</b></a></div>
</div>
<div class="row z-depth-4" id=circle><br>
<div class="col s12"><div id="container" style="height: 400px; min-width: 310px"></div></div>
</div>
<div class="row"><br>
<div class="col s12"><a class="waves-effect waves-light btn-large z-depth-4 blue darken-3" id="circle"><b>Predicted Stock</b></a></div>
</div>
<div class="row z-depth-4" id=circle><br>
<div class="col s12"><div id="container" style="height: 400px; min-width: 310px"></div></div>
</div>
<div class="col s6"><a class="waves-effect waves-light btn-large z-depth-4 blue darken-3" id="circle"><b>Tommorow's Predicted Price: 90.65</b></a></div>
<div class="col s6"><a class="waves-effect waves-light btn-large z-depth-4 blue darken-3" id="circle"><b>You should BUY the stock</b></a></div>
</div>
</body>
<script>
Highcharts.getJSON('https://www.highcharts.com/samples/data/aapl-c.json', function (data) {
// Create the chart
Highcharts.stockChart('container', {
rangeSelector: {
selected: 1
},
title: {
text: 'MSFT Stock Price'
},
series: [{
name: 'MSFT',
data: data,
tooltip: {
valueDecimals: 2
}
}]
});
});
</script>
</html>