[ad_1]
Hi,
I’m using your button shortcode to give points for downloads or video views. I setup it with specific classes like ‘deck-download’ or ‘ps23-video-1’ then I trigger those with javascript function with might be attached to different elements on the page using thisdocument.querySelector('.deck-download').click();
or for videos:
document.querySelectorAll('.ps23-video').forEach((video, index) => video.onplay = function(){ pageVideosPlayed[index] ? console.log(video ${index} played already) : document.querySelector(.ps23-video-${index}).click(); }) })
This approach seemed to work perfectly fine till now… when above causes instant page reload when any video is played.
Any suggestions?
