Event listeners demo
Open up console to see logs. View page source for example code
Click example on multiple li
- Click one
- Click Two
- Click Three
Hover example on multiple li
- Hover one - hover count: 0
- Hover two - hover count: 0
- Hover three - hover count: 0
Hover `{ once: true }` example on multiple li
- hover one - hover count: 0
- hover two - hover count: 0
- hover three - hover count: 0
Click `{ once: true }` example on multiple li
- Click one - click count: 0
- Click two - click count: 0
- Click three - click count: 0
Click `once` EVER via function on multiple li
- Only one of these.
- List items can be clicked
- Click one and then try to click another
Comma separated events - addListener('selector', 'click, mouseover', cb)
- Click once one
- Click once two
- Click once three
Space separated events - addListener('selector', 'click mouseover', cb)
- Click once one
- Click once two
- Click once three
Array syntax events - addListener('selector', ['click', 'mouseover'], cb)
- Click once one
- Click once two
- Click once three
Span one
Span two
Span class one
Span class two
Span class two
Span three
Span four
Throw error