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
flex-flow: column-reverse wrap-reverse; | |
align-content: space-between; | |
justify-content: center; |
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
.tower-group-1 { | |
display: flex; | |
flex-direction: row; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.tower-1-1 { | |
align-self: flex-start; | |
} | |
.tower-1-3 { |
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
// Returns a random integer from 0 to 9: | |
Math.floor(Math.random() * 10); | |
// Returns a random integer from 0 to 10: | |
Math.floor(Math.random() * 11); | |
// Returns a random integer from 0 to 99: | |
Math.floor(Math.random() * 100); | |
// Returns a random integer from 0 to 100: |
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
function zero(param) { return (!param) ? 0 : param(0); } // param = plus / minus ... | |
function one(param) { return (!param) ? 1 : param(1); } | |
function two(param) { return (!param) ? 2 : param(2); } | |
function three(param) { return (!param) ? 3 : param(3); } | |
function four(param) { return (!param) ? 4 : param(4); } | |
function five(param) { return (!param) ? 5 : param(5); } | |
function six(param) { return (!param) ? 6 : param(6); } | |
function seven(param) { return (!param) ? 7 : param(7); } | |
function eight(param) { return (!param) ? 8 : param(8); } | |
function nine(param) { return (!param) ? 9 : param(9); } |
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
/* | |
https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Math/floor | |
Math.floor() Devuelve el máximo entero menor o igual a un número. Es decir: 0,1 = 0; 1.6 = 1; | |
Es decir, devuelve solo la parte entera del número (o sea, sin decimales) | |
Operador % | |
https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Operators/Remainder | |
El operador resto (%) devuelve el resto de la división entre dos operandos. | |
*/ |