Frederic G. MARAND
|
a5570b3e57
Exercice 5: track mouse down/up on whole surface.
|
9 anni fa |
Frederic G. MARAND
|
b6cdf70a96
Exercise 4: track mouse moves across P elements.
|
9 anni fa |
Frederic G. MARAND
|
70b0ed814a
Exercice 3: use next body class on right arrow.
|
9 anni fa |
Frederic G. MARAND
|
fad4611f1a
Exercise 2: hide/reveal chapters on title click.
|
9 anni fa |
Frederic G. MARAND
|
7e5229bfd9
Exercise 1: toggle "selected" when clicking on Charles Dickens.
|
9 anni fa |
Frederic G. MARAND
|
4351af518a
Listing 3.26: general refactoring to reduce redundancy and get a single handler.
|
9 anni fa |
Frederic G. MARAND
|
ef560e2023
Listing 3.25: bubbling keyup.
|
9 anni fa |
Frederic G. MARAND
|
3fddcf9ea9
Listing 3.24: trigger() alias/shortcuts.
|
9 anni fa |
Frederic G. MARAND
|
e70c4f73a6
Listing 3.23: simulating click with trigger().
|
9 anni fa |
Frederic G. MARAND
|
0651b2b3ff
Listing 3.22: selecting handler unbiding.
|
9 anni fa |
Frederic G. MARAND
|
097e1bc7f2
Listing 3.21: event rebinding.
|
9 anni fa |
Frederic G. MARAND
|
0aeb73e7a6
Listing 3.20: event handler as a variable.
|
9 anni fa |
Frederic G. MARAND
|
ed3bebd080
Listing 3.19: event handler namespacing.
|
9 anni fa |
Frederic G. MARAND
|
af79817a7b
Listing 3.18: removing an event handler.
|
9 anni fa |
Frederic G. MARAND
|
95dab092a3
Listing 3.17: use on() for delegation.
|
9 anni fa |
Frederic G. MARAND
|
6cb229817f
Listing 3.16: single click handler.
|
9 anni fa |
Frederic G. MARAND
|
3564fb0289
Listing 3.15: working with factored button handling.
|
9 anni fa |
Frederic G. MARAND
|
a42e85005b
Listing 3.14: factor button click handling.
|
9 anni fa |
Frederic G. MARAND
|
4f8ba61458
Listing 3.13: Stop propagation.
|
9 anni fa |
Frederic G. MARAND
|
c489dab013
Listing 3.12: targeting this.
|
9 anni fa |
Frederic G. MARAND
|
6765350ff3
Listing 3.11: unwanted bubbling.
|
9 anni fa |
Frederic G. MARAND
|
476d72ed5c
Listing 3.10: hover() method.
|
9 anni fa |
Frederic G. MARAND
|
630a857ee2
Listing 3.8: toggleClass() method.
|
9 anni fa |
Frederic G. MARAND
|
79837528e2
Listing 3.8: click() instead of on('click').
|
9 anni fa |
Frederic G. MARAND
|
c88d47a91e
Listing 3.7: completely remove discrete handlers.
|
9 anni fa |
Frederic G. MARAND
|
3d1c68ac46
Listing 3.6: refactor more actions to the generic handler.
|
9 anni fa |
Frederic G. MARAND
|
541189e8e8
Listing 3.4: generic "selected" handling.
|
9 anni fa |
Frederic G. MARAND
|
a0b041e893
Listing 3.3: "selected" indicator.
|
9 anni fa |
Frederic G. MARAND
|
253f5b35a2
Listing 3.2: simple on() on discrete events. Includes timing.
|
9 anni fa |