Last active
July 3, 2021 07:22
-
-
Save katio/2e793b796ea514b73d57451e42c85f9e to your computer and use it in GitHub Desktop.
Código de video número 23 de la serie Programación desde cero. JavaScript: Camel case y ubicación de etiqueta script: https://www.youtube.com/watch?v=V55HUglWr5k&list=PLZCwI0BeUWWK9xfJY9bO36_DG4QtXJX0o&index=23 https://twitter.com/abrupto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<style> | |
body { | |
color: green; | |
font-family: arial; | |
} | |
#dado { | |
font-size: 85px; | |
} | |
img { | |
display:block; | |
} | |
button { | |
margin: 10px; | |
padding: 10px; | |
background-color: green; | |
color: white; | |
cursor: pointer; | |
} | |
</style> | |
<h1>Dado</h1> | |
<img src="https://i.imgur.com/AYxOJot.png" alt="Trébol de 4 hojas"> | |
<button id="boton">Lanzar dado</button> | |
<div id="dado"></div> | |
<script> | |
function generarNumeroDado(){ | |
return Math.floor(Math.random() * 6) + 1; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment