Skip to content

Instantly share code, notes, and snippets.

@X-Raym
Last active May 31, 2017 09:27
Show Gist options
  • Select an option

  • Save X-Raym/35a9dd2a537e685772e416d29646aa63 to your computer and use it in GitHub Desktop.

Select an option

Save X-Raym/35a9dd2a537e685772e416d29646aa63 to your computer and use it in GitHub Desktop.
WaveSurfer-WP JavaScript functions
var $j = jQuery.noConflict();
$j(document).on(' ready wavesurfer-wp-init wavesurfer-markers-init', function() { //
$j.each(wavesurfer, function(i) {
wavesurfer[i].on('ready', function() { // Change the event if you need to
// YOUR FUNCTION
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment