var getPoss = function() {
if (window.country_code) return !(country_code === 'IN' || country_code === 'PK')
return true;
}
var skipTo = hommy.qs.autoplay || seekIsActive;
if (skipTo) {
window.videoadvertising2 = {}
}
var playerContainer = document.querySelector('.left > div');
hommy('preroll', {
//idzone: 3989190,
adbEn: true,
skipYTVpaid: hommy.qs.promo === '31134' || hommy.isPCO || (hommy.isBravo && getPoss()),
afterLoad: function() {
//typeof window.x_8sW === 'function' && x_8sW();
},
playerNode: '.left > div',
player: {
width: playerContainer.offsetWidth,
height: playerContainer.offsetHeight
},
afterLoad: function(data, loader) {
loader.setPlayerEvents('jw', pl3748);
},
//skipoffset: adver.isPCO ? 10 : 5,
forceSkip: skipTo
});
%% video.title %% %% $utils.parseDate(video.post_date) %%
if (hommy.ua.is === 'mobile') {
[].forEach.call(document.querySelectorAll('.iRx9'), function(el) {el.remove()})
} else {
hommy('invideo', {
div: '#in_v',
force: true
})
}
×
Advertisement
|
hommy('underplayer', {
div: '#und_ban',
force: true
})
/*
Move into right spot
*/
/* if (hommy.ua.is !== 'mobile' && hommy.isBravo) {
var exsldr = document.createElement('script');
exsldr.onload = function() {
if (!sessionStorage.getItem('tc_showslider')) {
ExoVideoSlider.init({
"idzone": 4112270,
"frequency_period": 0,
"close_after": 0,
"sound_enabled": 0,
"on_complete": "hide",
"branding_enabled": 0,
"sub": hommy.sub
});
sessionStorage.setItem('tc_showslider', 1);
}
};
exsldr.src = 'https://a.exosrv.com/video-slider.js';
document.body.appendChild(exsldr);
} */
if (hommy.ua.is !== 'mobile' && hommy.isBravo) {
if (document.referrer !== location.href && hommy.cookie.get('ts_video_instant_message') == 1) document.cookie = 'ts_video_instant_message=1;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT';
var tssldr = document.createElement('script');
tssldr.onload = function() {
TSVideoInstantMessage({
spot: "747e5f2e967343c2a4ab06871d500c4e",
width: "460",
cookieExpires: "4",
subid: hommy.sub
});
document.cookie = 'ts_video_instant_message=1;path=/';
}
tssldr.src = 'https://cdn.tsyndicate.com/sdk/v1/video.instant.message.js';
document.body.appendChild(tssldr);
}
Advertisement
%% video.title %% %% $utils.parseDate(video.post_date) %%
%% $utils.reduceNum(video.statistics.likes) %%
%% $utils.reduceNum(video.statistics.dislikes) %%
%% $utils.reduceNum(video.statistics.viewed) %%
%% $t('page.video.share') %%
%% $t('page.video.add_to') %%
%% $t('page.video.report') %%
%% video.description %%
%% show_description ? $t('page.video.hide') : $t('page.video.show_more') %%
hommy('ntv_a', {
div: '#ntv_a',
force: true
})
hommy('ntv_b', {
div: '#ntv_b',
force: true
})
hommy('ntv_c', {
div: '#ntv_c',
force: true
})
var noTricks = hommy.ua.browser.name === 'IE' ||
hommy.ua.browser.name === 'Firefox' ||
hommy.ua.browser.name === 'Safari';
var skipPop = false/* (hommy.ua.is === 'mobile' && hommy.isPCO) */;
var isIOS = (/iPad|iPhone|iPod/.test(navigator.platform) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && !window.MSStream;
if (isIOS) hommy.ua.isMobile = true;
if (!skipPop && !mz) {
var bindSel = ['.jwplayer', '.item-video'];
var ignSel = [
'.nopop',
'#und_ban',
'#ntv_a',
'#ntv_b',
'#ntv_c',
'#iv_1',
'.__nat_item'
];
if (hommy.ua.isChrome || hommy.isPCO || seekIsActive) {
ignSel = ignSel.concat([
'.jwplayer',
'.jw-svg-icon',
'.jw-icon',
'.jw-icon-inline',
'.oImef',
'.jw-slider-container',
'.int_hsSJlay',
'.jw-skip',
'.jw-controls',
'.jw-controlbar'
]);
}
hommy.videoAutoplayed = false;
var autoplayAfterPop = hommy.localStore.get('atppop') === '1';
if (autoplayAfterPop) {
hommy.videoAutoplayed = true;
hommy.localStore.add('atppop', 0);
var waitPlayer = setInterval(function () {
if (window.pl3748) {
setTimeout(function () { // If it works don't touch
pl3748.setVolume(0);
pl3748.play(true);
}, 1500);
clearInterval(waitPlayer)
}
}, 500);
}
if (hommy.isCWL && !hommy.isPCO && !(hommy.qs.promo === '31134' && hommy.ua.is === 'mobile') && !seekIsActive) {
bindSel = ['.jw-display-controls', '.int_hsSJlay', '.item-video']
ignSel = [];
}
if ((hommy.qs.promo === '31134' || hommy.isPCO) && hommy.ua.is === 'mobile') {
bindSel = ['.item-video'];
ignSel = [];
}
hommy('popunder', {
interstitial: true,
proceedSSPResponse: function(resp) {
if (!resp) return true;
if (!resp.interstitial && !hommy.qs.postest) return true;
hommy.postitial.run({
frameSrc: resp.url,
countClicks: 1,
scrolling: true,
bindTo: bindSel,
ignoreTo: ignSel,
cookieExpires: 240,
shouldFire: function() {
if (hommy.qs.promo === '31134' || hommy.isBravo || hommy.isPCO || hommy.isComWeb || hommy.isMTC) return false;
return true;
}
});
return false;
},
config: {
bindTo: bindSel,
ignoreTo: ignSel,
mode: {
newTab: true /* adver.isBravo || adver.ua.isMobile || ((adver.ua.isChrome || adver.isChrome) && adver.isPCO) || (location.search.indexOf('promo=10268') !== -1 && !noTricks) */,
under: true
},
limit: { maxHits: (hommy.qs.promo === '31134' || hommy.isBravo || hommy.isPCO || hommy.isMTC) ? 1 : 999999, perTime: 1440 }
},
popOpts: { nextHitTime: 3 },
shouldFire: function (element, opts) {
if ((hommy.isBravo || hommy.qs.promo === '31134') && !!document.referrer && document.referrer.indexOf(location.origin) !== 0 && element && (element.className.indexOf('jw-icon') > -1 || element.className.indexOf('jw-icon-display') > -1)) hommy.localStore.add('atppop', 1);
return true;
},
fuckGhostery: !!document.getElementById('ghostery-tracker-tally'),
safePops: hommy.qs.promo === '31134',
resetAll: (hommy.isCWL && document.referrer && !(document.referrer.indexOf(location.origin) === 0)) ||
document.referrer.indexOf('promo=') !== -1 && location.href.indexOf('fr=') !== -1
});
}
if (mz) {
var mzIgnore = hommy.ua.is === 'desktop' && !isIOS ? [
'.jw-controlbar',
'.poper',
'a[target=_blank]',
'form',
'input',
'.footer-row'
] : [
'.jwplayer',
'.jw-svg-icon',
'.jw-icon',
'.jw-icon-inline',
'.oImef',
'.jw-slider-container',
'.int_hsSJlay',
'.jw-skip',
'.jw-controls',
'.jw-controlbar',
'#int_hsSJ',
'.header__container',
'form',
'input',
'a[target=_blank]',
'.poper',
'#blm-block_wrapper',
'.banner',
'.filter',
'.underplayer__controllers',
'.pagination',
'.mobile-dropdown__link',
'.subscribe',
'.toggle-button'
];
hommy('popunder', {
popOpts: {
bindTo: ['*'],
ignoreTo: mzIgnore,
mode: {
newTab: hommy.ua.is !== 'desktop' || isIOS,
under: true
},
perpage: 999999,
nextHitTime: 0.001
},
beforeOpen: function() {
TCPop.reset();
}
});
if (hommy.ua.is !== 'desktop' || isIOS) {
hommy('popunder', {
popOpts: {
storeName: 'mz-player-mobile',
bindTo: [
'.jwplayer',
'.jw-svg-icon',
'.jw-icon',
'.jw-icon-inline',
'.jw-reset',
'.oImef',
'.jw-slider-container',
'.int_hsSJlay',
'.jw-skip',
'.jw-controls',
'.jw-controlbar',
'#int_hsSJ'
],
ignoreTo: [],
mode: {
newTab: true,
under: true
},
nextHitTime: 10
}
});
}
}