Javascript other text in each box

Javascript other text in each box
0

#1

Hello,

Iam new to javascript and i want to use this code example: http://codepen.io/mariusbalaj/pen/beALH
Each popup box must contain other data / text? How to fix this?

Thanks in advance,
Rob


#2

there are many ways to do this.
One is to add custom attribute to each li

<li data-content="content for games"><i class="fa fa-gamepad" ></i><span>Games</span></li>

and assign content variable to its value

    var content = this.dataset.content;

#3