Skip to content

Instantly share code, notes, and snippets.

@m4olivei
Last active August 29, 2015 14:16
Show Gist options
  • Save m4olivei/9689a05f0ce5ce12ac88 to your computer and use it in GitHub Desktop.
Save m4olivei/9689a05f0ce5ce12ac88 to your computer and use it in GitHub Desktop.
(function($) {
/**
* TVE Player wrapper behavior. Kick off the player in the page.
*/
Drupal.behaviors.sharedTVEPlayerWrapper = {
attach: function(context, settings) {
// We kinda need the following in order to continue.
if (!tve || !tve.adobePass) {
return;
}
tve.adobePass.subscribe(tve.adobePass.events.AUTHN_CHECKED, function() {
console.log('HEY THERE!!! adobePass.events.AUTHN_CHECKED JUST HAPPENED!');
console.log(arguments);
});
}
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment