(function() { var c=1; var x = document.getElementById("Sureview66"); 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="p"; placed_by="1"; no_of_tag="1"; 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/155163/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 widget_code="PHNjcmlwdCBzcmM9Imh0dHBzOi8vZ2VvLmRhaWx5bW90aW9uLmNvbS9saWJzL3BsYXllci94dHNjdS5qcyI+PC9zY3JpcHQ+DQo8ZGl2IGlkPSJzdXJldmlldy12aWV3LWFkcy0wMDEiIHN0eWxlPSd0ZXh0LWFsaWduOiBjZW50ZXI7IGhlaWdodDogMjAwcHg7Jz4NCiAgICA8c2NyaXB0Pg0KICAgIDwvc2NyaXB0Pg0KICAgICAgICAgICAgPHN0eWxlPg0KICAgICAgICAgICAgICAuZGFpbHltb3Rpb24tcGxheWVyLXdyYXBwZXIgaWZyYW1le21pbi1oZWlnaHQ6dW5zZXQgIWltcG9ydGFudH0NCiAgICAgICAgICAgICAgICAjc3YtcGxheWVyLXRvcC1jb250cm9sc3sNCiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogZmxleDsNCiAgICAgICAgICAgICAgICAgICAgZmxleC13cmFwOiB3cmFwOw0KICAgICAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93Ow0KICAgICAgICAgICAgICAgICAgICBhbGlnbi1jb250ZW50OiBmbGV4LXN0YXJ0Ow0KICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgICNzdi1wbGF5ZXItdG9wLWNvbnRyb2xzIGRpdiB7DQogICAgICAgICAgICAgICAgICAgIGhlaWdodDogMjJweDsNCiAgICAgICAgDQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIC5maXhlZEVsZW1lbnQgew0KICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbjpmaXhlZDsNCiAgICAgICAgICAgICAgICAgICAgYm90dG9tOjUwcHg7DQogICAgICAgICAgICAgICAgICAgIHdpZHRoOjEwMCU7DQogICAgICAgICAgICAgICAgICAgIHotaW5kZXg6IDk5OTk5OTk5OTk5OTk5OTk5Ow0KICAgICAgICAgICAgICAgICAgICByaWdodDogMDsNCiAgICAgICAgICAgICAgICAgICAgd2lkdGg6MjExcHggIWltcG9ydGFudDsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgLnN2LXBsYXllci1sb2dvew0KICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibGFjazsNCiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAxMHB4Ow0KICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiA1cHg7DQogICAgICAgICAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDVweCA1cHggMHB4IDBweDsNCiAgICAgICAgICAgICAgICAgICAgYm94LXNpemluZzogdW5zZXQgIWltcG9ydGFudDsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgLnN2LXBsYXllci1jbG9zZXsNCiAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogYmxhY2s7DQogICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTBweDsNCiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogN3B4Ow0KICAgICAgICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHggNXB4IDBweCAwcHg7DQogICAgICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjsNCiAgICAgICAgICAgICAgICAgICAgYm94LXNpemluZzogdW5zZXQgIWltcG9ydGFudDsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICA8L3N0eWxlPg0KICAgICAgICAgICAgPGRpdiBpZD0nZHYtcGxheWVyLXNpemUnIHN0eWxlPSd3aWR0aDozMDBweCAhaW1wb3J0YW50OyBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7Jz4NCiAgICAgICAgICAgICAgICA8ZGl2IGlkPSJzdi1wbGF5ZXItbWFpbi1jb250YWluZXIiIGNsYXNzPSIiPg0KICAgICAgICAgICAgICAgICAgICA8ZGl2IGlkPSJzdi1wbGF5ZXItY29udHJvbHMtY29udGFpbmVyIj4NCiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgaWQ9InN2LXBsYXllci10b3AtY29udHJvbHMiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgaWQ9InN1cmV2aWV3LWxvZ28iIHN0eWxlPSd0ZXh0LWFsaWduOiBsZWZ0OyBkaXNwbGF5Om5vbmUgIWltcG9ydGFudDsnPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPSJodHRwOi8vc3VyZXZpZXcudHYvIiB0YXJnZXQ9Il9ibGFuayI+PGltZyBjbGFzcz0ic3YtcGxheWVyLWxvZ28iIHNyYz0iaHR0cHM6Ly9hcHAuc3VyZXZpZXcudHYvbG9nby9zdXJldmlld19iYW5uZXJfbG9nby5zdmciIC8+PC9hPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2Pg0KIC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heWVyIj48L2Rpdj4NCiAgICAgICAgICAgICAgICAgICAgICAgIDxzY3JpcHQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHBsYXllcl9vYmo7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHdpbmRvdy5kYWlseW1vdGlvbiA9PT0gdW5kZWZpbmVkKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpbmRvdy5kYWlseW1vdGlvbiA9IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uU2NyaXB0TG9hZGVkOiAoKSA9PiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGFpbHltb3Rpb24NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jcmVhdGVQbGF5ZXIoJ2N1c3RvbS1kbS1wbGF5ZXInLCB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxheWxpc3Q6ICd4N2liM3AnLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZmVycmVyUG9saWN5OiAnbm8tcmVmZXJyZXItd2hlbi1kb3duZ3JhZGUnLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtczogew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtdXRlOiB0cnVlDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKChwbGF5ZXIpID0+IGdldFBsYXllclZpZXdhYmlsaXR5KHBsYXllcikpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2F0Y2goKGUpID0+IGNvbnNvbGUuZXJyb3IoZSkpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coIkZpcnN0IElmIiwgd2luZG93LmRhaWx5bW90aW9uKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGFpbHltb3Rpb24NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY3JlYXRlUGxheWVyKCdjdXN0b20tZG0tcGxheWVyJywgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGF5bGlzdDogJ3g3aWIzcCcsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZmVycmVyUG9saWN5OiAnbm8tcmVmZXJyZXItd2hlbi1kb3duZ3JhZGUnLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXJhbXM6IHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbXV0ZTogdHJ1ZQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICA8L3NjcmlwdD4NCiAgICAgICAgICAgICAgICAgICAgPC9kaXY+DQogICAgICAgICAgICAgICAgPC9kaXY+DQogICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgPC9kaXY+DQoNCiAgICAgICAgPHNjcmlwdD4NCiAgICAgICAgICAgIGxldCBpc1NWVGFiQWN0aXZlID0gdHJ1ZTsNCiAgICAgICAgICAgIGZ1bmN0aW9uIGdldFBsYXllclZpZXdhYmlsaXR5KHBsYXllcl9vYmopIHsNCiAgICAgICAgICAgICAgICB2YXIgb2Zmc2V0SGVpZ2h0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2N1c3RvbS1kbS1wbGF5ZXInKS5vZmZzZXRIZWlnaHQ7DQogICAgICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3N1cmV2aWV3LXZpZXctYWRzLTAwMScpLnN0eWxlLmhlaWdodCA9IG9mZnNldEhlaWdodCArIDMyICsgJ3B4JzsNCiAgICAgICAgICAgICAgICBwbGF5ZXJfb2JqLnNldFZvbHVtZSgwKTsNCiAgICAgICAgICAgICAgICBwbGF5ZXJfb2JqLm9uKGRhaWx5bW90aW9uLmV2ZW50cy5QTEFZRVJfVklFV0FCSUxJVFlDSEFOR0UsIChwbGF5ZXJfb2JqKSA9PiB7DQogICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKCJSZWNlaXZlZCBQTEFZRVJfU1RBUlQgZXZlbnQuIiwgcGxheWVyX29iai5wbGF5ZXJJc1ZpZXdhYmxlKTsNCiAgICAgICAgICAgICAgICAgICAgaWYgKHBsYXllcl9vYmoucGxheWVySXNWaWV3YWJsZSkgew0KDQoNCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsNCg0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB9DQoNCiAgICAgICAgICAgIGZ1bmN0aW9uIGNsb3NlUGxheWVyKCkgew0KICAgICAgICAgICAgICAgIGRhaWx5bW90aW9uLmdldFBsYXllcigpDQogICAgICAgICAgICAgICAgICAgICAgICAudGhlbigocGxheWVyKSA9PiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxheWVyLmRlc3Ryb3koKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgic3YtcGxheWVyLWNvbnRyb2xzLWNvbnRhaW5lciIpLnN0eWxlLmRpc3BsYXkgPSAnbm9uZSc7DQogICAgICAgICAgICAgICAgICAgICAgICB9KQ0KICAgICAgICAgICAgICAgICAgICAgICAgLmNhdGNoKChlKSA9PiBjb25zb2xlLmVycm9yKGUpKTsNCiAgICAgICAgICAgIH0NCg0KDQoNCiAgICAgICAgPC9zY3JpcHQ+DQoNCiAgICAgICAgPHNjcmlwdD4NCiAgICAgICAgICAgIHZhciBmaXJzdF90aW1lID0gMDsNCiAgICAgICAgICAgIGNvbnN0IGVsID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignI3N1cmV2aWV3LXZpZXctYWRzLTAwMScpOw0KICAgICAgICAgICAgY29uc3QgU1ZfTkVXX29ic2VydmVyID0gbmV3IHdpbmRvdy5JbnRlcnNlY3Rpb25PYnNlcnZlcigoW2VudHJ5XSkgPT4gew0KICAgICAgICAgICAgICAgIGlmIChlbnRyeS5pc0ludGVyc2VjdGluZykgew0KICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgic3YtcGxheWVyLW1haW4tY29udGFpbmVyIikuY2xhc3NMaXN0LnJlbW92ZSgiZml4ZWRFbGVtZW50Iik7DQogICAgICAgICAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdi1wbGF5ZXItY2xvc2UtcGxheWVyIikuc3R5bGUuZGlzcGxheSA9ICdub25lJzsNCg0KICAgICAgICAgICAgICAgICAgICBpZiAoZmlyc3RfdGltZSA9PT0gMCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgZGFpbHltb3Rpb24uZ2V0UGxheWVyKCkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oKHBsYXllcikgPT4gew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxheWVyLnNldFZvbHVtZSgwLjAwMSk7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3RfdGltZSA9IDE7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOw0KICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgIGlmIChmaXJzdF90aW1lID09PSAxKSB7DQogICAgICAgICAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdi1wbGF5ZXItbWFpbi1jb250YWluZXIiKS5jbGFzc0xpc3QuYWRkKCJmaXhlZEVsZW1lbnQiKTsNCiAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInN2LXBsYXllci1jbG9zZS1wbGF5ZXIiKS5zdHlsZS5kaXNwbGF5ID0gJ2Jsb2NrJzsNCiAgICAgICAgICAgIH0NCg0KDQoNCiAgICAgICAgICAgIH0sIHsNCiAgICAgICAgICAgICAgICByb290OiBudWxsLA0KICAgICAgICAgICAgICAgIHRocmVzaG9sZDogMC41DQogICAgICAgICAgICB9KTsNCg0KICAgICAgICAgICAgU1ZfTkVXX29ic2VydmVyLm9ic2VydmUoZWwpOw0KICAgICAgICA8L3NjcmlwdD4NCg0KICAgICAgICA8c2NyaXB0Pg0KDQpkb2N1bWVudC5hZGRFdmVudExpc3RlbmVyKCJ2aXNpYmlsaXR5Y2hhbmdlIiwgKCkgPT4gew0KICAgaWYgKGRvY3VtZW50LmhpZGRlbikgew0KICAgICAgaXNTVlRhYkFjdGl2ZSA9IGZhbHNlOw0KICAgICAgICAgICAgICBpZiAoaXNTVlRhYkFjdGl2ZSA9PT0gZmFsc2UpIHsNCiAgICAgICAgICAgICAgICAgICAgZGFpbHltb3Rpb24uZ2V0UGxheWVyKCkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbigocGxheWVyKSA9PiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsYXllci5wYXVzZSgpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgIH0NCg0KICAgfSBlbHNlIHsNCiAgICAgICANCmlzU1ZUYWJBY3RpdmUgPSB0cnVlOw0KICAgICAgICAgICAgICBpZiAoaXNTVlRhYkFjdGl2ZSA9PT0gdHJ1ZSAmJiBmaXJzdF90aW1lKSB7DQogICAgICAgICAgICAgICAgICAgIGRhaWx5bW90aW9uLmdldFBsYXllcigpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oKHBsYXllcikgPT4gew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGF5ZXIucGxheSgpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgIH0NCn0pOw0KICAgICAgICA8L3NjcmlwdD4="; var googleBs64Code=widget_code; top.svJQInj_1 = {}; by_tag_name="adsContiner2"; placed_by="2"; no_of_tag="0"; 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); if(placed_by=='1'){ top.svJQInj_1(by_tag_name).eq(no_of_tag).append(atob(googleBs64Code)); }else if(placed_by=='2'){ top.svJQInj_1("."+by_tag_name).eq(no_of_tag).append(atob(googleBs64Code)); }else if(placed_by=='3'){ top.svJQInj_1("#"+by_tag_name).append(atob(googleBs64Code)); } } }else{ if(placed_by=='1'){ top.jQuery(by_tag_name).eq(no_of_tag).append(atob(googleBs64Code)); }else if(placed_by=='2'){ top.jQuery("."+by_tag_name).eq(no_of_tag).append(atob(googleBs64Code)); }else if(placed_by=='3'){ top.jQuery("#"+by_tag_name).append(atob(googleBs64Code)); } } setTimeout(function(){ try{ var s3 = document.createElement("style"); s3.append("#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; display: block !important; bottom: var(--dm--pip-bottom, 0) !important; top: var(--dm--pip-top, initial) !important; } .dm__close-button svg { width: 100%; height: 100%; vertical-align: inherit !important; }"); top.document.head.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=66; 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('Sureview66').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_PGRpdiBpZD0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ctc3RpY2t5LWJhbm5lci1hZHMiIGNsYXNzPSJzdXJldmlldy1zdGlja3ktYmFubmVyLWFkcyIgc3R5bGU9Im1heC13aWR0aDogMzAwcHg7IG1heC1oZWlnaHQ6IDI1MHB4OyBtYXJnaW4tbGVmdDogMHB4ICFpbXBvcnRhbnQ7bWFyZ2luLXRvcDogMHB4OyI+PC9kaXY+DQogICAgPHNjcmlwdCBhc3luYyBzcmM9Imh0dHBzOi8vc2VjdXJlcHViYWRzLmcuZG91YmxlY2xpY2submV0L3RhZy9qcy9ncHQuanMiPjwvc2NyaXB0Pg0KICAgIDxzY3JpcHQ+DQogICAgICAgIChmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICBmdW5jdGlvbiByZWZyZXNoU1ZTbG90KHN2X3N0aWNreV9zbG90KSB7DQogICAgICAgICAgICAgICAgaWYgKCFkb2N1bWVudC5oaWRkZW4pIHsNCiAgICAgICAgICAgICAgICAgICAgdG9wLmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdXJldmlldy1zdGlja3ktYmFubmVyIikuc3R5bGUuZGlzcGxheSA9ICJub25lIjsNCiAgICAgICAgICAgICAgICAgICAgaXNGaXJzdFJlbmRlciA9IGZhbHNlOw0KICAgICAgICAgICAgICAgICAgICBnb29nbGV0YWcucHViYWRzKCkucmVmcmVzaChbc3Zfc3RpY2t5X3Nsb3RdKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgICAgICB2YXIgU1Zpbml0SW50ZXJ2YWwsIHN2X3N0aWNreV9zbG90LCBpc0ZpcnN0UmVuZGVyOw0KICAgICAgICAgICAgd2luZG93Lmdvb2dsZXRhZyA9IHdpbmRvdy5nb29nbGV0YWcgfHwge2NtZDogW119Ow0KICAgICAgICAgICAgZ29vZ2xldGFnLmNtZC5wdXNoKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgICAgICBzdl9zdGlja3lfc2xvdCA9IGdvb2dsZXRhZy5kZWZpbmVTbG90KCcvMjI5NDU1ODY4OTYvcHJlc3NjaXRpZXMtcmVzcG9uc2l2ZScsIFszMDAsIDI1MF0sICdzdXJldmlldy1zdGlja3ktYmFubmVyLWFkcycpLmFkZFNlcnZpY2UoZ29vZ2xldGFnLnB1YmFkcygpKTsNCiAgICAgICAgICAgICAgICBnb29nbGV0YWcucHViYWRzKCkuc2V0KCdwYWdlX3VybCcsICdhc3Nhd3NhbmEuY29tJyk7DQogICAgICAgICAgICAgICAgZ29vZ2xldGFnLmVuYWJsZVNlcnZpY2VzKCk7DQogICAgICAgICAgICAgICAgZ29vZ2xldGFnLmRpc3BsYXkoJ3N1cmV2aWV3LXN0aWNreS1iYW5uZXItYWRzJyk7DQogICAgICAgICAgICAgICAgaXNGaXJzdFJlbmRlciA9IHRydWU7DQogICAgICAgICAgICAgICAgdmFyIGlzQWREaXNwbGF5ZWQgPSBmYWxzZTsNCiAgICAgICAgICAgICAgICBTVmluaXRJbnRlcnZhbCA9IHNldEludGVydmFsKHJlZnJlc2hTVlNsb3QsIDIyMDAwLCBzdl9zdGlja3lfc2xvdCk7DQogICAgICAgICAgICAgICAgZ29vZ2xldGFnLnB1YmFkcygpLmFkZEV2ZW50TGlzdGVuZXIoJ3Nsb3RSZW5kZXJFbmRlZCcsIGZ1bmN0aW9uIChldmVudCkgew0KICAgICAgICAgICAgICAgICAgICBpZiAoIWV2ZW50LmlzRW1wdHkpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGlzQWREaXNwbGF5ZWQgPSB0cnVlOw0KICAgICAgICAgICAgICAgICAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9wLmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdXJldmlldy1zdGlja3ktYmFubmVyIikuc3R5bGUuZGlzcGxheSA9ICJibG9jayI7DQogICAgICAgICAgICAgICAgICAgICAgICB9LCAzMDAwKTsNCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChldmVudC5pc0VtcHR5ICYmICFpc0ZpcnN0UmVuZGVyICYmIGlzQWREaXNwbGF5ZWQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRvcC5kb2N1bWVudC5nZXRFbGVtZW50QnlJZCgic3VyZXZpZXctc3RpY2t5LWJhbm5lciIpLnN0eWxlLmRpc3BsYXkgPSAiYmxvY2siOw0KICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGV2ZW50LmlzRW1wdHkgJiYgIWlzQWREaXNwbGF5ZWQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwoU1Zpbml0SW50ZXJ2YWwpOw0KICAgICAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFNWU2xvdChzdl9zdGlja3lfc2xvdCk7DQogICAgICAgICAgICAgICAgICAgICAgICBTVmluaXRJbnRlcnZhbCA9IHNldEludGVydmFsKHJlZnJlc2hTVlNsb3QsIDIyMDAwLCBzdl9zdGlja3lfc2xvdCk7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgdG9wLmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdzdXJldmlldy1zdGlja3ktYmFubmVyLXJlbW92ZScpLm9uY2xpY2sgPSBmdW5jdGlvbiAoZXZ0KSB7DQogICAgICAgICAgICAgICAgdG9wLmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzdXJldmlldy1zdGlja3ktYmFubmVyIikuc3R5bGUuZGlzcGxheSA9ICJub25lIjsNCiAgICAgICAgICAgICAgICBjbGVhckludGVydmFsKFNWaW5pdEludGVydmFsKTsNCiAgICAgICAgICAgICAgICBTVmluaXRJbnRlcnZhbCA9IHNldEludGVydmFsKHJlZnJlc2hTVlNsb3QsIDIyMDAwLCBzdl9zdGlja3lfc2xvdCk7DQogICAgICAgICAgICB9Ow0KICAgICAgICB9KSgpOw0KICAgIDwvc2NyaXB0Pg0KPC9kaXY+').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('Sureview66'); 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); } })();