(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 ) + "325" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "325" ; var playerInserted = false ; var nstylet = ' div.totalcontainerexs.widgettype4{ display:block;width:100%;margin:0px;height:auto;box-sizing:border-box;align-items:stretch; background-color:transparent ;}' + ' div.playercontainerexs.widgettype4{ width:100%;height:auto;display:block; }' + ' div.widgetcontainerexs.widgettype4{ width:100%;height:auto;display:block; }' + ' div.widgetcontainerexs.widgettype4>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.wid325>div{ padding-bottom:0%; height:200px; }' + ' div.widgetcontainerexs.widgettype4>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 widgettype4" ; 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=202610271140' ).then(({WidgetPlayer})=>{ var wConfig = {"widgetId":325,"devicetype":"desktop","playlistitems":[{"mid":"30802","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30802_1m.jpg","id":"30802","length":"52","title":"BODYGUARD ZAWODOWIEC - fragment filmu PL (premiera 18 08 2017)","etiquette":""},{"mid":"30801","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30801_6m.jpg","id":"30801","length":"116","title":"NA UK\u0141ADY NIE MA RADY - oficjalny zwiastun komedii","etiquette":""},{"mid":"30795","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30795_4m.jpg","id":"30795","length":"135","title":"BOTOKS - drugi oficjalny zwiastun filmu Patryka Vegi","etiquette":""},{"mid":"30596","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30596_3m.jpg","id":"30596","length":"118","title":"Z\u0141E MAMU\u015aKI 2","etiquette":""},{"mid":"30595","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30595_6m.jpg","id":"30595","length":"134","title":"Niczym Call od Duty! Wybuchowy zwiastun filmu RENEGACI","etiquette":""},{"mid":"30510","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30510_6m.jpg","id":"30510","length":"139","title":"LIGA SPRAWIEDLIWOS\u0301CI I Zwiastun F3","etiquette":""},{"mid":"30508","poster_url":"https://cdnt.onnetwork.tv/poster/3/0/30508_6m.jpg","id":"30508","length":"68","title":"LISTY DO M 3 - zwiastun teaserowy [HD]","etiquette":""},{"mid":"29763","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29763_5m.jpg","id":"29763","length":"267","title":"BOTOKS - ZWIASTUN REZ\u0307YSERSKI BEZ CENZURY","etiquette":""},{"mid":"29762","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29762_2m.jpg","id":"29762","length":"139","title":"DOM WYGRANYCH zwiastun F3 pl sub","etiquette":""},{"mid":"29760","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29760_4m.jpg","id":"29760","length":"150","title":"ALIBI COM - zobacz nowy polski zwiastun (premiera 21 lipca 2017)","etiquette":""},{"mid":"29759","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29759_1m.jpg","id":"29759","length":"132","title":"Cudowny ch\u0142opak - zobacz polski zwiastun (premiera prze\u0142om 2017 2018)","etiquette":""},{"mid":"29476","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29476_2m.jpg","id":"29476","length":"143","title":"Fernando \u2013 zwiastun 2","etiquette":""},{"mid":"29472","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29472_3m.jpg","id":"29472","length":"60","title":"PADDINGTON 2 - zwiastun PL (premiera: 29.12.2017)","etiquette":""},{"mid":"29192","poster_url":"https://cdnt.onnetwork.tv/poster/2/9/29192_4m.jpg","id":"29192","length":"163","title":"WONDER WOMAN I Zwiastun CoS pl sub","etiquette":""},{"mid":"28423","poster_url":"https://cdnt.onnetwork.tv/poster/2/8/28423_1m.jpg","id":"28423","length":"139","title":"DUNKIERKA I Oficjalny zwiastun filmu PL","etiquette":""},{"mid":"28133","poster_url":"https://cdnt.onnetwork.tv/poster/2/8/28133_4m.jpg","id":"28133","length":"30","title":"JUTRO BE\u0328DZIEMY SZCZE\u0328S\u0301LIWI - zwiastun PL 30- (premiera: 19.05.2017)","etiquette":""},{"mid":"28032","poster_url":"https://cdnt.onnetwork.tv/poster/2/8/28032_2m.jpg","id":"28032","length":"138","title":"VOLTA - oficjalny zwiastun komedii Juliusza Machulskiego [HD]","etiquette":""},{"mid":"28017","poster_url":"https://cdnt.onnetwork.tv/poster/2/8/28017_6m.jpg","id":"28017","length":"125","title":"Gwiezdne wojny: ostatni Jedi - zwiastun #1 [dubbing]","etiquette":""},{"mid":"27650","poster_url":"https://cdnt.onnetwork.tv/poster/2/7/27650_6m.jpg","id":"27650","length":"146","title":"LIGA SPRAWIEDLIWOS\u0301CI I Oficjalny zwiastun filmu I PL","etiquette":""},{"mid":"27618","poster_url":"https://cdnt.onnetwork.tv/poster/2/7/27618_6m.jpg","id":"27618","length":"146","title":"TO I Oficjalny zwiastun filmu PL","etiquette":""},{"mid":"27805","poster_url":"https://cdnt.onnetwork.tv/poster/2/7/27805_3m.jpg","id":"27805","length":"131","title":"RIKO PRAWIE BOCIAN - oficjalny zwiastun animacji","etiquette":""}],"frid":30802,"tpb":56.25,"addcss":"","firstmidvideo":"MzA4MDIsMTZ4OSw0LDUwLDE0NDQsNjcxNSwxLDAsMSw1MCw1LDAsMCwwLDEsMSwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMDswOy0xOy0xO1RMOzA7MDswOzU2LDAsMCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","defsd":{"ttextlines":"3","pso":"1","plheight":"200","plback":"rgb(255, 255, 255)","nso":"1","navwidth":"30","navheight":"20","navimleft":"1","navimright":"17","navimtop":"0","navimbottom":"0","navback":"rgb(255, 255, 255)","navcolor":"rgb(0, 0, 0)","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":1444}} ; 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 ); } })(325,"","");