How do I add a class to interactive video links?
I am using the H5P Wordpress plugin and am trying to add a class to all H5P interactive video links.
This is what I have so far:
H5P.jQuery(document).ready(function () { // Listening for interactive video element if(H5P.jQuery('.h5p-interactive-video').length > 0) H5P.jQuery('.h5p-link a').addClass("modal-link"); });
How do I listen for the video to be loaded? My current script can't find the links because they don't exist yet.