I want to remove inline JS in the following Codepen
I'm sure I don't have to put an event listener on each
<li> (there are 11 here but 78 on the real site).
But how? Do I need to use data attributes? Can I put a listener on the containing div and check which list item was clicked on?