forked from JasonVolkoff/Crypto_at_a_Glance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (85 loc) · 5.06 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Crypo API tests</title>
<meta name="description" content="A simple javascript api crypto caller and graphing test.">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="css/styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></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="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"
integrity="sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" crossorigin="anonymous">
</script>
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/feather.min.js"
integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE"
crossorigin="anonymous"></script> -->
<script src="js/scripts.js"></script>
</head>
<body>
<div class="wrapper">
<nav class="navbar navbar-light bg-light mb-5">
<a class="navbar-brand" href="#">
Crypo API/JSON/Graphing test site
</a>
</nav>
<div class="container">
<div class="jumbotron justify-content-center">
<div class="justify-content-center">
<!-- coin svg goes below -->
<img src="" width="30" height="30" class="d-inline-block align-top" id="coin-img" alt="">
<!-- coin name appended below -->
<h1 class="display-4 d-inline-block" id="currency">Bitcoin</h1>
</div>
<div>
<select id="cryptoList" class="custom-select custom-select-lg mb-3">
<!-- <option value="Bitcoin">Bitcoin</option>
<option value="Ethereum">Ethereum</option>
<option value="Litecoin">Litecoin</option>
<option value="Holotoken">Holotoken</option> -->
</select>
</div>
<hr class="my-4">
</div>
<div class="btn-group d-inline-block align-right" id="dataOptionButtons">
<input type="radio" name="data-Options" value="Info" class="btn-check" id="info">
<label class="btn btn-primary" for="info">Info</label>
<input type="radio" name="data-Options" value="History" class="btn-check" id="history">
<label class="btn btn-primary" for="history">History</label>
</div>
<div>
<!-- dynamic current price below -->
<div class="d-flex justify-content-between align-items-center">
<h1 class="d-inline-block mb-0" id="current-price">$0.00</h1>
<!-- <div class="btn-group d-inline-block align-center">
<button id="day" type="button" class="btn btn-primary">24h</button>
<button id="week" type="button" class="btn btn-primary">7d</button>
<button id="month" type="button" class="btn btn-primary">30d</button>
<button id="year" type="button" class="btn btn-primary">1y</button>
</div> -->
<div class="btn-group d-inline-block align-center" id="timeframeButtons">
<input type="radio" name="timeFrameOption" value="24h" class="btn-check" id="24h">
<label class="btn btn-secondary" for="24h">24h</label>
<input type="radio" name="timeFrameOption" value="7d" class="btn-check" id="7d">
<label class="btn btn-secondary" for="7d">7d</label>
<input type="radio" name="timeFrameOption" value="30d" class="btn-check" id="30d">
<label class="btn btn-secondary" for="30d">30d</label>
<input type="radio" name="timeFrameOption" value="1y" class="btn-check" id="1y">
<label class="btn btn-secondary" for="1y">1y</label>
</div>
</div>
<div class="btn-group d-inline-block align-center" id="getDataBtnDiv">
<input type="button" value="Update" id="getData">
<canvas class="my-4 w-100" id="myChart" width="900" height="380"></canvas>
</div>
</div>
</div>
</body>
</html>