GI Present — Outriders Unique, Anthem, Mega Neighborhood Emails

‘).insertBefore(‘.dialog-off-canvas-main-canvas’);

*/

jQuery(”).insertBefore(‘.dialog-off-canvas-main-canvas’);

/*
jQuery(‘

Disguise Advert

‘).insertBefore(‘.dialog-off-canvas-main-canvas’);
*/

attempt
if (parseInt(jQuery(‘.social-share’).css(‘backside’)) == 0)

stuckClass =”stucksocial”;

else
stuckClass =”caught”;

catch(e)

stuckClass =”caught”;

}

operate listenFromBC(evt)

if(evt.information === “advert2046prepared”)

if (!readyFlag)
readyFlag = true;

console.log(‘person shut flag ‘+ userClosedFlag);

if (!userClosedFlag)

console.log(‘init video’);

initVideo(firstRun);

else

if(evt.information === “advert2046reset”)

console.log(evt.information);

readyFlag = false;
firstRun = false;

if(evt.information === “advert2046muted”)

muteFlag = true;

if(evt.information === “advert2046unmuted”)

muteFlag = false;

if(evt.information === “advert2046error”)

jQuery(‘#pulldownad’).take away();
jQuery(‘#pulldownad-clone’).take away();
jQuery(‘#ad-slide-tab’).take away();

operate initVideo(firstrun){

jQuery(‘.expanded-menu-button’).on(‘click on’,operate(){

if (jQuery(‘#ad-slide-tab’).textual content().search(/open/i) > -1) {

if (jQuery(window).scrollTop() 1150? parseInt(1150 * .5625):parseInt(window.innerWidth * .5625);

if (calcHeight > jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50)

calcHeight = jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50;

if (jQuery(window).top() -1)

console.log(‘ship command to pause video’);

jQuery(‘#pulldownad’).discover(‘iframe’)[0].contentWindow.postMessage(“bcPauseAd2046”, “*”);

jQuery(‘#pulldownad’).animate(‘top’:’0′,length: 700);

jQuery(this).textual content(‘Open Commercial’);

userClosedFlag=true;

else

userClosedFlag=false;

var calcHeight = window.innerWidth > 1150? parseInt(1150 * .5625):parseInt(window.innerWidth * .5625);

if (calcHeight > jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50)

calcHeight = jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50;

if (jQuery(window).top() 30 && jQuery(‘#ad-slide-tab’).textual content().search(/shut/i) == -1)

//if (jQuery(‘.top-bar’).css(‘place’) == “relative”)

jQuery(‘.top-bar’).css(‘place’,”);
//

else if (scrollPos 0 && elementFromTop 0)

jQuery(‘#pulldownad-clone’).take away();
jQuery(‘#pulldownad’).removeClass(stuckClass);

jQuery(‘#pulldownad .ad-close-btn’).conceal();

var calcHeight = window.innerWidth > 1150? parseInt(1150 * .5625):parseInt(window.innerWidth * .5625);

if (calcHeight > jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50)

calcHeight = jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50;

if (jQuery(window).top() -1 && userClosedFlag===false && initFlag)

jQuery(‘#pulldownad’).discover(‘iframe’)[0].contentWindow.postMessage(“bcPlayAdClick2046”, “*”);

else if (jQuery(window).top() > jQuery(‘#pulldownad’).top()-scrollPos)

lockFlag = false;

},200);

}
}
});

if (!isMobileDevice())
jQuery(window).on(‘resize’, operate()

attempt
if (parseInt(jQuery(‘.social-share’).css(‘backside’)) == 0)

jQuery(‘#pulldownad’).removeClass(stuckClass);

stuckClass =”stucksocial”;

jQuery(‘#pulldownad’).addClass(stuckClass);

else

jQuery(‘#pulldownad’).removeClass(stuckClass);

stuckClass =”caught”;

jQuery(‘#pulldownad’).addClass(stuckClass);

catch(e)

jQuery(‘#pulldownad’).removeClass(stuckClass);

stuckClass =”caught”;

jQuery(‘#pulldownad’).addClass(stuckClass);

var calcHeight = window.innerWidth > 1150? parseInt(1150 * .5625):parseInt(window.innerWidth * .5625);

if (calcHeight > jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50)

calcHeight = jQuery(window).top()-jQuery(‘#navbar’).outerHeight()-50;

if (jQuery(‘#pulldownad’).hasClass(stuckClass) == false && jQuery(‘#ad-slide-tab’).textual content().search(/shut/i) > -1)

jQuery(‘#pulldownad’).css(‘top’,calcHeight);

if (jQuery(window).top() 10)

window.clearInterval(playTimer);

,200);

else

playTimer = window.setInterval(operate()
attempt
jQuery(‘#pulldownad’).discover(‘iframe’)[0].contentWindow.postMessage(“bcPlayAdFirstRunUnmute2046”, “*”);
catch(e)

playCounter++

if (playCounter > 10)

window.clearInterval(playTimer);

,500);

}

});


Leave a Reply

Your email address will not be published. Required fields are marked *