-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (63 loc) · 3.45 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
<html lang="en">
<head>
<title>IFPRI Currency Converter ver 1.0</title>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline' 'self' https://code.jquery.com/jquery-3.2.1.js https://www.gstatic.com/charts/loader.js; style-src 'self' https://code.jquery.com; object-src 'none'; base-uri 'self'; connect-src 'self' https://currencyconverter.ifpri.org https://raw.githubusercontent.com; font-src 'self' https://fonts.gstatic.com; frame-src 'self'; img-src 'self'; manifest-src 'self'; media-src 'self'; worker-src 'none';">
<meta http-equiv="Strict-Transport-Security" content="max-age=63072000; includeSubDomains;">
<meta http-equiv="X-Content-Type-Options" content="nosniff">
<meta http-equiv="X-Frame-Options" content="SAMEORIGIN">
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<script src="https://code.jquery.com/jquery-3.2.1.js" integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=" crossorigin="anonymous"></script>
<script src="js/jquery-ui-1.12.1.custom/jquery-ui.js"></script>
<script src="js/MonthPicker.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/currency.css" media="screen" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script src='js/currency.2.2.js'></script>
</head>
<body>
<img id='logo' src='images/IFPRI.svg'></img>
<!--div id='uploadCSV'>
<div id='directions'>Upload a CSV file to update the exchange rate</div>
<form id="csvForm" action="UploadDownloadFileServlet" method="post" enctype="multipart/form-data">
Password: <input class="formInput" type="password" id="passwordInput" name="fileName">
<input class="formInput" type="file" id="fileInput" name="fileName"></input> <br>
<input class="formInput" type="button" value="upload" onclick="checkPassword()"></input>
</form>
</div-->
<div id='printBtn' onclick='PrintElem()'>PRINT</div>
<div id='selectContainer'>
<div id ='title'>Currency Exchange Calculator</div>
<div id='controlsContainer'>
<div id='fromContainer' class='container'>
<label for="selectFromCurrency">From Currency</label>
<select id='selectFromCurrency' onchange='updateExchangeRate(true)'></select >
<div id="fromDesc">United States Dollars</div>
</div>
<div id='toContainer' class='container'>
<label for="selectToCurrency">To Currency</label>
<select id='selectToCurrency' onchange='updateExchangeRate(false)'></select >
<div id="toDesc">United States Dollars</div>
</div>
<div id='amountContainer' class='container'>
<label for="amount">Currency Amount</label>
<input id='amount' type="text" value='0.0' onchange='updateExchangeRate(null)'></input>
</div>
<div id='convertedTotalContainer'>
Converted Total:
<div id='convertedTotal'>0.0</div>
</div>
<div id='exchangeRateContainer'>
Current Exchange Rate
<div id='exchangeRate'>1.0</div>
</div>
</div>
</div>
<div id="csvContainer">
<label for="csvDropdown">Date Selector for Exchange Values:</label>
<select id='csvDropdown' type="text" value='0.0' onchange='selectCSV()'></select>
</div>
</body>
</html>