Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- (function (w, d)
- {
- function aweLoadCreativeIframe() {
- var getContainer = function()
- {
- var container = d.querySelector('div[data-awe-container-id="156083"]');
- if (!container)
- {
- console.warn('Promotool container not found');
- return container;
- }
- container.removeAttribute('data-awe-container-id');
- return container;
- };
- var container = getContainer();
- if (container)
- {
- var iframeElement = d.createElement('iframe');
- iframeElement.src = '//pt.protoawe.com/live-feed/chat?ms_rnd=1576074282.67066&pstool=320_1&c=object_container&site=jasmin&cobrandId=&psid=BMWGuy&psprogram=revs&campaign_id=&forcedPerformers%5B0%5D=&vp%5BshowChat%5D=true&vp%5BchatAutoHide%5D=false&vp%5BshowCallToAction%5D=true&vp%5BshowPerformerName%5D=false&vp%5BshowPerformerStatus%5D=false&ctaLabelKey=udmn&landingTarget=signup&filters=&subAffId=%7BSUBAFFID%7D&categoryName=girl&origin=&embedTool=1%27';
- iframeElement.style.width = '100%';
- iframeElement.style.height = '100%';
- iframeElement.frameBorder = 0;
- iframeElement.setAttribute("allowfullscreen", "true");
- container.appendChild(iframeElement);
- }
- }
- function afterContentLoad(resolve) {
- if(document.readyState === "complete" || document.readyState === "interactive") {
- resolve();
- } else {
- document.addEventListener("DOMContentLoaded", function onLoad() {
- document.removeEventListener("DOMContentLoaded", onLoad);
- resolve();
- });
- }
- }
- afterContentLoad(aweLoadCreativeIframe);
- }(window, document));
- }
- catch(exception)
- {
- console.warn('Promotool error: ' + exception.message);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement