-
Notifications
You must be signed in to change notification settings - Fork 0
/
money_converter.html
108 lines (75 loc) · 2.7 KB
/
money_converter.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
<!DOCTYPE html>
<html>
<head>
<title>Currency Converter</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
<script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.js"></script>
<script src="money_converter.js"></script>
<script src="money_converter.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc=" crossorigin="anonymous"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
body{
background-color: #A8CD1B;
}
.container{
background-color: #0099ff;
}
.page-header{
position:center;
color: #005c99;
}
table, th, td {
border: 1px solid black;
}
#left{
background-color:#CBE32D;
}
#right{
background-color:#CBE32D;
}
</style>
</head>
<body ng-app="Convert" ng-controller="MainCtrl">
<!-- 9709a6e517484b8d6ac2a9aea00a147fffd46873-->
<div class="container">
<div class="page-header" align="center">
<h1>Welcome to the Conversion Excursion</h1>
</div>
<p align="center"><b>Here you may view, compare, and examine exchange rates!</b></p>
</div>
<div class="row">
<div class="col-md-3" id="left" align="center">
<h3> From -> </h3>
<div style="font-size: 20px" ng-repeat = "(key, value) in countries" ng-click="setFrom(key, value)">
<button class="btn btn-info"> <b> {{key}}</b> </button>
</div>
</div>
<div class="col-md-6" align="center"><b>
<table style="width:50%">
<tr>
<th>From: {{from}}</th>
<th>To: {{to}}</th>
</tr>
<tr>
<td><input type="text" placeholder="enter value" data-ng-model="fromValue" data-ng-change="convert()"></td>
<td><input type="number" ng-model="toValue"></td>
</tr>
</table>
<p>1. Select a country under From. <br>2. Select a country under To. <br>3. Enter the amount for conversion </p>
<br><br><br><br><br>
<img src="http://media.istockphoto.com/photos/green-dollar-sign-in-green-and-white-picture-id104248221?k=6&m=104248221&s=170667a&w=0&h=GEEn-g36tzNuU0wGAUbUw07Heyy1XhbT9zaTrCbTnN0="
alt="dollar sign" position= absolute; style="height: 350px; width: 50%">
</div>
<div class="col-md-3" id="right" align="center">
<h3>-> To</h3>
<div style="font-size: 20px" ng-repeat = "(key, value) in countries" ng-click="setTo(key, value)">
<button class="btn btn-info"> <b> {{key}}</b> </button>
</div>
</div>
</div>
</body>
</html>