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
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
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;