Don't understand y this code doesn't work... | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Don't understand y this code doesn't work...

I have an event listener('click'). When I click on the element, it doesn't work. (Js starts Line 14.) I spent hours and hours switching things and experimenting to figure out the problem, It makes no sense y it Isn't working. https://code.sololearn.com/W47IQML5u7ri/?ref=app

11th Aug 2019, 6:40 PM
Ginfio
Ginfio - avatar
3 Respostas
+ 2
Ginfio , without showing your code it's hard to guess.
11th Aug 2019, 6:43 PM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar
+ 2
Your event listener wonā€˜t trigger, because of the overlaying ā€žbubblesā€œ div-container. If you set the z-index value of ā€žbubblesā€œ to -1, the click-event works fine.
11th Aug 2019, 7:47 PM
Michael
Michael - avatar
0
TheWhĀ”teCat Ya, i just forgot to do that, if u reload, you'll see the code.
11th Aug 2019, 6:45 PM
Ginfio
Ginfio - avatar