Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

Cipher - #30

Open
paocmoras wants to merge 34 commits into
Laboratoria:masterfrom
paocmoras:master
Open

Cipher#30
paocmoras wants to merge 34 commits into
Laboratoria:masterfrom
paocmoras:master

Conversation

@paocmoras

Copy link
Copy Markdown

Buenos días, aquí esta mi proyecto "Cipher", tuve muchos inconvenientes con CSS pero después de ver lo de flexbox me quedo un poco mas claro pero no pude solucionar poner mi background completo y la "caja" de la pagina principal se centre verticalmente y tuve que solucionar metiendo saltos de linea, pero la gran duda que tengo es la siguiente, gracias al feedback de Bliss decidí meterle un botón"switch" a base de un checkbox mi pregunta es ¿Se puede meter dos variables en un mismo botón al hacer clic?

Comment thread src/cipher.js Outdated
@@ -1,9 +1,19 @@
window.cipher.encode(offset, string) =>
window.cipher = { //window valor global, cipher es el objeto
encode(string, offset) => { //Codificar, cadena de texto, numero de desplazamiento

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por qué window.cipher?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window porque es una forma global de manejar los eventos y propiedades del dom y cipher solo es el objeto con el que se esta trabajando

Comment thread src/cipher.js Outdated
let wordCipher = ""; //variable para que introduzcan la palabra a descifrar
for ( i = 0; i < string.lenght; i++ ){ //mi ciclo "for" se va a estar ejecutando cada que el usuario introduzca una cadena de texto e ira incrementando
let word = string[i]; //variable que declara que word es igual a una cadena de texto[incrementar]
if (word.match(/[a-z]/i)){//mi variable word solo se va a ejecutar siempre y cuando sea equivalente a solo letras

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Súper buena aportación!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gracias, así "desmenuzandolo" es una manera mas fácil de comprender un poco porque lleva cada cosa

Comment thread src/cipher.js
}
}

}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En general todo muy bien, cuida tu indentación!

Comment thread src/index.html Outdated


<br>
<form method="post" action="index2.html">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trata de encontrar una forma de no utilizar
, se puede arreglar con CSS.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si claro en un momento lo arreglo

@paocmoras

Copy link
Copy Markdown
Author

Muchas gracias es un pequeño avance pero significativo para mí 🖤

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants