IFCD0210/Practicas/Practicas JS/DOM 03/index.html
Marcos Lopez ad40171fb4 Dia 32
2024-01-22 13:46:08 +01:00

38 lines
1.5 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"></script>
<title>Document</title>
</head>
<body>
<h2>Conversor de monedas</h2>
<div>
<span>Introduce la cantidad en euros</span><input type="number" name="eurosInput" id="eurosInput" value="0">
<button onclick="eurToDolar()">Convertir adolares</button>
<input type="number" name="dolarOutput" id="dolarOutput" value="0">
</div>
<div>
<span>Introduce la cantidad en dolares</span> <input type="number" name="dolarInput" id="dolarInput" value="0">
<button onclick="dolarToEur()">Convertir adolares</button>
<input type="number" name="eurOutput" id="eurOutput" value="0">
</div>
<h2>Calculadora precio IVA</h2>
<span>Introduce el precio sin IVA</span> <input type="number" id="pvpInput"> <br>
<span>Pulsa para resultado</span> <button onclick="pvpIVA()">Precio con Iva</button>
<h3>Escribe la frase</h3>
<label for="nombre">Nombre</label><input type="text" name="nombre" id="nombre"> <br>
<label for="apellidos">Apellido</label><input type="text" name="apellidos" id="apellidos"> <br>
<label for="nacimiento">En que año naciste?</label><input type="number" name="nacimiento" id="nacimiento"> <br>
<label for="ciudad">En que ciudad?</label><input type="text" name="ciudad" id="ciudad"> <br>
<span id="frase"></span>
<button onclick="frase()">Frase</button>
</body>
</html>