-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
225 lines (207 loc) · 11 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crypto convo</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<style>
body{
background: linear-gradient(to right,#8e2de2,#4a00e0);
}
</style>
</head>
<body>
<div class="card mb-3 " style="background-color: white;max-width: 25rem;position:relative;margin:auto;top:15vh;left:0;bottom:0;right:0; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);" >
<br>
<h3 style="text-align: center;color: #222;">Crypto Convo</h3>
<div class="card-body mt-1 mb-3">
<select class="form-control form-control-lg" id="crypto" required>
<option value="" selected="true" disabled="disabled" >Select Cryptocurrency</option>
<option value="BTC">Bitcoin</option>
<option value="LTC">Litecoin</option>
<option value="BCH">Bitcoin cash</option>
<option value="ETH">Ethereum</option>
<option value="XRP">Ripple</option>
<option value="DASH">Dash</option>
<option value="XMR">Monero</option>
<option value="XLM">Stellar</option>
<option value="NEO">Neo</option>
<option value="TRX">Tron</option>
<option value="ETC">Ethereum Classic</option>
<option value="ETN">Electroneum</option>
<option value="NANO">Nano</option>
<option value="USDT">USDT</option>
<option value="ZEC">Zcash</option>
<option value="ADA">Cardano</option>
<option value="TIT">Titcoin</option>
<option value="XEM">NEM</option>
<option value="MZC">MazaCoin</option>
<option value="AUR">Auroracoin</option>
<option value="XPM">Primecoin</option>
<option value="GRC">Gridcoin</option>
<option value="PPC">Peercoin</option>
<option value="NMC">Namecoin</option>
<option value="NXT">NXT</option>
<option value="XVG">Verge</option>
<option value="OKB">OKB</option>
<option value="DGB">DigiByte</option>
<option value="ALGO">Algorand</option>
<option value="PAX">Paxos Standard</option>
<option value="ZRX">0x</option>
<option value="REN">REN</option>
<option value="BTT">BitTorrent</option>
<option value="ALGO">Algorand</option>
<option value="ABBC">ABBC Coin</option>
<option value="HUSD">HUSD</option>
<option value="ATOM">Cosmos</option>
<option value="VET">VeChain</option>
<option value="THETA">THETA</option>
<option value="MKR">Maker</option>
<option value="EWT">EWT</option>
<option value="OCEAN">OCEAN</option>
<option value="ZIL">ZIL</option>
<option value="ICX">ICX</option>
<option value="HBAR">HBAR</option>
<option value="QNT">Quant</option>
<option value="KNC">Kyber Network</option>
<option value="DCR">Decred</option>
<option value="LRC">Loopring</option>
<option value="REP">Augur</option>
<option value="LSK">Lisk</option>
<option value="BTG">Bitcoin Gold</option>
<option value="REV">Revain</option>
<option value="CVT">CyberVein</option>
<option value="ZB">ZB Token</option>
<option value="LUNA">Terra</option>
<option value="ANT">Aragon</option>
<option value="NXM">NXM</option>
<option value="SC">Siacoin</option>
<option value="NEAR">NEAR Protocol</option>
<option value="STX">Blockstack</option>
<option value="AMPL">Ampleforth</option>
<option value="MANA">Decentraland</option>
<option value="AVAX">Avalanche</option>
<option value="BAND">Band Protocol</option>
<option value="BCD">Bitcoin Diamond</option>
<option value="SUSHI">SushiSwap</option>
<option value="NMR">Numeraire</option>
<option value="VLX">Velas </option>
<option value="RVN">Raven Coin</option>
<option value="BTM">Bytom</option>
<option value="GNT">Golem</option>
<option value="OXD">Orchid </option>
<option value="CKB">Nervos Network</option>
<option value="HOT">Holo</option>
<option value="DIVI">DIVI</option>
<option value="IOST">IOST </option>
<option value="SNT">Status</option>
<option value="AR">Arweave</option>
<option value="BAL">Balancer</option>
<option value="PAXG">PAX Gold </option>
<option value="SOL">Solono</option>
<option value="RUNE">THORchain</option>
<option value="SXP">Swipe</option>
<option value="UQC">Uquid Coin </option>
<option value="STORJ">Storj</option>
<option value="CHSB">SwishBorg</option>
<option value="MATIC">Matic Network</option>
<option value="NRG">Energi</option>
<option value="STEEM">Steem</option>
<option value="ZEN">Horizen</option>
<option value="KMD">Komodo</option>
<option value="BTS">Bitshares</option>
<option value="JST">Just</option>
<option value="SRM">Serum</option>
<option value="UBT">Unbright</option>
<option value="MAID">MaidSafeCoin</option>
<option value="WAXP">Wax</option>
<option value="ARDR">Ardor</option>
<option value="GNO">Gnosis</option>
<option value="CHZ">Chiliz</option>
<option value="ELF">Aelf</option>
<option value="TFUEL">Theta Fuel</option>
<option value="HIVE">Hive</option>
<option value="IRIS">IRISnet</option>
<option value="HXRO">Hxro</option>
<option value="TOMO">Tomo chain</option>
<option value="HC">Hypercash</option>
<option value="SUN">SUN</option>
<option value="ANKR">ANKR</option>
<option value="WAN">Wanchain</option>
<option value="BNT">Bancor</option>
<option value="UTK">UTrust</option>
<option value="QKC">QuarkChain</option>
<option value="STRAT">Stratis</option>
<option value="SHR">ShareToken</option>
<option value="FXC">Flexacoin</option>
<option value="HYN">Hyperion</option>
<option value="FTM">Fantom</option>
<option value="RDD">ReddCoin</option>
<option value="XZC">Zcoin</option>
<option value="VGX">Voyager Token</option>
<option value="MCO">MCO</option>
<option value="ARK">Ark</option>
<option value="KIN">Kin</option>
<option value="TRB">Tellor</option>
<option value="DIA">Dia</option>
<option value="POWR">Power Ledger</option>
<option value="AE">Aeternity</option>
<option value="STAKE">xDai</option>
<option value="AION">Aion</option>
<option value="DGTX">Digitex Futures</option>
</select>
<br>
<div style='text-align:center; '> <i class='fas fa-angle-double-down' style='text-align:center; font-size:48px;color:#222'></i></div>
<br>
<select class="form-control form-control-lg" id="fiat" required>
<option value="" selected="true" disabled="disabled" >Select Fiat</option>
<option value="USD">U.S Dollar</option>
<option value="JPY">Japanese Yen</option>
<option value="INR">Indian Rupees</option>
<option value="EUR">Euro</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NGN">Nigeria Naira</option>
<option value="RUB">Russia Rubble</option>
<option value="SGD">Singapore Dollar</option>
<option value="IRR">Iran Rial</option>
<option value="ARS">Argentina Peso</option>
<option value="CAD">Canada Dollar</option>
<option value="BRL">Brazil Real</option>
</select>
<br>
<div class="text-center pt-2">
<button type="button" onclick="data()" style=" background: linear-gradient(to right, #8e2de2, #4a00e0);" class="btn text-white btn-lg btn-block rounded-pill">Convert</button>
</div>
<div style="text-align: center;">
<hr>
<h2 id="output" style="margin-top: 30px;">
</h2>
</div>
</div>
</div>
<script>
function data(){
$(document).ready( function() {
var crypto = document.getElementById('crypto').value;
var fiat = document.getElementById('fiat').value;
if(crypto == "" || fiat == ""){
alert("Select Details Correctly");
}
else{
var display = $("#output")
$.getJSON("https://min-api.cryptocompare.com/data/price?fsym="+crypto+"&tsyms="+fiat+" " ,function(result){
display.empty();
display.append("<h4 style='text-align:center'>1 "+crypto+"= <b>"+result[fiat]+"</b> "+fiat+"</h4>");
});
}
});
}
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
</body>
</html>