-
Notifications
You must be signed in to change notification settings - Fork 0
/
first.html
117 lines (103 loc) · 4.98 KB
/
first.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
<!--Type ! and press tab we will get this format-->
<!--I am using visual sudio code for this -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<!--Copied this link by seraching bootstrat documentation
then to 1st link https://getbootstrap.com/docs/4.1/getting-started/introduction/
then coping link of CSS-->
<style>
body {
background-color: #2f6c88;
}
</style>
<title>Crypto Traker</title>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<!--After defining row function screen divides in 12 part to solve this issue we need to define how much part we need to give this h1-->
<h1 class="col-md-7 text-center">Coinex Bodhi</h1>
<!--For heading-->
<h4 class="col-md-7 text-center">By Anjul Gupta </h4>
<!--col-md-7 will not put this in h1 tag line as 7 7 will become 14-->
<div class="col-md-6 row justify-content-center">
<div class="col-10">
<form action="" id="searchForm">
<!--this searhFom is case sensitive-->
<!--Since we want to make 1 form so wee are naming it -->
<div class="form-row">
<div class="col-12 form-group">
<label for="xyz"><b>COIN TYPE</b> </label>
<select name="coinType" class="form-control" id="xyz"> <!--CoinType is the name used at js page to identify-->
<option value="bitcoin">Bitcoin</option> <!--bitcoin is the name of this attribute-->
<option value="dogecoin">Dogecoin</option>
<option value="ethereum">Ethereum</option>
<option value="polkadot">Polkadot</option> <!--Options of drop down -->
<option value="tether">Tether</option>
</select>
</div>
</div>
<!--if i do type div.col tab press then this converts into div with class name col-->
<button type="submit" class="col-12 btn btn-primary">Get Price</button>
<!--Submit button with the name of get price-->
</form>
</div>
</div>
<div class="col-md-7 text-center row justify-content-center">
<table class="col-md-7 m-2 table table-hover table-striped" id="TableResult">
</table>
<!-- <h4>Price : </h4>
<h5 id="result"></h5>
removing this portion to make a table -->
</div>
</div>
<!--to put everything in middle we use this div class-->
</div>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!--We use Axios as your client to make HTTP requests-->
<script src="app.js"></script>
<!--To add app.js to this html-->
<!--extra material not tought in lecture-->
<script type='text/javascript' data-cfasync='false'>
window.purechatApi = {
l: [],
t: [],
on: function() {
this.l.push(arguments);
}
};
(function() {
var done = false;
var script = document.createElement('script');
script.async = true;
script.type = 'text/javascript';
script.src = 'https://app.purechat.com/VisitorWidget/WidgetScript';
document.getElementsByTagName('HEAD').item(0).appendChild(script);
script.onreadystatechange = script.onload = function(e) {
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
var w = new PCWidget({
c: '473e1867-1177-490f-b95a-5935a10e49da',
f: true
});
done = true;
}
};
})();
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9NWXGGKVC8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-9NWXGGKVC8');
</script>
</body>
</html>