Uh oh!
There was an error while loading. Please reload this page.
DOM tree - #264
Conversation
javascript-translate-bot
commented
Jun 20, 2020
Please make the requested changes. After it, add a comment "/done". |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
EzequielCaste
commented
Jun 20, 2020
@cortizg estoy revisando... |
Uh oh!
There was an error while loading. Please reload this page.
EzequielCaste
commented
Jun 20, 2020
digo para no hacer 2 revisiones a la vez |
Uh oh!
There was an error while loading. Please reload this page.
| 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 |
There was a problem hiding this comment.
| 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
| - `offsetWidth` -- the node width (in pixels) | ||
| - ...and so on. | ||
| - `innerHTML` -- contenido HTML del nodo. | ||
| - `offsetWidth` -- anchura del nodo (en píxeles). |
There was a problem hiding this comment.
| -`offsetWidth` -- anchura del nodo (en píxeles). | |
| -`offsetWidth` -- ancho del nodo (en píxeles). |
| ## Un ejemplo del DOM | ||
| Let's start with the following simple document: | ||
| Comencemos con un documento sencillo, descrito a continuación: |
There was a problem hiding this comment.
| Comencemos con un documento sencillo, descrito a continuación: | |
| Comencemos con el siguiente documento simple: |
| Comencemos con un documento sencillo, descrito a continuación: | ||
| ```html run no-beautify | ||
| ```ejecución html sin formatear |
There was a problem hiding this comment.
| ```ejecuciónhtml sin formatear | |
| ```htmlrun no-beautify |
éste código no se debe traducir, es código interno
| ```online | ||
| On the picture above, you can click on element nodes and their children will open/collapse. | ||
| ```conectado |
There was a problem hiding this comment.
| ```conectado | |
| ```online |
| 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. |
There was a problem hiding this comment.
| 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. |
| ## 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. |
There was a problem hiding this comment.
| 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. |
|  | ||
| 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. |
There was a problem hiding this comment.
| 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. |
| 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". |
There was a problem hiding this comment.
| 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". |
There was a problem hiding this comment.
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"
| 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). |
There was a problem hiding this comment.
| -**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
commented
Jun 20, 2020
Please make the requested changes. After it, add a comment "/done". |
cortizg
left a comment
There was a problem hiding this comment.
hay comentario y cambios necesarios
javascript-translate-bot
commented
Jun 20, 2020
Please make the requested changes. After it, add a comment "/done". |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| <!-- comment --> | ||
| <!-- comentario --> | ||
| */!* | ||
| <li>...and cunning animal!</li> |
There was a problem hiding this comment.
| <li>...and cunning animal!</li> | |
| <li>...y el astuto animal!</li> |
javascript-translate-bot
commented
Jun 20, 2020
Please make the requested changes. After it, add a comment "/done". |
Uh oh!
There was an error while loading. Please reload this page.
javascript-translate-bot
commented
Jun 20, 2020
Please make the requested changes. After it, add a comment "/done". |
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>
Co-authored-by: Carlos Ortiz Gutiérrez <56600925+cortizg@users.noreply.github.com>
EzequielCaste
left a comment
There was a problem hiding this comment.
necesito una segunda opinión
javascript-translate-bot
commented
Jun 20, 2020
Please make the requested changes. After it, add a comment "/done". |
cortizg
commented
Jun 20, 2020
/done |
vplentinax
commented
Jun 24, 2020
Una vez vean aceptados los cambios, por favor denle a "aprobar" para así poder hacer merge |
vplentinax
commented
Jun 24, 2020
/done |
javascript-translate-bot
commented
Jun 24, 2020
Thank you 💖 I updated the Progress Issue #17 🎉 🎉 🎉 |
Listo la traducción de los archivos contenidos en la carpeta asignada