Spaces:
Runtime error
Runtime error
Download app/main.js from chartManD/debian-perritos: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/chartManD/debian-perritos/resolve/main/app/main.js
- Command line
-
hf download hf://spaces/chartManD/debian-perritos/app/main.js
-
curl -L -o main.js https://huggingface.co/spaces/chartManD/debian-perritos/resolve/main/app/main.js
395 Bytes
| let contenedorNumero = document.getElementById("numero"); | |
| let numeroString = contenedorNumero.textContent; | |
| let numeroActual = parseInt(numeroString); | |
| function aumentar() { | |
| numeroActual++; | |
| mostrarNumero(); | |
| } | |
| function disminuir() { | |
| if (numeroActual == 0) { | |
| return; | |
| } | |
| numeroActual--; | |
| mostrarNumero(); | |
| } | |
| function mostrarNumero() { | |
| contenedorNumero.textContent = numeroActual; | |
| } | |