-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstocks.html
107 lines (85 loc) · 3.59 KB
/
stocks.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Stocks</title>
<link rel="stylesheet" type="text/css" href="css/grid.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/printstyle.css" media="print">
<script defer src="js/stocksIE.js"></script>
</head>
<body>
<!-- This HTML5 main element was needed to keep the footer at the bottom of the page on mobile-->
<div id="main">
<!-- This HTML5 header element will contain a picture, title of the page, and the nav element -->
<header>
<figure>
<img src="images/stocks.jpg" alt="Picture of stock charts" title="Picture of stock charts"
width="600" height="450"/>
<figcaption>Image by <a href="https://pixabay.com/users/stocksnap-894430/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=2616931">StockSnap</a> from <a href="https://pixabay.com/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=2616931">Pixabay</a></figcaption>
</figure>
<h1>Stocks App</h1>
<!-- This HTML5 nav element will contain the nav bar -->
<nav>
<ul>
<li><a href="index.html">Home</a> </li>
<li><a href="academic.html">School</a> </li>
<li><a href="professional.html">Work</a> </li>
<li class="dropdown">
<a href="#">Play</a>
<ul>
<li><a href="hiking.html">Hiking</a></li>
<li><a href="music.html">Music</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="active">Apps</a>
<ul>
<li><a href="weather.html">Weather</a></li>
<li><a href="stocks.html" class="active">Stocks</a></li>
<li><a href="covid.html">Covid</a></li>
<li><a href="todo.html">To-Do</a></li>
<li><a href="reviews.html">Reviews</a></li>
</ul>
</li>
</ul>
</nav>
<hr>
</header>
<!-- This HTML5 section element will my article(s) for this page -->
<section>
<h2>Stocks App</h2>
<article id="stocks-dashboard">
<div class="header"><h3 class="covid-header">Indexes</h3></div>
<div id="dow">Dow Jones</div>
<div id="sp500">S&P 500</div>
<div id="nasdaq">Nasdaq</div>
</article>
<h3>Stock Search</h3>
<br>
<form id="form">
<input type="text" id="inputValue" placeholder="Enter ticker symbol...">
<input type="submit" value="Submit" id="btn">
<div id="error"></div>
</form>
<br>
<div id="stock-container">
<div id="stock-display"></div>
</div>
</section>
<br>
<br>
<br>
<!-- This HTML5 footer element will contain my name, email, and last updated date, as well as printed from line -->
<footer>
<div id="footer-left"><p>© 2020 Henry Choy</p></div>
<div id="footer-center"><p><a href="mailto:[email protected]">[email protected]</a></p></div>
<div id="footer-right"><p id="last-updated"></p></div>
<p class="printed-from">Printed from http://henrychoy.com/</p>
</footer>
</div>
<script>
// last updated in footer
document.getElementById("last-updated").textContent = `Last Updated: ${document.lastModified}`;
</script>
</body>
</html>