-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (102 loc) · 4.51 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Casa de cambio | Cambollar</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="sticky-top">
<nav class="navbar navbar-expand-lg bg-secondary ">
<div class="container-xxl">
<a class="navbar-brand text-info fw-semibold" href="#">
<i class="fa-solid fa-dollar-sign"></i>
Cambollar
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link text-white active" aria-current="page" href="#">Conversor de Moneda</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#change-list">Tabla de Cambios</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container-xxl my-4">
<h1 class="text-center">Conversor de Moneda</h1>
<form class="d-flex flex-column justify-content-center" id="form">
<div class="row my-4 justify-content-center gap-2">
<div class="col-12 col-sm-6 col-md">
<label class="fw-semibold" for="quantity">Cantidad</label>
<input name="quantity" type="number" id="quantity" min="1"
class="w-100 h-50 py-1 px-2 rounded-2 border-0 bg-primary bg-opacity-10">
</div>
<div class="col-12 col-sm-6 col-md">
<label class="fw-semibold" for="from-currency">Desde la divisa</label>
<select name="from-currency" id="from-currency"
class="w-100 h-50 py-1 px-2 rounded-2 border-0 bg-primary bg-opacity-10">
</select>
</div>
<button class="btn btn-dark button-change col-8 col-sm-6 col-md-1 align-self-end" id="button-change"
type="button"><i class="fa-solid fa-rotate"></i></button>
<div class="col-12 col-sm-6 col-md">
<label class="fw-semibold" for="to-currency">A la divisa</label>
<select name="to-currency" id="to-currency"
class="w-100 h-50 py-1 px-2 rounded-2 border-0 bg-primary bg-opacity-10">
</select>
</div>
<div class="col-12 col-sm-6 col-md">
<label class="fw-semibold" for="date">En la fecha (opcional)</label>
<input type="date" name="date" id="date" min="2011-01-01"
class="w-100 h-50 py-1 px-2 rounded-2 border-0 bg-primary bg-opacity-10">
</div>
</div>
<button class="btn btn-success fw-semibold align-self-center" type="submit" id="submit-form">Obtener
cambio</button>
</form>
<div class="container-xxl my-4">
<div class="d-flex flex-column justify-content-center align-items-center">
<span id="selected-date"></span>
<span id="selected-change"></span>
</div>
</div>
</main>
<section class="container-xxl my-4">
<h2 id="change-list" class="text-center">Tabla de Cambios</h2>
<h4 class="text-center fw-normal">Moneda seleccionada: <span class="fw-semibold" id="selected-currency"></span>
</h4>
<span id="change-list-date"></span>
<div class="overflow-auto max-height">
<table class="table">
<thead>
<tr>
<th scope="col">Moneda</th>
<th scope="col">Cambio</th>
</tr>
</thead>
<tbody id="table-body">
</tbody>
</table>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
<script src="./src/index.js" type="module"></script>
</body>
</html>