(function() {
var c=1;
var x = document.getElementById("Sureview14");
var sureview_logo_container=document.createElement("div");
var vdo = document.createElement("div");
var vi_maindiv = document.createElement("div");
var teads = document.createElement("script");
teads.id="sureview_2";
var third_party = document.createElement("script");
var adipolo = document.createElement("div");
var teads_main_div = document.createElement("div");
var vdo_id="";
var is_active_adipolo=0;
var is_active_teads=0;
var is_active_aniview=0;
var is_active_vdo=0;
var is_active_valueImpression=0;
var ad_displaying=0;
var running_ads=0;
var by_tag_name="";
var placement_salector="";
var no_of_tag="";
var placed_by="";
var priority1="2";
var priority2="1";
var priority3="4";
var refreshIntervalId;
var iframe="iframe";
var is_added_smc_header=0;
var vdo_player;
var teads_player;
var teads_ads_duration=10000;
var vdo_ads_duration=10000;
var setlogo_intval;
var setlogoTeads_intval;
var dailyMotionStyle = document.createElement('style');
dailyMotionStyle.innerHTML="#dailymotion-pip-large-viewport{ --dm--pip-left: 0px;} #dailymotion-pip-large-viewport{ --dm--pip-left: 0; --dm--pip-right: auto; } #dailymotion-pip-small-viewport {--dm--pip-size-width: 200px !important; --dm--pip-size-height: 110px !important;} .dm-player.dm-player-close-show #dailymotion-pip-large-viewport .dm__close-button, .dm-player.dm-player-close-show #dailymotion-pip-small-viewport .dm__close-button { visibility: visible !important;} .dm-player.dm-player-close-show .dm__close-button { visibility: visible !important; } .dm__close-button { position: absolute !important; top: var(--dm-close-top, -28px) !important; right: unset !important; width: var(--dm-close-width, 25px) !important; height: var(--dm-close-height, 25px) !important; background: var(--dm-close-bg, #000) !important; opacity: var(--dm-close-opacity, 0.45) !important; border-radius: 50% !important; padding: var(--dm-close-padding, 7px) !important; border: var(--dm-close-border, 0) !important; cursor: pointer; visibility: hidden; } .dailymotion-player-wrapper#dailymotion-pip-small-viewport .dm__close-button { left: 0px !important; right: unset !important; }";
top.document.getElementsByTagName('head')[0].appendChild(dailyMotionStyle);
var dailyMotionStyle = document.createElement('style');
dailyMotionStyle.innerHTML="#dailymotion-pip-small-viewport, #dailymotion-pip-large-viewport { width: var(--dm--pip-size-width, 410px) !important; left: var(--dm--pip-left, 0) !important; height: var(--dm--pip-size-height, 231px) !important; transition: right .5s ease !important; right: var(--dm--pip-right, initial) !important;} .dailymotion-player-wrapper#dailymotion-pip-small-viewport .dm__close-button { left: 0px !important; right: unset !important; }";
var reduce_size_for_big_screen= document.createElement('style');
reduce_size_for_big_screen.innerHTML="@media screen and (min-width: 640px) {.dm-player { padding-left: 20% !important; padding-right: 20% !important; }} #dailymotion-pip-small-viewport .dailymotion-player, #dailymotion-pip-small-viewport .dm__pip-new-controls{ border-radius: 10px; }";
top.document.getElementsByTagName('head')[0].appendChild(reduce_size_for_big_screen);
placement_salector=0;
setTimeout(function(){
by_tag_name="content-single-news";
placed_by="2";
no_of_tag="0";
var teads_container = document.createElement("div");
var teads_placement=is_avail_selector(by_tag_name,placed_by);
is_active_teads=1;
teads_main_div.className="sureview-content";
teads.type="text/javascript";
teads.className="teads";
teads.async="true";
teads.src="//a.teads.tv/page/129010/tag";
teads_main_div.appendChild(teads);
running_ads=2;
if(teads_placement!=0){
ad_displaying=1;
teads_container.appendChild(teads_main_div);
try {
teads_placement[no_of_tag].appendChild(teads_container);
new_logo(2);
}
catch (exception_var) {
}
}else{
x.appendChild(teads_main_div);
new_logo(2);
}
if(c==1){
}
c++;
var vli_data="5e7cc0de626d835ddbd38b3cd8e1eb5a";
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "//services.vlitag.com/adv1/?q="+vli_data;
s.async = "true";
s.defer = "true";
document.head.appendChild(s);
var s2 = document.createElement("script");
s2.append("var vitag = vitag || {};");
document.head.appendChild(s2);
var s3 = document.createElement("script");
s3.append("vitag = vitag || {}; vitag.smartBannerConfig = vitag.smartBannerConfig || {}; vitag.smartBannerConfig.enablePC = false; vitag.smartBannerConfig.enableMobile = false;");
document.head.appendChild(s3);
var s3 = document.createElement("script");
s3.append("vitag.outStreamConfig= { enablePC: false, enableMobile: false, }");
document.head.appendChild(s3);
by_tag_name="content-single-news";
placed_by="2";
no_of_tag="0";
var daily_motion_ads=document.createElement("div");
daily_motion_ads.className="dm-player sureview-ads";
daily_motion_ads.id="daily_motion_ads_div";
daily_motion_ads.style.cssText="padding-top: 10px; padding-bottom: 10px;";
var script_daily_motion=document.createElement("script");
script_daily_motion.src="https://statics.dmcdn.net/c/dm-ce.min.js";
script_daily_motion.type="text/javascript";
var ani_placement=is_avail_selector(by_tag_name,placed_by);
if(ani_placement!=0){
try{
if(placed_by!="3"){
ani_placement[no_of_tag].appendChild(daily_motion_ads);
ani_placement[no_of_tag].appendChild(script_daily_motion);
}else{
ani_placement.appendChild(daily_motion_ads);
ani_placement.appendChild(script_daily_motion);
}
top.document.getElementById("daily_motion_ads_div").setAttribute("owners", "sureview");
top.document.getElementById("daily_motion_ads_div").setAttribute("sort", "recent");
top.document.getElementById("daily_motion_ads_div").setAttribute("playerId", "x918a");
top.document.getElementById("daily_motion_ads_div").setAttribute("mute", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("loop", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("closeButton", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("hideButton", "false");
top.document.getElementById("daily_motion_ads_div").setAttribute("referrerPolicy", "no-referrer-when-downgrade");
top.document.getElementById("daily_motion_ads_div").setAttribute("playlistId", "x7ib3p");
top.document.getElementById("daily_motion_ads_div").setAttribute("enable_google_policy_ui", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("showAdOnly", "5");
top.document.getElementById("daily_motion_ads_div").setAttribute("mute", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("loop", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("closeButton", "true");
top.document.getElementById("daily_motion_ads_div").setAttribute("hideButton", "false");
top.document.getElementById("daily_motion_ads_div").setAttribute("referrerPolicy", "no-referrer-when-downgrade");
top.document.getElementById("daily_motion_ads_div").setAttribute("playlistId", "x7ib3p");
top.document.getElementById("daily_motion_ads_div").setAttribute("enable_google_policy_ui", "true");
new_logo(9);
}catch (exception_var) {
}
}
var widget_code="PHNjcmlwdCBzcmM9Imh0dHBzOi8vZ2VvLmRhaWx5bW90aW9uLmNvbS9saWJzL3BsYXllci94dHNjdS5qcyI+PC9zY3JpcHQ+DQo8ZGl2IGlkPSJzdXJldmlldy12aWV3LWFkcy0wMDEiIHN0eWxlPSd0ZXh0LWFsaWduOiBjZW50ZXI7IGhlaWdodDogMjAwcHg7Jz4NCiAgICA8c2NyaXB0PiAgICAgIA0KICAgICAgICB2YXIgY2F0ZWdvcnk9ZG9jdW1lbnQucXVlcnlTZWxlY3RvcignbWV0YVtuYW1lPSJjYXRlZ29yeSJdJykuY29udGVudDsNCiAgICAgICAgaWYoY2F0ZWdvcnk9PSIiKXsNCiAgICAgICAgICAgIGNhdGVnb3J5PSJIb3BlIFBhZ2UiOw0KICAgICAgICB9DQogICAgICAgIGNvbm9zbGUubG9nKCJjYXRlZ29yeSIsY2F0ZWdvcnkpOw0KICAgIDwvc2NyaXB0Pg0KICAgICAgICAgICAgPHN0eWxlPg0KICAgICAgICAgICAgICAuZGFpbHltb3Rpb24tcGxheWVyLXdyYXBwZXIgaWZyYW1le21pbi1oZWlnaHQ6dW5zZXQgIWltcG9ydGFudH0NCiAgICAgICAgICAgICAgICAjc3YtcGxheWVyLXRvcC1jb250cm9sc3sNCiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogZmxleDsNCiAgICAgICAgICAgICAgICAgICAgZmxleC13cmFwOiB3cmFwOw0KICAgICAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93Ow0KICAgICAgICAgICAgICAgICAgICBhbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0Ow0KICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgICNzdi1wbGF5ZXItdG9wLWNvbnRyb2xzIGRpdiB7DQogICAgICAgICAgICAgICAgICAgIGhlaWdodDogMjJweDsNCiAgICAgICAgDQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIC5maXhlZEVsZW1lbnQgew0KICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbjpmaXhlZDsNCiAgICAgICAgICAgICAgICAgICAgYm90dG9tOjQ1cHg7DQogICAgICAgICAgICAgICAgICAgIHdpZHRoOjEwMCU7DQogICAgICAgICAgICAgICAgICAgIHotaW5kZXg6IDk5OTk5OTk5OTk5OTk5OTk5Ow0KICAgICAgICAgICAgICAgICAgICBsZWZ0OiAwOw0KICAgICAgICAgICAgICAgICAgICB3aWR0aDoyMTFweCAhaW1wb3J0YW50Ow0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAuc3YtcGxheWVyLWxvZ297DQogICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IGJsYWNrOw0KICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDEwcHg7DQogICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IDVweDsNCiAgICAgICAgICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNXB4IDVweCAwcHggMHB4Ow0KICAgICAgICAgICAgICAgICAgICBib3gtc2l6aW5nOiB1bnNldCAhaW1wb3J0YW50Ow0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAuc3YtcGxheWVyLWNsb3Nlew0KICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibGFjazsNCiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAxMHB4Ow0KICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiA3cHg7DQogICAgICAgICAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDVweCA1cHggMHB4IDBweDsNCiAgICAgICAgICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyOw0KICAgICAgICAgICAgICAgICAgICBib3gtc2l6aW5nOiB1bnNldCAhaW1wb3J0YW50Ow0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIDwvc3R5bGU+DQogICAgICAgICAgICA8ZGl2IGlkPSdkdi1wbGF5ZXItc2l6ZScgc3R5bGU9J3dpZHRoOjMwMHB4ICFpbXBvcnRhbnQ7IGRpc3BsYXk6IGlubGluZS1ibG9jazsnPg0KICAgICAgICAgICAgICAgIDxkaXYgaWQ9InN2LXBsYXllci1tYWluLWNvbnRhaW5lciIgY2xhc3M9IiI+DQogICAgICAgICAgICAgICAgICAgIDxkaXYgaWQ9InN2LXBsYXllci1jb250cm9scy1jb250YWluZXIiPg0KICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBpZD0ic3YtcGxheWVyLXRvcC1jb250cm9scyI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBpZD0ic3VyZXZpZXctbG9nbyIgc3R5bGU9J3RleHQtYWxpZ246IGxlZnQ7IGRpc3BsYXk6bm9uZSAhaW1wb3J0YW50Oyc+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHA6Ly9zdXJldmlldy50di8iIHRhcmdldD0iX2JsYW5rIj48aW1nIGNsYXNzPSJzdi1wbGF5ZXItbG9nbyIgc3JjPSJodHRwczovL2FwcC5zdXJldmlldy50di9sb2dvL3N1cmV2aWV3X2Jhbm5lcl9sb2dvLnN2ZyIgLz48L2E+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBpZD0ic3YtcGxheWVyLWNsb3NlLXBsYXllciIgc3R5bGU9InRleHQtYWxpZ246IGxlZnQ7IiBvbmNsaWNrPSJjbG9zZVBsYXllcigpOyI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbWcgY2xhc3M9InN2LXBsYXllci1jbG9zZSIgc3JjPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQURBQUFBQXdDQVlBQUFCWEF2bUhBQUFBQ1hCSVdYTUFBQXNUQUFBTEV3RUFtcHdZQUFBQklFbEVRVlI0bk8yWjNRNEJNUkJHeTdzTEYwSzQ0QWJ2S0g1dWp6UzdRbGpXdHAzcFNPWTh3UFE3M2Y1TXN5RTRqdU00VWdBVDRBU3NnTEhpdUdOZ0RaeUJhVTZoSXcvMkdoSTA0ZU5ZZDQ0NXhlWlBoY1FsZUE4Zm1lY1VIQUdibDRJSENRbWFzYmJGSjB4REFxbndHaEpJaDVlVVFDdThoSVI2K0pJUzFjS1hrS2dlUGtmQ1RQZ1VDWFBoaDBpWURmK0xoUG53ZDlxd3U0NmdyNzNOemx6NG5pOWhlK1lIU05nUEgvbXc1dDgyOXIrRnR5OUI5Mk9rYXhQYlcwcDhPU28xSDBWSi9ITE9tNVZnd0NWbFRvS0VHOWFNQkJudFFYVUpDdlEyMVNRbzJKaXBTeURRVmFJbElka1NJeTJoMGM4akphSDVHRUZDQWxocWhPL3BweFloRmVDcUZmNkx4Q1drQXN4aWdUZ0xGWDV3TE5xeDAzOXdPSTdqT0tHSEcvSGtDUW95MWhyb0FBQUFBRWxGVGtTdVFtQ0MiIC8+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+DQogICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgaWQ9ImN1c3RvbS1kbS1wbGF5ZXIiPjwvZGl2Pg0KICAgICAgICAgICAgICAgICAgICAgICAgPHNjcmlwdD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcGxheWVyX29iajsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAod2luZG93LmRhaWx5bW90aW9uID09PSB1bmRlZmluZWQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2luZG93LmRhaWx5bW90aW9uID0gew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25TY3JpcHRMb2FkZWQ6ICgpID0+IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYWlseW1vdGlvbg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmNyZWF0ZVBsYXllcignY3VzdG9tLWRtLXBsYXllcicsIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGF5bGlzdDogJ3g3aWIzcCcsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmZXJyZXJQb2xpY3k6ICduby1yZWZlcnJlci13aGVuLWRvd25ncmFkZScsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFyYW1zOiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG11dGU6IHRydWUsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1c3RvbUNvbmZpZzogew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGtleXZhbHVlczoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhdGVnb3J5DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oKHBsYXllcikgPT4gZ2V0UGxheWVyVmlld2FiaWxpdHkocGxheWVyKSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaCgoZSkgPT4gY29uc29sZS5lcnJvcihlKSk7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygiRmlyc3QgSWYiLCB3aW5kb3cuZGFpbHltb3Rpb24pOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYWlseW1vdGlvbg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jcmVhdGVQbGF5ZXIoJ2N1c3RvbS1kbS1wbGF5ZXInLCB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsYXlsaXN0OiAneDdpYjNwJywNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmZXJyZXJQb2xpY3k6ICduby1yZWZlcnJlci13aGVuLWRvd25ncmFkZScsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtczogew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtdXRlOiB0cnVlLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdXN0b21Db25maWc6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXl2YWx1ZXM6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRlZ29yeQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgIDwvc2NyaXB0Pg0KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAgIDwvZGl2Pg0KICAgICAgICA8L2Rpdj4NCg0KICAgICAgICA8c2NyaXB0Pg0KICAgICAgICAgICAgbGV0IGlzU1ZUYWJBY3RpdmUgPSB0cnVlOw0KICAgICAgICAgICAgZnVuY3Rpb24gZ2V0UGxheWVyVmlld2FiaWxpdHkocGxheWVyX29iaikgew0KICAgICAgICAgICAgICAgIHZhciBvZmZzZXRIZWlnaHQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnY3VzdG9tLWRtLXBsYXllcicpLm9mZnNldEhlaWdodDsNCiAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnc3VyZXZpZXctdmlldy1hZHMtMDAxJykuc3R5bGUuaGVpZ2h0ID0gb2Zmc2V0SGVpZ2h0ICsgMzIgKyAncHgnOw0KICAgICAgICAgICAgICAgIHBsYXllcl9vYmouc2V0Vm9sdW1lKDApOw0KICAgICAgICAgICAgICAgIHBsYXllcl9vYmoub24oZGFpbHltb3Rpb24uZXZlbnRzLlBMQVlFUl9WSUVXQUJJTElUWUNIQU5HRSwgKHBsYXllcl9vYmopID0+IHsNCiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coIlJlY2VpdmVkIFBMQVlFUl9TVEFSVCBldmVudC4iLCBwbGF5ZXJfb2JqLnBsYXllcklzVmlld2FibGUpOw0KICAgICAgICAgICAgICAgICAgICBpZiAocGxheWVyX29iai5wbGF5ZXJJc1ZpZXdhYmxlKSB7DQoNCg0KICAgICAgICAgICAgICAgICAgICB9IGVsc2Ugew0KDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgZnVuY3Rpb24gY2xvc2VQbGF5ZXIoKSB7DQogICAgICAgICAgICAgICAgZGFpbHltb3Rpb24uZ2V0UGxheWVyKCkNCiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKChwbGF5ZXIpID0+IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGF5ZXIuZGVzdHJveSgpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdi1wbGF5ZXItY29udHJvbHMtY29udGFpbmVyIikuc3R5bGUuZGlzcGxheSA9ICdub25lJzsNCiAgICAgICAgICAgICAgICAgICAgICAgIH0pDQogICAgICAgICAgICAgICAgICAgICAgICAuY2F0Y2goKGUpID0+IGNvbnNvbGUuZXJyb3IoZSkpOw0KICAgICAgICAgICAgfQ0KDQoNCg0KICAgICAgICA8L3NjcmlwdD4NCg0KICAgICAgICA8c2NyaXB0Pg0KICAgICAgICAgICAgdmFyIGZpcnN0X3RpbWUgPSAwOw0KICAgICAgICAgICAgY29uc3QgZWwgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCcjc3VyZXZpZXctdmlldy1hZHMtMDAxJyk7DQogICAgICAgICAgICBjb25zdCBvYnNlcnZlciA9IG5ldyB3aW5kb3cuSW50ZXJzZWN0aW9uT2JzZXJ2ZXIoKFtlbnRyeV0pID0+IHsNCiAgICAgICAgICAgICAgICBpZiAoZW50cnkuaXNJbnRlcnNlY3RpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInN2LXBsYXllci1tYWluLWNvbnRhaW5lciIpLmNsYXNzTGlzdC5yZW1vdmUoImZpeGVkRWxlbWVudCIpOw0KICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgic3YtcGxheWVyLWNsb3NlLXBsYXllciIpLnN0eWxlLmRpc3BsYXkgPSAnbm9uZSc7DQoNCiAgICAgICAgICAgICAgICAgICAgaWYgKGZpcnN0X3RpbWUgPT09IDApIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGRhaWx5bW90aW9uLmdldFBsYXllcigpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKChwbGF5ZXIpID0+IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsYXllci5zZXRWb2x1bWUoMC4wMDEpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0X3RpbWUgPSAxOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIHJldHVybjsNCiAgICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICBpZiAoZmlyc3RfdGltZSA9PT0gMSkgew0KICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgic3YtcGxheWVyLW1haW4tY29udGFpbmVyIikuY2xhc3NMaXN0LmFkZCgiZml4ZWRFbGVtZW50Iik7DQogICAgICAgICAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdi1wbGF5ZXItY2xvc2UtcGxheWVyIikuc3R5bGUuZGlzcGxheSA9ICdibG9jayc7DQogICAgICAgICAgICB9DQoNCg0KDQogICAgICAgICAgICB9LCB7DQogICAgICAgICAgICAgICAgcm9vdDogbnVsbCwNCiAgICAgICAgICAgICAgICB0aHJlc2hvbGQ6IDAuNQ0KICAgICAgICAgICAgfSk7DQoNCiAgICAgICAgICAgIG9ic2VydmVyLm9ic2VydmUoZWwpOw0KICAgICAgICA8L3NjcmlwdD4NCg0KICAgICAgICA8c2NyaXB0Pg0KDQpkb2N1bWVudC5hZGRFdmVudExpc3RlbmVyKCJ2aXNpYmlsaXR5Y2hhbmdlIiwgKCkgPT4gew0KICAgaWYgKGRvY3VtZW50LmhpZGRlbikgew0KICAgICAgaXNTVlRhYkFjdGl2ZSA9IGZhbHNlOw0KICAgICAgICAgICAgICBpZiAoaXNTVlRhYkFjdGl2ZSA9PT0gZmFsc2UpIHsNCiAgICAgICAgICAgICAgICAgICAgZGFpbHltb3Rpb24uZ2V0UGxheWVyKCkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbigocGxheWVyKSA9PiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsYXllci5wYXVzZSgpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgIH0NCg0KICAgfSBlbHNlIHsNCiAgICAgICANCmlzU1ZUYWJBY3RpdmUgPSB0cnVlOw0KICAgICAgICAgICAgICBpZiAoaXNTVlRhYkFjdGl2ZSA9PT0gdHJ1ZSAmJiBmaXJzdF90aW1lKSB7DQogICAgICAgICAgICAgICAgICAgIGRhaWx5bW90aW9uLmdldFBsYXllcigpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oKHBsYXllcikgPT4gew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGF5ZXIucGxheSgpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgIH0NCn0pOw0KICAgICAgICA8L3NjcmlwdD4=";
var googleBs64Code=widget_code;
top.svJQInj_1 = {};
by_tag_name="adds";
placed_by="2";
no_of_tag="1";
if (!top.window.jQuery) {
var dJqDynamic = document.createElement("script");
dJqDynamic.src = atob("aHR0cHM6Ly9hamF4Lmdvb2dsZWFwaXMuY29tL2FqYXgvbGlicy9qcXVlcnkvMy43LjAvanF1ZXJ5Lm1pbi5qcw==");
top.document.getElementsByTagName("head")[0].append(dJqDynamic);
dJqDynamic.onload = function(){
top.svJQInj_1 = jQuery.noConflict(true);
}
}else{
}
setTimeout(function(){
try{
var s3 = document.createElement("style");
s3.append(".dailymotion-player-wrapper iframe{min-height:unset !important} .teads-player iframe{min-height:unset !important} #gpt-passback { height: 0px !important; width: 0px !important; } .dm-player{ max-height: 350px !important;}");
top.document.head.appendChild(s3);
var s3 = document.createElement("script");
s3.append("vitag = vitag || {}; vitag.outStreamConfig = vitag.outStreamConfig || {}; vitag.outStreamConfig.distanceBottom = 10; vitag.outStreamConfig.position = 'left';");
top.document.body.appendChild(s3);
}catch{
}
if(document.getElementsByClassName('teads-inread').length>0){
var teadsMarginStyle = document.createElement('style');
teadsMarginStyle.innerHTML=".teads-inread {padding-bottom:10px !important;}";
document.getElementsByClassName('teads-inread')[0].appendChild(teadsMarginStyle);
}
},8000);
},800);
function set_aniview_after15sec(){
setlogoTeads_intval=setInterval(function(){
try{
document.querySelector(".teads-inread").remove();
}catch{
}
},15000);
}
function new_logo(company_id){
var isLogoTriggered = false;
var isLogoTriggeredTeads = false;
if(company_id==2){
var test_id=14;
setlogoTeads_intval=setInterval(function(){
teads_primary_div=document.getElementById('teads0');
if(test_id==64 && !isLogoTriggeredTeads){
isLogoTriggeredTeads = true;
clearInterval(setlogoTeads_intval);
var bottom_div = document.createElement("div");
bottom_div.id="sureview_branding_2";
bottom_div.style.cssText="line-height:0px;";
bottom_div.className="sureviewBottomDiv sureviewtv";
var anchor1=document.createElement("a");
anchor1.href="http://sureview.tv/";
anchor1.target="_BLANK";
var bottom_logo_img = document.createElement("img");
bottom_logo_img.id="sureview_logo_bottom_2";
bottom_logo_img.src="https://app.sureview.tv/logo/sureview_logo.svg";
bottom_logo_img.style.cssText="height: 18px !important; margin: 0 !important; margin-top: 2px !important; width: 70px !important;";
anchor1.appendChild(bottom_logo_img);
bottom_div.appendChild(anchor1);
teads_primary_div.appendChild(bottom_div);
}else{
}
},1000);
}else{
daily_motion_ads=document.getElementById('daily_motion_ads_div');
setlogo_intval=setInterval(function(){
if(document.getElementsByClassName('dm-player-wrapper').length > 0 && !isLogoTriggered){
isLogoTriggered = true;
clearInterval(setlogo_intval);
var bottom_div = document.createElement("div");
bottom_div.id="sureview_branding";
bottom_div.style.cssText="line-height:0px;";
bottom_div.className="sureviewBottomDiv sureviewtv";
var anchor1=document.createElement("a");
anchor1.href="http://sureview.tv/";
anchor1.target="_BLANK";
var bottom_logo_img = document.createElement("img");
bottom_logo_img.id="sureview_logo_bottom";
bottom_logo_img.src="https://app.sureview.tv/logo/sureview_logo.svg";
bottom_logo_img.style.cssText="height: 18px !important; margin: 0 !important; margin-top: 2px !important; width: 70px !important;";
anchor1.appendChild(bottom_logo_img);
bottom_div.appendChild(anchor1);
daily_motion_ads.appendChild(bottom_div);
is_dm_ready();
}
},1000);
}
}
function is_dm_ready(){
var is_dm_sv_ready = setInterval(function(){
if(top.document.querySelectorAll(".dailymotion-player-wrapper .dm__close-button").length > 0){
clearInterval(is_dm_sv_ready);
document.querySelector(".dailymotion-player-wrapper .dm__close-button").innerHTML += '';
}
},500);
}
function is_avail_selector(name, by){
if(by==1){
placement_salector=document.getElementsByTagName(name);
if(placement_salector.length>0){
return placement_salector;
}else{
return 0;
}
}else if(by==2){
placement_salector=document.getElementsByClassName(name);
if(placement_salector.length>0){
return placement_salector;
}else{
return 0;
}
}else if(by==3){
placement_salector=top.document.getElementById(name);
if(placement_salector===null){
return 0;
}else{
return placement_salector;
}
}else if(by==4){
placement_salector=document.querySelectorAll(name);
if(placement_salector===null){
return 0;
}else{
return placement_salector;
}
}else{
placement_salector=document.getElementById(name);
if(placement_salector===null){
return 0;
}else{
return placement_salector;
}
}
}
function set_bottom_logo(company){
var counter=1;
setlogo_intval=setInterval(function(){
counter++;
try{
document.getElementById("sureview_branding").remove();
}catch(error){
}
var sureview_div=document.getElementById('Sureview14').clientWidth;
try{
if(company==1){
var video_div=document.getElementsByClassName('ima-ad-container')[0].clientWidth;
}else if(company==2){
var video_div=document.getElementsByClassName('teads-player')[0].clientWidth;
}else if(company==4){
var video_div=document.getElementById('ifr_PHNjcmlwdCBhc3luYyBzcmM9Imh0dHBzOi8vc2VjdXJlcHViYWRzLmcuZG91YmxlY2xpY2submV0L3RhZy9qcy9ncHQuanMiPjwvc2NyaXB0Pg0KPGRpdiBpZD0ic3VyZXZpZXctZ3B0LXBhc3NiYWNrIiBzdHlsZT0iaGVpZ2h0OjBweCAhaW1wb3J0YW50OyB3aWR0aDowcHggIWltcG9ydGFudDsiPg0KICA8c2NyaXB0Pg0KICAgIHdpbmRvdy5nb29nbGV0YWcgPSB3aW5kb3cuZ29vZ2xldGFnIHx8IHtjbWQ6IFtdfTsNCiAgICBnb29nbGV0YWcuY21kLnB1c2goZnVuY3Rpb24oKSB7DQogICAgZ29vZ2xldGFnLmRlZmluZVNsb3QoJy8yMjk0NTU4Njg5Ni9hbC1tYXJzZC1tYWluLTFYMScsIFsxLCAxXSwgJ3N1cmV2aWV3LWdwdC1wYXNzYmFjaycpLmFkZFNlcnZpY2UoZ29vZ2xldGFnLnB1YmFkcygpKTsNCiAgICBnb29nbGV0YWcuZW5hYmxlU2VydmljZXMoKTsNCiAgICBnb29nbGV0YWcuZGlzcGxheSgnc3VyZXZpZXctZ3B0LXBhc3NiYWNrJyk7DQogICAgfSk7DQogIDwvc2NyaXB0Pg0KPC9kaXY+').clientWidth;
}else if(company==9){
var video_div=document.getElementsByClassName("dm-player")[0].clientWidth;
}else{
video_div=sureview_div;
}
var diff=(sureview_div)-(video_div);
var padd='0px';
if(diff>10){
padd=diff/2+"px";
}
var bottom_div = document.createElement("div");
bottom_div.id="sureview_branding";
bottom_div.className="sureviewBottomDiv sureviewtv";
var anchor1=document.createElement("a");
anchor1.href="http://sureview.tv/";
anchor1.target="_BLANK";
var bottom_logo_img = document.createElement("img");
bottom_logo_img.id="sureview_logo_bottom";
bottom_logo_img.src="https://app.sureview.tv/logo/sureview_logo.svg";
anchor1.appendChild(bottom_logo_img);
bottom_div.appendChild(anchor1);
if(company==1){
try{
vdo_player= document.getElementsByClassName("vdo_content")[0].getElementsByTagName("video-js")[0].getElementsByClassName('ima-ad-container')[0].getElementsByTagName('div')[1].getElementsByTagName('video')[0];
if(vdo_player.duration>5){
x.appendChild(bottom_div);
document.getElementById("sureview_logo_bottom").style.padding = "0px "+padd+" 0px 0px";
if(video_div>0){
clearInterval(setlogo_intval);
}
}else{
if(counter==2){
clearInterval(setlogo_intval);
}
}
}catch(error){
if(counter==2){
clearInterval(setlogo_intval);
}
}
}else if(company==2){
try{
teads_player=document.getElementsByClassName("teads-inread")[0].getElementsByTagName("iframe")[0].contentDocument.getElementsByTagName("iframe")[0].contentDocument.getElementsByTagName('video')[0];
if(teads_player.duration>5){
x.appendChild(bottom_div);
document.getElementById("sureview_logo_bottom").style.padding = "0px "+padd+" 0px 0px";
if(video_div>0){
clearInterval(setlogo_intval);
}
}else{
}
}catch(error){
}
}else if(company==9){
}
}catch(Error){
if(counter==10){
clearInterval(setlogo_intval);
}
}
},1000);
}
function get_video_duration(){
refreshIntervalId=setInterval(function(){
try{
vdo_player= document.getElementsByClassName("vdo_content")[0].getElementsByTagName("video-js")[0].getElementsByClassName('ima-ad-container')[0].getElementsByTagName('div')[1].getElementsByTagName('video')[0];
if(isNaN(vdo_player.duration) || vdo_player.duration==0){
setTimeout(function(){
clearInterval(refreshIntervalId);
change_ads(2);
},1000);
}else{
}
}catch(error){
try{
teads_player=document.getElementsByClassName("teads-inread")[0].getElementsByTagName("iframe")[0].contentDocument.getElementsByTagName("iframe")[0].contentDocument.getElementsByTagName('video')[0];
setTimeout(function(){
if(teads_player.currentTime===0){
change_ads(1);
clearInterval(refreshIntervalId);
}else{
}
},10000);
if(isNaN(teads_player.duration)){
setTimeout(function(){
change_ads(1);
},10000);
}else{
if(teads_player.duration==teads_player.currentTime){
setTimeout(function(){
change_ads(1);
},10000);
}
}
}catch(error){
clearInterval(refreshIntervalId);
try{
teads_player=document.getElementsByClassName("teads-inread")[0].getElementsByTagName("iframe")[0].children;
}catch(error){
change_ads(1);
}
}
}
}, 10000);
}
function change_ads(ads_id){
clearInterval(refreshIntervalId);
if(ads_id==1){
add_vdo();
}else if(ads_id==2){
add_teads();
}
}
function add_vdo(){
if(is_active_vdo==1){
set_bottom_logo(1);
try{
document.querySelector('script[src*="vdo.ai"]').remove();
}catch(error){
console.log("VDO ERROR",error);
}
document.getElementsByClassName("sureview-content")[0].innerHTML = "";
running_ads=1;
if(placement_salector!=0){
try {
placement_salector[no_of_tag].appendChild(x);
}
catch (exception_var) {
}
ad_displaying=1;
x.appendChild(vdo);
(function(v,d,o,ai)
{ai=d.createElement('script');ai.defer=true;ai.async=true;ai.src=v.location.protocol+o;d.head.appendChild(ai);})(window, document, '//a.vdo.ai/core/'+vdo_id+'/vdo.ai.js');
}else{
x.appendChild(vdo);
(function(v,d,o,ai)
{ai=d.createElement('script');ai.defer=true;ai.async=true;ai.src=v.location.protocol+o;d.head.appendChild(ai);})(window, document, '//a.vdo.ai/core/'+vdo_id+'/vdo.ai.js');
}
}
}
function add_teads(){
if(is_active_teads==1){
set_bottom_logo(2);
clearInterval(setlogo_intval);
document.getElementsByClassName("sureview-content")[0].innerHTML = "";
running_ads=2;
if(placement_salector!=0){
ad_displaying=1;
x.appendChild(teads_main_div);
try {
placement_salector[no_of_tag].appendChild(x);
}catch (exception_var) {
}
}else{
x.appendChild(teads_main_div);
}
}
}
function remove_logo_2(){
try{
document.getElementById("sureview_branding").remove();
}catch(error){
}
}
const box = document.getElementById('Sureview14');
document.addEventListener('scroll', function () {
var inVpPartial = isElementPartiallyInViewport(box);
if(inVpPartial==true){
}else{
}
}, {
passive: true
});
function isElementPartiallyInViewport(el)
{
if (typeof jQuery !== 'undefined' && el instanceof jQuery)
el = el[0];
var rect = el.getBoundingClientRect();
var windowHeight = (window.innerHeight || document.documentElement.clientHeight);
var windowWidth = (window.innerWidth || document.documentElement.clientWidth);
var vertInView = (rect.top <= windowHeight) && ((rect.top + rect.height) >= 0);
var horInView = (rect.left <= windowWidth) && ((rect.left + rect.width) >= 0);
return (vertInView && horInView);
}
})();