(function (widget,cId,vids){ var _ONND_URL_EMBED = "https://video.onnetwork.tv" ; var _ONND_URL_CDN_EMBED = "https://cdn.onnetwork.tv" ; var overwrites = "" var iid=20241 ; var uid="id"+iid; var playerLoaded = false ; var reelToStart = 0 ; var wConfig = {"playlistitems":[{"mid":"2132241","id":"2132241","length":"48","title":"Zandberg o kryptowalutach. \"PiS-owcy nakr\u0119caj\u0105 dram\u0119\"","adddatesec":"1765444455","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2132241_3.jpg","mposter_url":""},{"mid":"2127166","id":"2127166","length":"85","title":"Ceny na jarmarku w Gda\u0144sku. Jest zaskoczenie!","adddatesec":"1765374392","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2127166_5.jpg","mposter_url":""},{"mid":"2216601","id":"2216601","length":"54","title":"Larry Ellison przejmuje media, by mie\u0107 w\u0142adz\u0119 nad w\u0142adz\u0105","adddatesec":"1766055724","poster_url":"https://cdnt.onnetwork.tv/poster/2/2/2216601_1.jpg","mposter_url":""},{"mid":"2126235","id":"2126235","length":"42","title":"Czy \u015bwi\u0119ta b\u0119d\u0105 drogie w tym roku?","adddatesec":"1765365989","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2126235_1.jpg","mposter_url":""},{"mid":"2216693","id":"2216693","length":"11","title":"Skandaliczne s\u0142owa Suskiego. \"Do widzenia, debile!\"","adddatesec":"1766059109","poster_url":"https://cdnt.onnetwork.tv/poster/2/2/2216693_4.jpg","mposter_url":""},{"mid":"2126255","id":"2126255","length":"39","title":"Czy ceny na \u015bwieta b\u0119d\u0105 wi\u0119ksze ni\u017c w zesz\u0142ym roku?","adddatesec":"1765366184","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2126255_4.jpg","mposter_url":""},{"mid":"2132307","id":"2132307","length":"49","title":"Zandberg: Trzymanie ps\u00f3w na \u0142a\u0144cuchu to barbarzy\u0144stwo","adddatesec":"1765445484","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2132307_6.jpg","mposter_url":""},{"mid":"2213527","id":"2213527","length":"30","title":"Kwa\u015bniewski: Na ostatnich nogach zag\u0142osuj\u0119 na lewic\u0119","adddatesec":"1765793535","poster_url":"https://cdnt.onnetwork.tv/poster/2/2/2213527_3.jpg","mposter_url":""},{"mid":"2120753","id":"2120753","length":"73","title":"Amerykanie chc\u0105 zrealizowa\u0107 plan Rosjan? \u201cW taki czy inny spos\u00f3b...\u201d","adddatesec":"1765272555","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2120753_1.jpg","mposter_url":""},{"mid":"2121036","id":"2121036","length":"54","title":"Kaczy\u0144ski: D\u0105\u017cymy do uzyskania wi\u0119kszo\u015bci","adddatesec":"1765277250","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2121036_5.jpg","mposter_url":""},{"mid":"2126574","id":"2126574","length":"25","title":"Marta Nawrocka udekorowa\u0142a choink\u0119 w Pa\u0142acu Prezydenckim","adddatesec":"1765369964","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2126574_5.jpg","mposter_url":""},{"mid":"2121481","id":"2121481","length":"21","title":"Budowa elektrowni j\u0105drowej w Polsce ruszy jeszcze w grudniu. Tusk przekaza\u0142 informacj\u0119","adddatesec":"1765285969","poster_url":"https://cdnt.onnetwork.tv/poster/2/1/2121481_3.jpg","mposter_url":""},{"mid":"2217505","id":"2217505","length":"144","title":"Sikora po tym, jak wyrzucili go z TVP, polecia\u0142 na Bali. Potem zadzwoni\u0142 Polsat, ale by\u0142 jeszcze inny telefon","adddatesec":"1766139535","poster_url":"https://cdnt.onnetwork.tv/poster/2/2/2217505_3.jpg","mposter_url":""},{"mid":"2216715","id":"2216715","length":"137","title":"Sikora zdradza kulisy zwolnienia z TVP. \"\u015acia\u0328gne\u0328li nasze zdje\u0328cia za s\u0301cian\"","adddatesec":"1766059927","poster_url":"https://cdnt.onnetwork.tv/poster/2/2/2216715_3.jpg","mposter_url":""},{"mid":"2214490","id":"2214490","length":"73","title":"Marta Surnik o sylwestrze w TVP. \"Lepszego po prostu nie ma\"","adddatesec":"1765874066","poster_url":"https://cdnt.onnetwork.tv/poster/2/2/2214490_3.jpg","mposter_url":""}],"frid":2132241,"widgetId":1657,"devicetype":"desktop","firstmidvideo":"MjEzMjI0MSw5eDE2LDAsNTAsNDQ0MCwxNjY5NywwLDAsMSw1MCwwLDAsMCwwLDEsMSwwLDAsNCwwLDAsMCwxLDAsMCwwLDAsMDswOy0xOy0xO1RMOzA7MDswOzU2LDAsMCwxLDAsMCwwOzA7MDswOzA7MDswLDA=","defsd":{"playlist":"4440","reelType":"0","reelRows":"2","reelColumns":"2","reelHeight":"300px","reelClosureButton":"31","reelListBackgroundColor":"rgba(255, 255, 255, 1)","reelListBackgroundImage":"","reelBackgroundColor":"rgba(0, 0, 0, 1)","reelBackgroundImage":"","reelBackgroundImageCustomCss":"background: linear-gradient(rgb(0 0 0), rgba(0, 0, 0, 0));","reelPosition":"2","reelMax":"15","reelMargin":"0%","reelBorder":"none","reelBorderRad":"0%","reelMarginList":"5px","reelPadding":"0%","reelBorderList":"none","reelBorderRadList":"10px","reelTitlePosition":"1","reelTitleCustomCss":" display: flex; justify-content:center; align-items:center; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.7) 100%);","reelPaddingList":"0px","reelTitleColor":"rgba(255, 255, 255, 1)","reelTitleFont":"CalibreWeb, sans-serif","reelTitleFontSize":"10","reelTitleHeight":"20%","reelTimerPosition":"1","reelTimerCustomCss":"border-radius:4px","reelTimerColor":"rgba(255, 255, 255, 1)","reelTimerBackground":"rgba(13, 12, 12, 0.4)","reelTimerFont":"CalibreWeb, sans-serif","reelTimerFontSize":"8","reelTimerMargin":"4px","reelTimerPadding":"1px 4px","reelTitleMargin":"0px","reelTitlePadding":"5%","reelTitleBackground":"rgba(13, 12, 12, 0)","reelBehaviourMPosterUse":"1","reelBehaviourMPosterVisibilityThreshold":"50","reelBehaviourChangeThreshold":"10","reelBehaviourMPosterMode":"0","reelBehaviourWidgetScrollMode":"2","reelBehaviourWidgetIdleScrollBy":"10","reelBehaviourWidgetIdleInterval":"1","reelTouchScrollAxis":"Y","reelBehaviourShowFirstReelMode":"0","reelNoNextPosterSwipe":"1","ads_emission_selectr":"1","widgets_emission_preroll_select_first_ad":"1","widgets_emission_preroll_list":"","widgets_emission_preroll_select_another_ad":"1","widgets_emission_midroll_select_first_ad":"1","widgets_emission_midroll_list":"","widgets_emission_midroll_select_another_ad":"1","widgets_emission_periodic_first_ad_number":"afterSeconds","widgets_emission_periodic_first_ad_seconds":"60","widgets_emission_periodic_next_ads_number_interval":"afterSeconds","widgets_emission_periodic_next_ads_seconds_interval":"120","reelListPlayButtonURL":"https://static.im-g.pl/im/1/31394/m31394041,PLAYNAKARUZELE.svg","reelListPlayButtonCustomCss":"width: 50px; height: 50px; transform: translate(-50%, -50%)","reelListPlayButtonSvgShow":"0","reelListPlayButtonSvgWidth":"30","reelListPlayButtonSvgTop":"50","reelListPlayButtonSvgLeft":"50","reelListPlayButtonSvgFill":"rgba(255,255,255,0)","reelListPlayButtonSvgWcpCircleStroke":"rgba(255,255,255,0.8)","reelListPlayButtonSvgWcpTriangleFill":"rgba(255,255,255,0.8)","reelBehaviourInfiniteMPoster":"1"},"classToAdd":"carousel","addcss":"","isProduction":true,"debugReelsWidget":false} ; var isMobile = 0; var useNewDesktop = 0; var desktopStylingCss = ``; var desktopStylingJs = ``; var widgetClass = 'wid' + widget ; if (!useNewDesktop) { var nstylet = (isMobile ? 'body.ONNovhByReel { overflow: hidden !important; position: fixed !important;}' : '') + ' div.totalcontainerexs.'+widgetClass+'{ position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;margin:0px;height:auto;box-sizing:border-box;align-items:stretch; background-color:transparent;}' + ' div.playercontainerexs.'+widgetClass+'{ width:100%;height:100%;position:fixed;top:0;left:0;z-index:2147483647;display:none; }' + ' #playerPreviewContainer div.playercontainerexs.'+widgetClass+', #totalcontainerdesktop'+uid+' div.playercontainerexs.'+widgetClass+'{ position:absolute;top:0;left:0;z-index:2147483647;display:none; }' + ' #totalcontainerdesktop'+uid+' { height: 100%; }' + ' div.widgetcontainerexs.'+widgetClass+'{ width:100%;height:auto;display:block; }' + ' div.widgetcontainerexs.'+widgetClass+'>div{ position:relative;display:block;width:100%;height:100%;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;}' + ' div.widgetcontainerexs.'+widgetClass+'>div>div{ position:absolute;display:block;width:100%;height:100%;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden; }' + ' .playercontainerexs.'+widgetClass+' > div > div, .playercontainerexs.'+widgetClass+' > div > div > iframe { box-sizing: border-box !important; }' + ' .reelPosition0 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:100% !important;min-width:100% !important;min-height:100% !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition0 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:100% !important;min-width:100% !important;min-height:100% !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition0 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:100% !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' + ' .reelPosition1 > .playercontainerexs.'+widgetClass+' { flex-direction: column; justify-content: flex-start; align-items: stretch; }' + ' .reelPosition1 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition1 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition1 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' + ' .reelPosition2 > .playercontainerexs.'+widgetClass+' { flex-direction: column; justify-content: center; align-items: stretch; }' + ' .reelPosition2 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition2 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition2 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' + ' .reelPosition3 > .playercontainerexs.'+widgetClass+' { flex-direction: column; justify-content: flex-end; align-items: stretch; }' + ' .reelPosition3 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition3 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition3 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' ; var nefrag = '
' + '
' + '
' + '
' ; } else { var nstylet = (isMobile ? 'body.ONNovhByReel { overflow: hidden !important; position: fixed !important;}' : '') + ' div.totalcontainerexs.'+widgetClass+'{ position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;margin:0px;height:auto;box-sizing:border-box;align-items:stretch; background-color:transparent;}' + ' #playerPreviewContainer div.playercontainerexs.'+widgetClass+'{ position:absolute;top:0;left:0;z-index:2147483647;display:none; }' + ' div.widgetcontainerexs.'+widgetClass+'{ width:100%;height:auto;display:block; }' + ' div.widgetcontainerexs.'+widgetClass+'>div{ position:relative;display:block;width:100%;height:100%;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;}' + ' div.widgetcontainerexs.'+widgetClass+'>div>div{ position:absolute;display:block;width:100%;height:100%;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden; }' + ' .playercontainerexs.'+widgetClass+' > div > div, .playercontainerexs.'+widgetClass+' > div > div > iframe { box-sizing: border-box !important; }' + ' .reelPosition0 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:100% !important;min-width:100% !important;min-height:100% !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition0 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:100% !important;min-width:100% !important;min-height:100% !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition0 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:100% !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' + ' .reelPosition1 > .playercontainerexs.'+widgetClass+' { flex-direction: column; justify-content: flex-start; align-items: stretch; }' + ' .reelPosition1 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition1 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition1 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' + ' .reelPosition2 > .playercontainerexs.'+widgetClass+' { flex-direction: column; justify-content: center; align-items: stretch; }' + ' .reelPosition2 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition2 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition2 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' + ' .reelPosition3 > .playercontainerexs.'+widgetClass+' { flex-direction: column; justify-content: flex-end; align-items: stretch; }' + ' .reelPosition3 > .playercontainerexs.'+widgetClass+' > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }'+ ' .reelPosition3 > .playercontainerexs.'+widgetClass+' > div > div { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important; }'+ ' .reelPosition3 > .playercontainerexs.'+widgetClass+' > div > div > iframe { width:100% !important;height:auto !important;min-width:100% !important;min-height:auto !important;'+ ' max-width:100% !important;max-height:100% !important;padding:0 !important;margin:0 !important; }' ; var nefrag = '
' + '
' + '
' ; if (isMobile) { nstylet += ' div.playercontainerexs.'+widgetClass+'{ width:100%;height:100%;position:fixed;top:0;left:0;z-index:2147483647;display:none; }'; nefrag = '
' + nefrag; } else { nstylet += ' div.playercontainerexswrapper{ width:auto;height:100%;position:fixed;top:0;left:0;z-index:2147483646;display:none;}' + ' div.playercontainerexs.'+widgetClass+'{ z-index:2147483647;display:none; aspect-ratio: 9/16; }'; nefrag = '
' + '
' + '
' + '
' + '
' + '
' + '
' + nefrag; } } var ONNScrollFixedPos = 0; function ONNdisableFixedScroll() { if (!isMobile) { return; } if (document.body.classList.contains("ONNovhByReel")) { return; } ONNScrollFixedPos = window.pageYOffset; document.body.style.top = "-" + ONNScrollFixedPos + "px"; document.body.classList.add("ONNovhByReel"); } function ONNenableFixedScroll() { if (!isMobile) { return; } document.body.style.top = ""; document.body.classList.remove("ONNovhByReel"); window.scrollTo({ top: ONNScrollFixedPos, behavior: "instant" }); } var widgetPlayer = null; function insertWidget( container , ib ){ var nstyle = document.createElement( "style" ); nstyle.innerHTML = nstylet ; nstyle.dataset['cfasync']="false"; var tcontainer = document.createElement( "div" ); tcontainer.innerHTML = nefrag ; if (useNewDesktop) { tcontainer.className = "totalcontainerexs widshorts wid1657 reelPosition2 " + (isMobile ? "mobile" : "desktop") ; } else { tcontainer.className = "totalcontainerexs widshorts wid1657 reelPosition2" ; } tcontainer.dataset['cfasync']="false"; if (!isMobile && !useNewDesktop) { tcontainer.id = "totalcontainerdesktop"+uid; } document.body.appendChild( nstyle ); if (ib){ container.parentElement.insertBefore( tcontainer , document.currentScript ); } else{ container.appendChild( tcontainer ); } var wmc=document.getElementById('ld'+uid); if(wmc){ import( "https://cdn.onnetwork.tv/js/widgets/widgetShortslist.js?s="+Date.now() ).then(({WidgetPlayer})=>{ wConfig['uid'] = uid; wConfig['iid'] = iid ; wConfig['cId'] = 'ld'+uid ; if(wConfig.defsd.reelBehaviourShowFirstReelMode==1){ console.log("opacity"); wmc.style.opacity='0'; } playerCont = document.getElementById('p'+uid); widgetPlayer = new WidgetPlayer(wConfig, wmc, playerCont); if (desktopStylingCss != "") { try { const std = document.createElement("style"); std.type="text/css" ; std.innerHTML = desktopStylingCss; std.id = "ONNdesktopStylingCssWidget"+iid; document.body.appendChild(std); } catch(dsce){ console.log(dsce); } } if (desktopStylingJs != "") { try{Function('"use strict";'+desktopStylingJs+';')();}catch(dsje){ console.log(dsje); } } if (useNewDesktop) { try{ document.querySelector(".onnwrapperbuttons-prev")?.addEventListener("click", () => { widgetPlayer.playPrevMovie(); }); }catch(e){} try{ document.querySelector(".onnwrapperbuttons-next")?.addEventListener("click", () => { widgetPlayer.playNextMovie(); }); }catch(e){} } }); } } window.addEventListener("message",(e)=>{ try{ if (!e.data.indexOf || (e.data.indexOf("onntv://")!=0)){ return ; } var com = {} ; try{ com = JSON.parse( e.data.substr( 8 ) ); }catch(e){ com = {} ; } switch (com.comm){ // TOCHECK - Wydaje mi się, że punktu widzenia zależności widget-player komunikacja jest taka jak powinna być, // ale na pewno nie jest najszybsza jakaby mogła być, bo wysyła komendy asynchronicznie. Teraz wygląda to tak: // Swiped in player -> postMessage -> receive here in nextReel/prevReel -> call widgetPlayer playNextMovie/playPrevMovie -> // -> change inner properties, related to current playing reel position in playlist -> send startShort command -> send startmovie message to player and play another vid case "moviecompleted" : if (parseInt(com.iid) != iid){ break ; } case "nextReel": if (parseInt(com.iid) == iid){ if (widgetPlayer != null && typeof widgetPlayer.playNextMovie == "function") { widgetPlayer.playNextMovie(); } } break; case "prevReel": if (parseInt(com.iid) == iid){ if (widgetPlayer != null && typeof widgetPlayer.playPrevMovie == "function") { widgetPlayer.playPrevMovie(); } } break; case "playerLoaded" : if (parseInt(com.iid) == iid){ playerLoaded = true ; if(wConfig.defsd.reelBehaviourShowFirstReelMode==1){ console.log( "revopacity" ); wmc=document.getElementById('ld'+uid); if(wmc){wmc.style.opacity='';} } if(reelToStart>0){ var pc = document.getElementById( "pid"+com.iid ); if(pc){ pc.style.display = "flex" ; if (!isMobile && useNewDesktop) { try { var pcw = document.querySelector( ".playercontainerexswrapper" ); pcw.style.display = "flex" ; } catch(ew){} } window.ONTVsendCommand("startmovie",parseInt(com.iid),parseInt(reelToStart)); } ONNdisableFixedScroll(); reelToStart = 0 ; } } break ; case "startShort": if(parseInt(com.iid)==iid){ if(!playerLoaded){ reelToStart = com.subject ; break ; } var pc = document.getElementById( "pid"+com.iid ); if(pc){ pc.style.display = "flex" ; if (!isMobile && useNewDesktop) { try { var pcw = document.querySelector( ".playercontainerexswrapper" ); pcw.style.display = "flex" ; } catch(ew){} } window.ONTVsendCommand("startmovie",parseInt(com.iid),parseInt(com.subject)); } ONNdisableFixedScroll(); } break ; case "startnextshort" : if(parseInt(com.iid)==iid){ var pc = document.getElementById( "pid"+com.iid ); if (pc && widgetPlayer != null && typeof widgetPlayer.playNextMovie == "function") { pc.style.display = "flex" ; if (!isMobile && useNewDesktop) { try { var pcw = document.querySelector( ".playercontainerexswrapper" ); pcw.style.display = "flex" ; } catch(ew){} } widgetPlayer.playNextMovie(); widgetPlayer.signalReelOpen(0); } } break ; case "closeShorts": if(parseInt(com.iid)==iid){ var pc = document.getElementById( "pid"+com.iid ); if(pc){ window.ONTVsendCommand("pause",parseInt(com.iid)); pc.style.display = "none" ; if (!isMobile && useNewDesktop) { try { var pcw = document.querySelector( ".playercontainerexswrapper" ); pcw.style.display = "none" ; } catch(ew){} } } ONNenableFixedScroll(); } break ; case "widgetloaded": if(parseInt(com.iid)==iid){ var pscript = document.createElement( "script" ); pscript.src = _ONND_URL_EMBED + '/embed.php?mid='+com.subject+'&iid='+iid+'&cId=p'+uid+'&widget='+widget+vids+overwrites ; pscript.async = true ; document.body.appendChild( pscript ); } break ; } }catch(e){} },false); if ((cId!="") && document.getElementById( cId )){ insertWidget( document.getElementById( cId ) , false ); }else if (document.currentScript && document.currentScript.parentElement){ insertWidget( document.currentScript , true ); } })(1657,"","");