blob: 91f849380995a8bf8fc058a264eb766452d24082 (
plain) (
blame)
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
|
<!DOCTYPE html>
<html>
<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">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
textarea {
width: 100%;
min-height: 30rem;
background-color: black;
font-family: "Lucida Console", Monaco, monospace;
font-size: 0.75 rem;
line-height: 1.2;
color: #fff;
}
</style>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a href="index.html"><b>Home</b></a></li>
<li><a href="contacts.html"><b>Contacts</b></a></li>
<li><a href="addContact.html"><b>Add Contact</b></a></li>
<li><a href="stock.html"><b>Stock Page</b></a></li>
</ul>
</div>
</nav>
<br><br>
<div class="container">
<div class="panel panel-default">
<div class="panel-body"><center>Welcome to Stock Page</center></div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col">
<table class="table table-bordered table-hover">
<tbody>
<tr>
<td class="col-md-6">Company</td>
<td class="col-md-6">
<div class="form-group">
<select name="Company">
<option value="GME">Gamestop</option>
<option value="MSFT">Microsoft</option>
<option value="BA">Boeing Company</option>
<option value="AAPL">Apple Inc</option>
<option value="AMZN">Amazon</option>
<option value="NVDA">NVIDIA Corporation</option>
</select>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<button type="button">Get Data</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="container">
<div id="chartContainer"></div>
</div>
<div class="container">
<table class="table" id="StockData">
<thead>
<tr>
<th scope="col">Company-MetaData</th>
<th scope="col">Stock-Info</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<!-- <script>
/* TODO:
/ Bonus 1. Request the TIME_SERIES_DAILY endpoint of alphavantage API
/ for the company selected in the dropdown. Display the JSON
/ in the result according to the write up.
/ Bonus 2. Take the JSON from the alphavantage API and chart it to a
/ line chart using Chart.js to the chartContainer div. Ensure
/ the chart meets all requirements from the HW writeup.
/*/
</script> -->
</body>
</html>
|