Skip to content

feat: Traduction de la page 'Bubbling and capturing' #576

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 92 additions & 94 deletions 2-ui/2-events/02-bubbling-and-capturing/article.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>

<body>
A click shows both <code>event.target</code> and <code>this</code> to compare:
Un clic affiche les valeurs de <code>event.target</code> et de <code>this</code> pour les comparer:

<form id="form">FORM
<div>DIV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
form.onclick = function(event) {
event.target.style.backgroundColor = 'yellow';

// chrome needs some time to paint yellow
// Le navigateur a besoin d'un peu de temps pour peindre en jaune
setTimeout(() => {
alert("target = " + event.target.tagName + ", this=" + this.tagName);
event.target.style.backgroundColor = ''
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion 2-ui/2-events/02-bubbling-and-capturing/eventflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions 2-ui/2-events/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Introduction to Events
# Introduction aux Evénements

An introduction to browser events, event properties and handling patterns.
Une introduction aux événements du navigateurs, leurs propriétés et leurs modèles de gestion.