-
Hi,
I’m trying to execute a piece of javascript code when the video starts/ends.
The line of code i’d like to execute is the following:jQuery(".learndash_mark_complete_button").click();}, 10000);
I added the code snipet from the programmers guide into my functions file but it doesnt work. Is the following code still working?
add_action('wp_footer', 'my_fv_flowplayer_scripts',999); function my_fv_flowplayer_scripts( $script ) { global $post; if( get_post_meta( $post->ID, 'tweak_player', true ) ) { $args = func_get_args(); $script .= " jQuery('#$args[1]').bind('ready', function() { alert( 'Video just started!' ); }); "; } return $script; }
Kindly advise, thanks.
Regards,