-
Notifications
You must be signed in to change notification settings - Fork 1
/
stocks.html
142 lines (135 loc) · 6.44 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="develop/style.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous" />
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<title>Stocks</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link text-light" href="index.html">Home<span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="stocks.html">Stocks</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="news.html">News</a>
</li>
<li class="nav-item">
<a class="nav-link text-light" href="portfolio.html">Portfolio</a>
</li>
</ul>
</div>
<div class="display-4 text-center bg-dark text-light">Stock Search</div>
</nav>
<div class="container-fluid mt-4">
<form class="form-inline my-2 my-lg-0">
<button class="btn btn-outline-secondary my-2 my-sm-0 mr-2" type="submit" id="searchBtn" onClick="onClickSubmit(event)">
Search
</button>
<input class="form-control mr-sm-2" type="search" placeholder="Search Stock Symbol" aria-label="Search Stock Symbol" id="searchResult" />
</form>
</div>
<div class="container">
<ul class="nav nav-tabs align-center mt-3">
<li class="nav-item">
<a class="nav-link" href="#" id="GOOGL" onClick="getStockBtn(event)">Google</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="BA" onClick="getStockBtn(event)">Boeing</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="AXP" onClick="getStockBtn(event)">American Express</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="DOW" onClick="getStockBtn(event)">DOW</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="HON" onClick="getStockBtn(event)">HoneyWell</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="TSLA" onClick="getStockBtn(event)">Tesla</a>
</li>
</ul>
<div class="container mb-3" id="nav-tabContent">
</div>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">Save changes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" role="dialog" id="nocash">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p class="align-center">You don't have enough money</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" role="dialog" id="nostock">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p class="align-center">You don't have enough stock to sell</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<footer>
<div class="fixed-bottom">
by @team-e
</div>
</footer>
<script src="https://rawgit.com/moment/moment/2.2.1/min/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="develop/app.js"></script>
</body>
</html>