'use strict'; if(!DCP3051campaignOpts){ var DCP3051campaignOpts = { saveToLocal: false, // flag to save campaign's index.html to local storage. Default as false. expireDate: '', // is end date of using index.html from local storage, asset will be fetch from S3 and reset local storage value. Default as EMPTY. lifeCycle: 0 * 24 * 60 * 60 * 1000, // alternatively, set life span of local asset once campaign first time loaded to page. Default as 0 day. agentId: 'DCP-3051', // campaign ID. ESSENTIAL!!! author: 'Vito Tang', selector: 'body', // location of campaign will land. ESSENTIAL!!! injectType: 'append', // options are: 'before', 'prepend', 'append', 'after', 'replace'. ESSENTIAL!!! campaignType: 'live', // options are: 'demo', 'live', 'stopped'. Default as 'demo'.ESSENTIAL!!! description: 'Inject bundle and save link to mega menu', message:[ /* example { // 'receiver': 'DCP-addCube', // 'actions':['stop'] } */ ], dependencies:[] }; //load campaign via unified loader var crowdMaxDCP3051 = 5; var crowdFinderDCP3051 = setInterval(function () { if(croWD){ clearInterval(crowdFinderDCP3051); crowdFinderDCP3051 = null; croWD.croWDloaderClient.init(DCP3051campaignOpts); } if(crowdMaxDCP3051 < 0 ){ clearInterval(crowdFinderDCP3051); crowdFinderDCP3051 = null; } crowdMaxDCP3051 --; }, 1000); }