-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (80 loc) · 3.83 KB
/
index.html
File metadata and controls
88 lines (80 loc) · 3.83 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"/>
<title>Currency Convertor</title>
<style>
#msg-container{
position: fixed;
top:2%;
right: 2%;
}
</style>
</head>
<body>
<div class="container d-flex justify-content-center mt-5">
<div class="bg-light p-4 shadow">
<h3 class="text-center">CURRENCY CONVERTOR APP</h3>
<form class="mt-5" id="currency-form">
<input type="text" id="currency-input" class="form-control form-control-lg mb-2"/>
<h6 class="text-center">From</h6>
<select id="from-select"class="custom-select custom-select-lg mb-3"></select>
<h6 class="text-center">To</h6>
<select id="to-select"class="custom-select custom-select-lg mb-3"></select>
<div class="text-center m-2 row">
<div class="col-md-6 col-12 my-1">
<button type="button" id="add-btn"data-toggle="modal" data-target="#add-model" class="btn btn-warning "> ADD CURRENCY </button>
</div>
<div class="col-md-6 col-12 my-1">
<button class="btn btn-primary" type="submit"> CONVERT </button>
</div>
</div>
</form>
</div>
</div>
<button id="btn-show-results" type="button" hidden data-toggle="modal" data-target="#result-modal"></button>
<!-- ADD Modal -->
<div class="modal fade" id="add-model">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<form action="">
<div class="modal-header">
<h5 class="modal-title" id="add-model-header">ADD CURRENCY CONVERSION</h5>
<button type="button" id="add-btn" class="close" data-dismiss="modal">
<span>×</span>
</button>
</div>
<div class="modal-body">
<h5 class="text-center">From</h5>
<select id="from-input"class="custom-select custom-select-lg mb-3"></select>
<h5 class="text-center">To</h5>
<select id="to-input"class="custom-select custom-select-lg mb-3"></select>
<h5 class="text-center">Conversion Factor</h5>
<input id="factor-input" type="number" class="form-control form-control-lg mb-2" required/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="close-add">Close</button>
<button type="submit" id="save-changes" class="btn btn-primary" >Save changes</button>
</div>
</form>
</div>
</div>
</div>
<!-- Result Modal -->
<div class="modal fade" id="result-modal">
<div class="modal-dialog modal-dialog-centered" >
<div class="modal-content"></div>
</div>
</div>
<!-- Messages Area -->
<div id="msg-container"> </div>
<!-- JS files -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="countries.js"></script>
<script src="main.js"></script>
</body>
</html>