This repository has been archived by the owner on Apr 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (151 loc) · 8.22 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
<!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">
<meta name="description" content="Currency exchange">
<meta name="author" content="Jordan Chen">
<title>Currency Exchange</title>
<!-- Bootstrap core CSS -->
<link href="./files/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="./files/node_modules/bootstrap/dist/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Custom styles -->
<link href="./files/css/chosen.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./files/css/font-awesome.css">
<!--Fonts-->
<link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="./files/css/style.css" rel="stylesheet">
<script type="text/javascript"> var appInsights=window.appInsights||function(config){ function r(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s=u.createElement(o),i,f;s.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(s);try{t.cookie=u.cookie}catch(h){}for(t.queue=[],i=["Event","Exception","Metric","PageView","Trace","Dependency"];i.length;)r("track"+i.pop());return r("setAuthenticatedUserContext"),r("clearAuthenticatedUserContext"),config.disableExceptionTracking||(i="onerror",r("_"+i),f=e[i],e[i]=function(config,r,u,e,o){var s=f&&f(config,r,u,e,o);return s!==!0&&t["_"+i](config,r,u,e,o),s}),t }({ instrumentationKey:"8afb870e-d5e2-4e97-8cc1-9eceaa582565" }); window.appInsights=appInsights; appInsights.trackPageView();</script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><i class="fa fa-money" aria-hidden="true" title="money"></i> Currency Exchange</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="active"><a href="#">By Jordan Chen</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="main-content">
<h1><b>Currency Exchange</b></h1>
<p class="lead">Use this tool to quickly exchange between the most popular currencies.<br> For all your exchanging needs.</p>
<br>
<div id="numberinput">
<form>
<h2>Enter amount to convert:  ($)</h2>
<input id="input-amount" type="number" name="quantity" min="0" value="1">
</form>
</div>
<!-- single dropdown -->
<select id="currency-dropdown" data-placeholder="Choose a Currency..." class="chosen-select" style="width:300px;" >
<option value="NZD" selected="selected">New Zealand dollar (NZD)</option>
<option value="USD">United States dollar (USD)</option>
<option value="EUR">Euro (EUR)</option>
<option value="JPY">Japanese yen (JPY)</option>
<option value="GBP">Pound sterling (GBP)</option>
<option value="AUD">Australian dollar (AUD)</option>
<option value="CAD">Canadian dollar (CAD)</option>
<option value="CHF">Swiss franc (CHF)</option>
<option value="CNY">China (CNY)</option>
<option value="SEK">Swedish krona (SEK)</option>
<option value="MXN">Mexican peso (MXN)</option>
<option value="SGD">Singapore dollar (SGD)</option>
<option value="HKD">Hong Kong dollar (HKD)</option>
<option value="NOK">Norwegian krone (NOK)</option>
<option value="KRW">South Korea (KRW)</option>
<option value="TRY">Turkish lira (TRY)</option>
<option value="INR">Indian rupee (INR)</option>
<option value="RUB">Russian ruble (RUB)</option>
<option value="BRL">Brazilian real (BRL)</option>
<option value="ZAR">South African rand (ZAR)</option>
</select>
<i class="fa fa-arrow-right fa-2x" aria-hidden="true"></i>
<select id="currency-dropdown-2" data-placeholder="Choose a Currency..." class="chosen-select" style="width:300px;" >
<option value="NZD">New Zealand dollar (NZD)</option>
<option value="USD" selected="selected">United States dollar (USD)</option>
<option value="EUR">Euro (EUR)</option>
<option value="JPY">Japanese yen (JPY)</option>
<option value="GBP">Pound sterling (GBP)</option>
<option value="AUD">Australian dollar (AUD)</option>
<option value="CAD">Canadian dollar (CAD)</option>
<option value="CHF">Swiss franc (CHF)</option>
<option value="CNY">China (CNY)</option>
<option value="SEK">Swedish krona (SEK)</option>
<option value="MXN">Mexican peso (MXN)</option>
<option value="SGD">Singapore dollar (SGD)</option>
<option value="HKD">Hong Kong dollar (HKD)</option>
<option value="NOK">Norwegian krone (NOK)</option>
<option value="KRW">South Korea (KRW)</option>
<option value="TRY">Turkish lira (TRY)</option>
<option value="INR">Indian rupee (INR)</option>
<option value="RUB">Russian ruble (RUB)</option>
<option value="BRL">Brazilian real (BRL)</option>
<option value="ZAR">South African rand (ZAR)</option>
</select>
<br>
<div id="numberoutput"><p id="output-amount"></p></div>
</div>
</div><!-- /.container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./files/node_modules/jquery/dist/jquery.min.js"></script>
<script src="./files/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="./files/node_modules/bootstrap/dist/js/ie10-viewport-bug-workaround.js"></script>
<script src="./files/js/chosen.jquery.min.js" type="text/javascript"></script>
<script src="./files/js/money.min.js"></script>
<script src="./files/js/getrate.js"></script>
<script type="text/javascript">
var config = {
'.chosen-select' : {},
'.chosen-select-deselect' : {allow_single_deselect:true},
'.chosen-select-no-single' : {disable_search_threshold:10},
'.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
'.chosen-select-width' : {width:"95%"}
}
for (var selector in config) {
$(selector).chosen(config[selector]);
}
</script>
</body>
</html>
<!-- Facebook stuff https://developers.facebook.com/quickstarts/1576779965962718/?platform=web
https://github.com/sohaibilyas/facebook-js-sdk/blob/master/login-get-basic-user-info.html
https://www.youtube.com/watch?v=x_gLILTRD_k
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1576779965962718',
xfbml : true,
version : 'v2.7'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
-->