-
Notifications
You must be signed in to change notification settings - Fork 228
Mouse events #290
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
vplentinax
merged 11 commits into
javascript-tutorial:master
from
maksumi:mouse-events-basics
Jul 7, 2020
Merged
Mouse events #290
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6da8070
Update article.md
70d3893
Update article.md
a171e82
Update task.md
4ad8633
Update index.html
579938a
Update index.html
d4f3086
Update index.html
bce4c76
Update 2-ui/3-event-details/1-mouse-events-basics/01-selectable-list/…
aef65d9
Update 2-ui/3-event-details/1-mouse-events-basics/article.md
0b3b888
Update 2-ui/3-event-details/1-mouse-events-basics/article.md
09ce834
Update 2-ui/3-event-details/1-mouse-events-basics/article.md
3432d98
Update 2-ui/3-event-details/1-mouse-events-basics/article.md
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
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
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
16 changes: 8 additions & 8 deletions
16
2-ui/3-event-details/1-mouse-events-basics/01-selectable-list/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,18 +1,18 @@ | ||
importance: 5 | ||
importancia: 5 | ||
|
||
--- | ||
|
||
# Selectable list | ||
# Lista seleccionable | ||
|
||
Create a list where elements are selectable, like in file-managers. | ||
Cree una lista donde los elementos son seleccionables, como en los administradores de archivos. | ||
|
||
- A click on a list element selects only that element (adds the class `.selected`), deselects all others. | ||
- If a click is made with `key:Ctrl` (`key:Cmd` for Mac), then the selection is toggled on the element, but other elements are not modified. | ||
- Un clic en un elemento de la lista selecciona solo ese elemento (agrega la clase `.selected`), deselecciona todos los demás. | ||
- Si se hace un clic con `key:Ctrl` (`key:Cmd` para Mac), la selección se activa junto con el elemento, pero otros elementos no se modifican. | ||
|
||
The demo: | ||
Demo: | ||
|
||
[iframe border="1" src="solution" height=180] | ||
|
||
P.S. For this task we can assume that list items are text-only. No nested tags. | ||
PD: Para esta tarea, podemos suponer que los elementos de la lista son solo de texto. No hay etiquetas anidadas. | ||
|
||
P.P.S. Prevent the native browser selection of the text on clicks. | ||
PPD: Evita la selección nativa del navegador del texto en los clics. |
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.