This commit is contained in:
Marcos Lopez
2024-01-22 13:46:08 +01:00
parent f49cedd764
commit ad40171fb4
12 changed files with 863 additions and 3 deletions

View File

@@ -0,0 +1,44 @@
<!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>
</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> <br>
<label for="gc">Grados Centigrados</label><input type="number" name="gc" id="gc" onkeyup="convertGC()"> <br>
<label for="gf">Fahrenheit</label><input type="number" name="gf" id="gf" onkeyup="convertGF()"> <br>
<label for="gk">Kelvin</label><input type="number" name="gk" id="gk" onkeyup="convertGK()"> <br>
</body>
</html>