Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- adoric && adoric.on('lightbox:after:show', function (event) {
- console.log('Current campaign ID - ', event.lightbox.options.campaignId);
- console.log('Current campaign Title - ', event.lightbox.options.campaignTitle);
- console.log('Current variation Title - ', event.lightbox.options.title);
- if (event.lightbox.options.campaignId === self.campaignId) {
- /*do some for specific campaign*/
- }
- });
- })();
- /* Adoric on listenner example + available events:
- 'versionSelectedBasedOnEventConditions',
- 'animateCss:before:load',
- 'animateCss:after:load',
- 'location:before:detect',
- 'location:after:detect',
- 'lightbox:empltyLb',
- 'version:selected',
- 'lightbox:before:init',
- 'lightbox:init:error',
- 'lightbox:after:init',
- 'lightboxes:no:load',
- 'lightboxes:before:load',
- 'lightboxes:after:load',
- 'info:ready',
- 'fonts:before:load',
- 'fonts:after:load',
- 'link:before:click',
- 'link:after:click',
- 'form:before:submit',
- 'form:after:submit',
- 'lightbox:before:show',
- 'lightbox:after:show',
- 'lightbox:before:close',
- 'lightbox:after:close',
- 'lightbox:after:click',
- 'lightbox:before:click',
- 'setDynamicLink',
- 'setDynamicVars',
- 'setConfig',
- 'clearAllowedShow',
- 'event:before:trigger',
- 'event:after:trigger',
- */
Advertisement
Add Comment
Please, Sign In to add comment