Added all missing changes before pushing to remote

This commit is contained in:
raul 2024-02-22 10:21:45 +00:00
parent 5d88c63032
commit 525338788c
5 changed files with 45 additions and 1 deletions

View File

@ -38,6 +38,13 @@ var precioFinalMasIVA = (costeFijo + impuestoPartidos + impuestoApuestas) * IVA;
document.write(`La factura del mes costará ${precioFinal}€!`);
document.write(`<br>La factura del mes incluyendo IVA costará ${precioFinalMasIVA.toFixed(2)}€!`);
document.write("<br>")
document.write(2 + "2")
document.write("<br>")
document.write(2 - "2")
// for (let i = 1; i < 6; i++) {
// document.write(`<br>${i}`)
// }

View File

@ -3,7 +3,7 @@ function main() {
for (let a = 1; a < numAst; a++) {
for (let i = 0; i < a; i++) {
document.writeln(`*`);
document.writeln(`<img src="./google.png" width=250px height=250px>`);
}
document.writeln(`<br>`)

BIN
ejer11/google.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

25
ejer12/12.html Normal file
View File

@ -0,0 +1,25 @@
<html>
<head>
<meta name="" charset="UTF-8" content="">
<style>
* {
text-align: center;
}
</style>
</head>
<body>
<script src="./12.js"></script>
<h1>Repetidor basado en número de letras</h1>
<form>
<!-- <select id="opciones"> -->
<!-- <option value="HOR">Horizontal</option> -->
<!-- <option value="VER">Vertical</option> -->
<!-- </select> -->
<input type="text" id="numeroDeLetras" name="" value="">
<input type="submit" name="" onclick="main()" value="Mostrar">
</form>
</body>
</html>

12
ejer12/12.js Normal file
View File

@ -0,0 +1,12 @@
function main() {
var palabra = document.getElementById('numeroDeLetras').value;
for (let a = 0; a < palabra.length; a++) {
for (let i = 0; i <= a; i++) {
document.writeln(`${palabra[i]}`);
}
document.writeln(`<br>`)
}
}