Skip to content

DOM tree - #264

Merged
EzequielCaste merged 16 commits into
javascript-tutorial:masterfrom
dev-balza:rama-primera
Jun 24, 2020
Merged

EzequielCaste merged 16 commits into
javascript-tutorial:masterfrom
dev-balza:rama-primera

Conversation

@dev-balza

Copy link
Copy Markdown
Contributor

Listo la traducciΓ³n de los archivos contenidos en la carpeta asignada

@CLAassistant

CLAassistant commented Jun 19, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@vplentinax vplentinax changed the title Rama primera DOM tree Jun 20, 2020
@EzequielCaste
EzequielCaste self-requested a review June 20, 2020 12:34
@javascript-translate-bot

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review πŸ‘»

Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
@EzequielCaste

Copy link
Copy Markdown
Contributor

@cortizg estoy revisando...

Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
@EzequielCaste

Copy link
Copy Markdown
Contributor

digo para no hacer 2 revisiones a la vez

Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved

@EzequielCaste EzequielCaste left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

algunos cambios

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
document.body.style.background = 'red'; // establece un color de fondo rojo

setTimeout(() => document.body.style.background = '', 3000); // return back
setTimeout(() => document.body.style.background = '', 3000); // devoluciΓ³n

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
setTimeout(() => document.body.style.background = '', 3000); // devoluciΓ³n
setTimeout(() => document.body.style.background = '', 3000); // volver atrΓ‘s

en este caso no se trata de una devoluciΓ³n, sino de volver al color original

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
- `offsetWidth` -- the node width (in pixels)
- ...and so on.
- `innerHTML` -- contenido HTML del nodo.
- `offsetWidth` -- anchura del nodo (en pΓ­xeles).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- `offsetWidth` -- anchura del nodo (en pΓ­xeles).
- `offsetWidth` -- ancho del nodo (en pΓ­xeles).

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
## Un ejemplo del DOM

Let's start with the following simple document:
Comencemos con un documento sencillo, descrito a continuaciΓ³n:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Comencemos con un documento sencillo, descrito a continuaciΓ³n:
Comencemos con el siguiente documento simple:

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
Comencemos con un documento sencillo, descrito a continuaciΓ³n:

```html run no-beautify
```ejecuciΓ³n html sin formatear

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
```ejecuciΓ³n html sin formatear
```html run no-beautify

Γ©ste cΓ³digo no se debe traducir, es cΓ³digo interno

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated

```online
On the picture above, you can click on element nodes and their children will open/collapse.
```conectado

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
```conectado
```online

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
1. `document` -- el "punto de entrada" en el DOM.
2. nodos de elementos -- Etiquetas-HTML, los bloques construcciΓ³n del Γ‘rbol.
3. nodos de texto -- contienen texto.
4. comentarios -- a veces podemos colocar ocasiones informaciΓ³n allΓ­, no se mostrarΓ‘, pero JS puede leerla desde el DOM.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
4. comentarios -- a veces podemos colocar ocasiones informaciΓ³n allΓ­, no se mostrarΓ‘, pero JS puede leerla desde el DOM.
4. comentarios -- a veces podemos colocar informaciΓ³n allΓ­, no se mostrarΓ‘, pero JS puede leerla desde el DOM.

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
## VΓ©alo usted mismo

To see the DOM structure in real-time, try [Live DOM Viewer](http://software.hixie.ch/utilities/js/live-dom-viewer/). Just type in the document, and it will show up as a DOM at an instant.
Para ver la estructura del DOM en tiempo real, intente [visor en vivo del DOM](http://software.hixie.ch/utilities/js/live-dom-viewer/). Simplemente escriba el documento, y se mostrarΓ‘ como un DOM al instante.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Para ver la estructura del DOM en tiempo real, intente [visor en vivo del DOM](http://software.hixie.ch/utilities/js/live-dom-viewer/). Simplemente escriba el documento, y se mostrarΓ‘ como un DOM al instante.
Para ver la estructura del DOM en tiempo real, intente [Live DOM Viewer](http://software.hixie.ch/utilities/js/live-dom-viewer/). Simplemente escriba el documento, y se mostrarΓ‘ como un DOM al instante.

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
![](elk.svg)

You can see the DOM, click on elements, see their details and so on.
Puedes mirar el DOM, hacer clic sobre los elementos, ver sus detalles, etc.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Puedes mirar el DOM, hacer clic sobre los elementos, ver sus detalles, etc.
Puedes ver el DOM, hacer clic sobre los elementos, ver sus detalles, etc.

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
Hacer clic en el botΓ³n <span class="devtools" style="background-position:-328px -124px"></span> ubicado en la esquina superior izquierda nos permite elegir un nodo desde la pΓ‘gina web utilizando un "mouse" (u otros dispositivos de puntero) e "inspeccionar" (desplazarse hasta Γ©l en la pestaΓ±a elementos). Esto funciona muy bien cuando tenemmos una pΓ‘gina HTML enorme (y el DOM correspondiente es enorme) y nos gustarΓ­a ver la posiciΓ³n de un elemento en particular.

Another way to do it would be just right-clicking on a webpage and selecting "Inspect" in the context menu.
Otra forma de realizarlo serΓ­a hacer clic derecho en la pΓ‘gina web y en el menΓΊ contextual elegir la opciΓ³n "inspeccionar".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Otra forma de realizarlo serΓ­a hacer clic derecho en la pΓ‘gina web y en el menΓΊ contextual elegir la opciΓ³n "inspeccionar".
Otra forma de realizarlo serΓ­a hacer clic derecho en la pΓ‘gina web y en el menΓΊ contextual elegir la opciΓ³n "Inspeccionar Elemento".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nΓ³tese que la palabra fue escrita con mayΓΊscula en el documento original, denotando que se trata de el nombre oficial o predeterminado en el navegador Chrome. "Inspect" en la versiΓ³n espaΓ±ol el navegador tiene "Inspeccionar Elemento"

Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
En la parte derecha de las herramientos encontramos las siguientes sub-pestaΓ±as:
- **Styles** -- podemos ver CSS aplicado al elemento actual regla por regla, incluidas las reglas integradas (gris). Casi todo puede ser editado en el lugar, incluyendo las dimensiones/mΓ‘rgenes/relleno de la siguiente caja.
- **Computed** -- nos permite ver cada propiedad CSS aplicada al elemento: para cada propiedad podemos ver la regla que la provee (inluida la herencia CSS y demΓ‘s).
- **Event Listeners** -- nos ayuda a ver los escuchadores de eventos adjuntos a elementos del DOM (los cubriremos en la siguiente parte del tutorial).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- **Event Listeners** -- nos ayuda a ver los escuchadores de eventos adjuntos a elementos del DOM (los cubriremos en la siguiente parte del tutorial).
- **Event Listeners** -- nos ayuda a ver los listener de eventos adjuntos a elementos del DOM (los cubriremos en la siguiente parte del tutorial).

Estoy viendo que en MDN estΓ‘n usando listener

@javascript-translate-bot

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review πŸ‘»

@cortizg cortizg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hay comentario y cambios necesarios

@javascript-translate-bot

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review πŸ‘»

@cortizg cortizg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

otras observaciones

Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
Comment thread 2-ui/1-document/02-dom-nodes/article.md Outdated
<!-- comment -->
<!-- comentario -->
*/!*
<li>...and cunning animal!</li>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<li>...and cunning animal!</li>
<li>...y el astuto animal!</li>

@javascript-translate-bot

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review πŸ‘»

@cortizg cortizg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mejor como review

Comment thread 2-ui/1-document/02-dom-nodes/article.md Resolved
@javascript-translate-bot

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review πŸ‘»

Co-authored-by: Carlos Ortiz GutiΓ©rrez <56600925+cortizg@users.noreply.github.com>
EzequielCaste and others added 6 commits June 20, 2020 17:21
Co-authored-by: Carlos Ortiz GutiΓ©rrez <56600925+cortizg@users.noreply.github.com>
Co-authored-by: Carlos Ortiz GutiΓ©rrez <56600925+cortizg@users.noreply.github.com>
Co-authored-by: Carlos Ortiz GutiΓ©rrez <56600925+cortizg@users.noreply.github.com>
Co-authored-by: Carlos Ortiz GutiΓ©rrez <56600925+cortizg@users.noreply.github.com>
Co-authored-by: Carlos Ortiz GutiΓ©rrez <56600925+cortizg@users.noreply.github.com>

@EzequielCaste EzequielCaste left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

necesito una segunda opiniΓ³n

@javascript-translate-bot

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review πŸ‘»

@cortizg

cortizg commented Jun 20, 2020

Copy link
Copy Markdown
Contributor

/done

@vplentinax

Copy link
Copy Markdown
Contributor

Una vez vean aceptados los cambios, por favor denle a "aprobar" para asΓ­ poder hacer merge

@vplentinax

Copy link
Copy Markdown
Contributor

/done

@EzequielCaste EzequielCaste left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok

@EzequielCaste
EzequielCaste merged commit dc48bfc into javascript-tutorial:master Jun 24, 2020
@javascript-translate-bot

Copy link
Copy Markdown

Thank you πŸ’– I updated the Progress Issue #17 πŸŽ‰ πŸŽ‰ πŸŽ‰

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants