(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(); var uid="id"+iid; 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:240px;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;padding-bottom:0%; }' + // ' div.widgetcontainerexs.wid1486>div{ padding-bottom:0%; height:240px; }' + ' 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 = '
' + '
' + '
' + '
' ; 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":1486,"devicetype":"desktop","playlistitems":[{"mid":"1512592","poster_url":"https://cdnt.onnetwork.tv/poster/1/5/1512592_2m.jpg","id":"1512592","length":"45","title":"Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1 Test1"},{"mid":"1512595","poster_url":"https://cdnt.onnetwork.tv/poster/1/5/1512595_4m.jpg","id":"1512595","length":"23","title":"Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2 Test 2"},{"mid":"1512599","poster_url":"https://cdnt.onnetwork.tv/poster/1/5/1512599_1m.jpg","id":"1512599","length":"41","title":"Test 3 Test 3 Test 3 Test 3 Test 3 Test 3 Test 3 Test 3 Test 3Test 3 Test 3 Test 3 Test 3 Test 3 Test 3 "},{"mid":"1512601","poster_url":"https://cdnt.onnetwork.tv/poster/1/5/1512601_2m.jpg","id":"1512601","length":"63","title":"Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4 Test 4"},{"mid":"1497351","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1497351_4m.jpg","id":"1497351","length":"21","title":"Cupra - wideo testowe [test test test test test test test]"}],"frid":1512592,"tpb":177.777777778,"addcss":"","firstmidvideo":"MTUxMjU5Miw5eDE2LDAsMCw0MDE3LDE1MTQyLDEsMCwxLDM2LDAsMCwwLDAsNCwxLDAsMSwxLDIsMCwwLDEsMCwwLDAsMCwtMTstMTsyMDsyMDtCUjsyMDsyMDsyMDszMDgsMCw1MCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","defsd":{"ttextlines":"3","pso":"1","plheight":"240","plback":"#ffffff","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":"10","pmtop":"10","pmbottom":"10","tmleft":"0","tmright":"10","tmtop":"3","tmbottom":"11","tfontsize":"14","tcolor":"rgb(0, 0, 0)","tcolorhv":"rgb(60, 60, 60)","tcolorpl":"rgb(153, 153, 153)","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":4017}} ; wConfig['uid'] = uid; wConfig['iid'] = iid ; wConfig['cId'] = 'ld'+uid ; wmc=document.getElementById('ld'+uid); var 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){ 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 ); } })(1486,"","");