Home Uncategorized
59
0
SHARE

'); }} catch (e) {}} var environmentVars = { slot: document.getElementById(lkqdSettings.playerContainerId), videoSlot: document.getElementById(lkqdSettings.playerId), videoSlotCanAutoPlay: true, lkqdSettings: lkqdSettings };

function onVPAIDLoad() { lkqdVPAID.subscribe(function() { lkqdVPAID.startAd(); }, 'AdLoaded'); }

var vpaidFrame = document.createElement('iframe'); vpaidFrame.id = lkqdSettings.lkqdId; vpaidFrame.name = lkqdSettings.lkqdId; vpaidFrame.style.display = 'none'; var vpaidFrameLoaded = function() { vpaidFrame.contentWindow.addEventListener('lkqdFormatsLoad', function() { lkqdVPAID = vpaidFrame.contentWindow.getVPAIDAd(); onVPAIDLoad(); lkqdVPAID.handshakeVersion('2.0'); lkqdVPAID.initAd(lkqdSettings.playerWidth, lkqdSettings.playerHeight, 'normal', 600, creativeData, environmentVars); }); vpaidLoader = vpaidFrame.contentWindow.document.createElement('script'); vpaidLoader.setAttribute('async','async'); vpaidLoader.src = 'https://ad.lkqd.net/vpaid/formats.js'; vpaidFrame.contentWindow.document.body.appendChild(vpaidLoader); }; vpaidFrame.onload = vpaidFrameLoaded; vpaidFrame.onerror = vpaidFrameLoaded; document.documentElement.appendChild(vpaidFrame); })();

If you have any problems viewing this article, please report it here.