(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=Date.now() * Math.floor( 1 + Math.random() * 100 ) + "2019" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "2019" ; var playerInserted = false ; var nstylet = ' div.totalcontainerexs{ display:block;width:100%;margin:0px;height:auto;box-sizing:border-box;align-items:stretch; background-color:transparent ;}' + ' div.playercontainerexs{ width:100%;height:auto;display:block; }' + ' div.widgetcontainerexs{ width:100%;height:auto;display:block; }' + ' div.widgetcontainerexs>div{ position:relative;display:block;width:100%;height:200px;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;padding-bottom:0%; }' + // ' div.widgetcontainerexs.wid2019>div{ padding-bottom:0%; height:200px; }' + ' div.widgetcontainerexs>div>iframe{ position:absolute;display:block;width:100%;height:100%;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden; }' ; var nefrag = '
' + ' ' ; 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 ; tcontainer.className = "totalcontainerexs" ; tcontainer.dataset['cfasync']="false"; 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( _ONND_URL_CDN_EMBED + '/js/widgets/widgetScrollist.js?s=202209160956' ).then(({WidgetPlayer})=>{ var wConfig = {"widgetId":2019,"devicetype":"desktop","playlistitems":[{"mid":"1891028","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1891028_3m.jpg","id":"1891028","length":"467","title":"Bijatyka na konferencji Macierewicza! Wyzwiska, przepychanki, chaos w Piotrkowie"},{"mid":"1891275","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1891275_3m.jpg","id":"1891275","length":"453","title":"Bijatyka na konferencji Macierewicza! Wyzwiska, przepychanki, chaos w Piotrkowie"},{"mid":"1892069","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1892069_2m.jpg","id":"1892069","length":"325","title":"\u201eLasy na nowe 100-lecie\u201d \u2013 wielka akcja sadzenia drzew w Goleszach Ma\u0142ych"},{"mid":"1892104","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1892104_5m.jpg","id":"1892104","length":"45","title":"D\u017cem zagra w Piotrkowie"},{"mid":"1892336","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1892336_5m.jpg","id":"1892336","length":"34","title":"Ul. Polna w Piotrkowie - By\u0142a \u015bcie\u017cka rowerowa jest parking"},{"mid":"1893137","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1893137_4m.jpg","id":"1893137","length":"99","title":"\u015awiatowy Dzie\u0144 \u015awiadomo\u015bci Autyzmu"},{"mid":"1893336","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1893336_3m.jpg","id":"1893336","length":"31","title":"Dwa wypadki jednego dnia w jednym miejscu"},{"mid":"1893561","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1893561_4m.jpg","id":"1893561","length":"39","title":"Piotrk\u00f3w uczci\u0142 Jana Paw\u0142a II \u2013 setki os\u00f3b na Marszu Papieskim"},{"mid":"1895351","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1895351_3m.jpg","id":"1895351","length":"766","title":"Obywatelska postawa czy \u201eterroryzm\u201d. Bracia S. na wojnie ze sklepami w Piotrkowie"},{"mid":"1895559","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1895559_6m.jpg","id":"1895559","length":"57","title":"Dni otwarte w piotrkowskich szko\u0142ach "},{"mid":"1895561","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1895561_1m.jpg","id":"1895561","length":"113","title":"Dni otwarte w piotrkowskich szko\u0142ach "}],"frid":1891028,"tpb":56.25,"addcss":"","firstmidvideo":"MTg5MTAyOCwxNng5LDAsNTAsNDI1MiwxMzkxNiwwLDAsMSw1MCwwLDAsMCwwLDAsMSwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsLTE7LTE7MjA7MjAsMCwwLDAsMCwwLDswOzA7MDswOzA7MCww","defsd":{"ttextlines":"0","pso":"1","plheight":"200","plback":"#ffffff","nso":"1","navwidth":"30","navheight":"20","navimleft":"1","navimright":"17","navimtop":"0","navimbottom":"0","navback":"rgb(255, 255, 255)","navcolor":"rgba(41, 128, 185, 1)","navbackhv":"rgb(255, 255, 255)","navcolorhv":"rgb(0, 0, 0)","iso":"1","iwidth":"160","iback":"rgb(255, 255, 255)","ibackhv":"rgb(255, 255, 255)","ibackpl":"rgb(255, 255, 255)","pmleft":"0","pmright":"20","pmtop":"20","pmbottom":"10","tmleft":"0","tmright":"20","tmtop":"3","tmbottom":"11","tfontsize":"16","tcolor":"rgb(153, 153, 153)","tcolorhv":"rgb(0, 0, 0)","tcolorpl":"rgb(0, 0, 0)","dfontsize":"12","dcolor":"rgb(255, 255, 255)","dcolorhv":"rgb(255, 255, 255)","dcolorpl":"rgb(255, 255, 255)","dback":"rgba(0, 0, 0, 0.5)","dbackhv":"rgba(0, 0, 0, 0.5)","dbackpl":"rgba(0, 0, 0, 0.5)","spsize":"21","spcolor":"rgb(0, 0, 0)","spcolorhv":"rgb(255, 255, 255)","spcolorpl":"rgb(255, 255, 255)","stcolor":"#ffffff","stcolorhv":"rgba(13, 4, 0, 0.5)","stcolorpl":"rgba(13, 4, 0, 0.5)","playlist":4252}} ; wConfig['uid'] = uid; wConfig['iid'] = iid ; wConfig['cId'] = 'ld'+uid ; wmc=document.getElementById('ld'+uid); widgetPlayer = new WidgetPlayer(wConfig, wmc); }); } } 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){ case "widgetloaded": if(parseInt(com.iid)==iid && !playerInserted){ console.log( "insertujemy" ); console.log( com ); playerInserted = true ; 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 ); } })(2019,"","");