IFCD0210/Practicas/Practicas JS/DOM 6 Version 2/index.html
Marcos Lopez a32d41503d Dia 35
2024-01-25 13:45:32 +01:00

65 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./js/main.js" defer></script>
<title>Document</title>
<style>
label{
display: inline-block;
width: 12rem;
}
</style>
</head>
<body>
<div style="display: flex; flex-direction: column; max-width: max-content; gap: 10px;">
<!-- <div style="display: flex; flex-direction: row; gap: 4px;">
<label for="nDias">Introduzca número de dias</label>
<input type="text" name="nDias" id="nDias" required>
</div> -->
<div style="display: flex; gap: 2px;">
<label for="destino">Seleccione destino</label>
<select name="destino" id="destino" required>
<option value=500 selected>Europa</option>
<option value=1000>Asia</option>
<option value=1200>Africa</option>
</select>
</div>
<div>
<label for="fechaIda">Fecha de ida</label>
<input type="date" name="fechaIda" id="fechaIda" required>
</div>
<div>
<label for="fechaRegreso">Fecha de regreso</label>
<input type="date" name="fechaRegreso" id="fechaRegreso"required>
</div>
<br>
<div style="display: flex; flex-direction: column; gap: 10px;">
<div>
<label for="costeVuelo">Coste vuelo</label>
<input type="text" name="costeVuelo" id="costeVuelo" readonly>
</div>
<div>
<label for="costeHotel">Coste hotel</label>
<input type="text" name="costeHotel" id="costeHotel" readonly>
</div>
<div>
<label for="tasasViaje">Tasas viaje</label>
<input type="text" name="tasasViaje" id="tasasViaje" readonly>
</div>
<div>
<label for="costeAlquilerCoche">Coste alquiler coche</label>
<input type="text" name="costeAlquilerCoche" id="costeAlquilerCoche" readonly>
</div>
<div>
<label for="costeTotal">Coste total</label>
<input type="text" name="costeTotal" id="costeTotal" readonly>
</div>
</div>
<button onclick="calculaTotales()">Calcular coste total</button>
</div>
</body>
</html>