minor
This commit is contained in:
parent
a0266c574c
commit
be133e1e65
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ Should work like this:
|
|||
|
||||
[iframe src="solution" height=200 border=1]
|
||||
|
||||
In this task we assume that all elements with `data-tooltip` have only text inside. No nested tags.
|
||||
In this task we assume that all elements with `data-tooltip` have only text inside. No nested tags (yet).
|
||||
|
||||
Details:
|
||||
|
||||
|
@ -33,4 +33,4 @@ Please use event delegation: set up two handlers on `document` to track all "ove
|
|||
|
||||
After the behavior is implemented, even people unfamiliar with JavaScript can add annotated elements.
|
||||
|
||||
P.S. To keep things natural and simple: only one tooltip may show up at a time.
|
||||
P.S. Only one tooltip may show up at a time.
|
||||
|
|
|
@ -182,7 +182,7 @@ The pattern has two parts:
|
|||
|
||||
### Counter
|
||||
|
||||
For instance, here the attribute `data-counter` adds a behavior: "increase on click" to buttons:
|
||||
For instance, here the attribute `data-counter` adds a behavior: "increase value on click" to buttons:
|
||||
|
||||
```html run autorun height=60
|
||||
Counter: <input type="button" value="1" data-counter>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue