-
Notifications
You must be signed in to change notification settings - Fork 229
Form properties and methods #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a8373c3
Form elements traducido
f7fdcad
Corregida línea 243: Parámetros
5c50ce2
Fix pueden -> puede 2-ui/4-forms-controls/1-form-elements/article.md
47d4be7
Update 2-ui/4-forms-controls/1-form-elements/article.md
d4242d9
Update 2-ui/4-forms-controls/1-form-elements/article.md
6b6b22e
Merge branch 'master' into kenliten
joaquinelio 9a2f74a
Translated solution.md
746fa76
Translated task.md
ca7814e
Update solution.md
ee2fe5b
Update task.md
338935b
Update solution.md
5fe2e4b
Update task.md
ff3ab4b
Update 2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/solution.md
vplentinax 99e7d5a
Update 2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/task.md
vplentinax da43698
Update 2-ui/3-event-details/4-mouse-drag-and-drop/2-drag-heroes/task.md
vplentinax b0670f7
Update 2-ui/3-event-details/4-mouse-drag-and-drop/2-drag-heroes/task.md
vplentinax e582735
Update 2-ui/3-event-details/4-mouse-drag-and-drop/2-drag-heroes/task.md
vplentinax bcea94e
Update 2-ui/4-forms-controls/1-form-elements/1-add-select-option/task.md
vplentinax 7cebc17
Update 2-ui/4-forms-controls/1-form-elements/article.md
vplentinax ef50315
Update 2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/task.md
vplentinax f49cc00
Update 2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/task.md
vplentinax 7ed125f
Update 2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/task.md
vplentinax File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/solution.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| As we can see from HTML/CSS, the slider is a `<div>` with a colored background, that contains a runner -- another `<div>` with `position:relative`. | ||
| Como podemos ver en el HTML/CSS, la barra de desplazamiento es un `<div>` un fondo de color, que contiene un pasador -- otro `<div>` con `position:relative`. | ||
|
|
||
| To position the runner we use `position:relative`, to provide the coordinates relative to its parent, here it's more convenient here than `position:absolute`. | ||
| Para posicionar el pasador usamos `position:relative`, para proveer las coordenadas relativas a su padre, aquí es más conveniente que `position:absolute`. | ||
|
|
||
| Then we implement horizontal-only Drag'n'Drop with limitation by width. | ||
| En este caso implementamos un Arrastrar y Soltar horizontal limitado por el ancho. | ||
14 changes: 7 additions & 7 deletions
14
2-ui/3-event-details/4-mouse-drag-and-drop/1-slider/task.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| importance: 5 | ||
| importancia: 5 | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
|
|
||
| --- | ||
|
|
||
| # Slider | ||
| # Barra de desplazamiento | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
|
|
||
| Create a slider: | ||
| Crea una barra de desplazamiento: | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
|
|
||
| [iframe src="solution" height=60 border=1] | ||
|
|
||
| Drag the blue thumb with the mouse and move it. | ||
| Arrastra el pasador azul con el ratón y muévelo. | ||
|
|
||
| Important details: | ||
| Detalles importantes: | ||
|
|
||
| - When the mouse button is pressed, during the dragging the mouse may go over or below the slider. The slider will still work (convenient for the user). | ||
| - If the mouse moves very fast to the left or to the right, the thumb should stop exactly at the edge. | ||
| - Cuando el botón del ratón es presionado, durante el arrastrado del ratón, puedes ir arriba o debajo de la barra de desplazamiento. Ésta seguirá funcionando (conveniente para el usuario). | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
| - Si el ratón se mueve muy rápido hacia la izquierda o la derecha, el pasador se detiene exactamente en el borde. | ||
6 changes: 3 additions & 3 deletions
6
2-ui/3-event-details/4-mouse-drag-and-drop/2-drag-heroes/solution.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| To drag the element we can use `position:fixed`, it makes coordinates easier to manage. At the end we should switch it back to `position:absolute` to lay the element into the document. | ||
| Para arrastrar el elemento podemos usar `position:fixed`, esto hace las coordenadas más fáciles de manejar. Al final deberíamos devolverla a `position:absolute` para fijar el elemento en el documento. | ||
|
|
||
| When coordinates are at window top/bottom, we use `window.scrollTo` to scroll it. | ||
| Cuando las coordinadas están en el tope/fondo de la ventana, usamos `window.scrollTo` para desplazarla. | ||
|
|
||
| More details in the code, in comments. | ||
| Más detalles en el código, en los comentarios. |
20 changes: 10 additions & 10 deletions
20
2-ui/3-event-details/4-mouse-drag-and-drop/2-drag-heroes/task.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,20 @@ | ||
| importance: 5 | ||
| importancia: 5 | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
|
|
||
| --- | ||
|
|
||
| # Drag superheroes around the field | ||
| # Arrastrar super héroes por el campo | ||
|
|
||
| This task can help you to check understanding of several aspects of Drag'n'Drop and DOM. | ||
| Esta tarea te puede ayudar a comprobar tu entendimiento de varios aspectos de Arrastrar y Soltar, y del DOM. | ||
|
|
||
| Make all elements with class `draggable` -- draggable. Like a ball in the chapter. | ||
| Hacer que todos los elementos con clase `draggable` -- sean arrastrables. Como la pelota de este capítulo. | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
|
|
||
| Requirements: | ||
| Requerimientos: | ||
|
|
||
| - Use event delegation to track drag start: a single event handler on `document` for `mousedown`. | ||
| - If elements are dragged to top/bottom window edges -- the page scrolls up/down to allow further dragging. | ||
| - There is no horizontal scroll (this makes the task a bit simpler, adding it is easy). | ||
| - Draggable elements or their parts should never leave the window, even after swift mouse moves. | ||
| - Usa delegación de eventos para detectar el inicio del arrastrado: un solo manejador de eventos en el `document` para `mousedown`. | ||
| - Si los elementos son arrastrados a los bordes superior/inferior de la ventana -- la página se desliza hacia arriba/abajo para permitir dicho arrastre. | ||
|
vplentinax marked this conversation as resolved.
Outdated
|
||
| - Sin desplazamiento horizontal (esto hace la tarea un poco más simple, añadirlo es fácil). | ||
| - Los elementos arrastrables o sus partes nunca deben dejar la ventana, incluso después de movimientos rápidos del ratón. | ||
|
|
||
| The demo is too big to fit it here, so here's the link. | ||
| La demostración es demasiado grande para caber aquí, así que aquí está el enlace. | ||
|
|
||
| [demo src="solution"] | ||
2 changes: 1 addition & 1 deletion
2
2-ui/4-forms-controls/1-form-elements/1-add-select-option/solution.md
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| The solution, step by step: | ||
| La solución, paso a paso: | ||
|
|
||
| ```html run | ||
| <select id="genres"> | ||
|
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.