-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (36 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en" dir="ltr" ng-app="myApp" ng-controller="myCtrl">
<head>
<meta charset="utf-8">
<title>Currency Calculator</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/styles.css">
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script src="js/scripts.js"></script>
</head>
<body>
<div class="container">
<h4 class="title">Currency Calculator</h4>
<div class="row">
<div class="calculator columns eight">
<p>Current exchange: 1USD = {{exchange}} {{currency}}</p>
<input type="number" id="inputAmount" ng-model="amount" placeholder="Enter an amount here">
<div class="result">
<p>Amount in USD:</p>
<h1 class="amount" data-idr="{{amount}}">{{(amount/exchange) | number: 2 }}</h1>
<button class="copy btn-primary" data-clipboard-target=".amount"> Copy </button>
</div>
</div>
<aside class="recentAmounts">
<h4>Recent</h4>
<ul class="amountsList">
</ul>
<button type="button" name="button" onclick="reset()">Reset</button>
</aside>
</div>
</div>
</body>
</html>