(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 ) + "672" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "672" ; 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:165px;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;padding-bottom:0%; }' + // ' div.widgetcontainerexs.wid672>div{ padding-bottom:0%; height:165px; }' + ' 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":672,"devicetype":"desktop","playlistitems":[{"mid":"1827724","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1827724_3m.jpg","id":"1827724","length":"817","title":"Tre\u010diadienio, sausio 29 d., JPtv naujienos"},{"mid":"1826468","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1826468_4m.jpg","id":"1826468","length":"807","title":"Antradienio, sausio 28 d., JPtv naujienos"},{"mid":"1826001","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1826001_1m.jpg","id":"1826001","length":"84","title":"Panev\u0117\u017eys u\u017e 2,5 mln. eur\u0173 atnaujins miesto gatves ir vie\u0161\u0105sias erdves"},{"mid":"1825921","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1825921_5m.jpg","id":"1825921","length":"61","title":"Lietuvoje patvirtintas pirmasis \u0161iemet pauk\u0161\u010di\u0173 gripo atvejis"},{"mid":"1825743","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1825743_1m.jpg","id":"1825743","length":"200","title":"DIENOS KLAUSIMAS. Ar reikt\u0173 ma\u017einti imigrant\u0173 \u012f Lietuv\u0105 skai\u010di\u0173?"},{"mid":"1825733","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1825733_5m.jpg","id":"1825733","length":"42","title":"Panev\u0117\u017eio miesto odontologijos poliklinikai ie\u0161komas vadovas"},{"mid":"1825133","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1825133_5m.jpg","id":"1825133","length":"895","title":"Pirmadienio, sausio 27 d., JPtv naujienos"},{"mid":"1825069","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1825069_6m.jpg","id":"1825069","length":"192","title":"Panev\u0117\u017eio apskrityje daug\u0117ja gaisr\u0173 ir juose \u017euvusi\u0173 \u017emoni\u0173"},{"mid":"1825002","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1825002_1m.jpg","id":"1825002","length":"82","title":"Panev\u0117\u017eio rajone sustabdytame automobilyje pasienie\u010diai aptiko daugiau nei 13 t\u016bkst. pakeli\u0173 baltarusi\u0161k\u0173 cigare\u010di\u0173"},{"mid":"1824978","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1824978_6m.jpg","id":"1824978","length":"48","title":"\u0160iandien paai\u0161k\u0117s naujasis Panev\u0117\u017eio visuomen\u0117s sveikatos biuro vadovas"},{"mid":"1824902","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1824902_2m.jpg","id":"1824902","length":"58","title":"Panev\u0117\u017eio moksleivi\u0173 namai pagaliau sulauk\u0117 remonto"},{"mid":"1824679","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1824679_5m.jpg","id":"1824679","length":"161","title":"DIENOS KLAUSIMAS. Ar panev\u0117\u017eie\u010diai r\u016b\u0161iuoja atliekas?"},{"mid":"1824662","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1824662_1m.jpg","id":"1824662","length":"66","title":"Panev\u0117\u017eio rajono pirtys - nuostolingos"},{"mid":"1822503","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822503_3m.jpg","id":"1822503","length":"298","title":"Pagerbti geriausi 2024-\u0173j\u0173 met\u0173 Panev\u0117\u017eio sportininkai ir treneriai"},{"mid":"1822456","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822456_2m.jpg","id":"1822456","length":"942","title":"Penktadienio, sausio 24 d., JPtv naujienos"},{"mid":"1822328","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822328_6m.jpg","id":"1822328","length":"76","title":"Panev\u0117\u017eyje startuoja nemokamos treniruot\u0117s senjorams po atviru dangumi"},{"mid":"1822223","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822223_5m.jpg","id":"1822223","length":"68","title":"Aik\u0161tel\u0117 \u2013 panev\u0117\u017eie\u010diams ne\u012fveikiama kli\u016btis: vairuotojai sk\u0119sta duob\u0117se"},{"mid":"1822187","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822187_1m.jpg","id":"1822187","length":"103","title":"Degalai brango beveik visose ES \u0161alyse, benzinas pigiausias i\u0161liko Lietuvoje"},{"mid":"1822183","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822183_6m.jpg","id":"1822183","length":"109","title":"Panev\u0117\u017eio teisme d\u0117l 43 migrant\u0173 gabenimo per Lietuv\u0105 bus teisiami ukrainie\u010diai"},{"mid":"1822169","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1822169_5m.jpg","id":"1822169","length":"87","title":"DIENOS KLAUSIMAS. Kaip vertinate planus atsisakyti 1 ir 2 euro cent\u0173 monet\u0173?"},{"mid":"1821328","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1821328_3m.jpg","id":"1821328","length":"1173","title":"Ketvirtadienio, sausio 23 d., JPtv naujienos"}],"frid":1827724,"tpb":56.25,"addcss":"","firstmidvideo":"MTgyNzcyNCwxNng5LDQsMywyMTAxLDcyODAsMSwwLDIsMywwLDAsNywwLDQsMSwwLDAsMiwwLDAsMCwwLDAsMCwwLDAsLTE7LTE7MjA7MTIwO0JSOzIwOzEyMDsxMjA7NTYsMCw2MCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","defsd":{"ttextlines":"3","pso":"1","plheight":"165","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":"20","pmtop":"20","pmbottom":"10","tmleft":"0","tmright":"20","tmtop":"3","tmbottom":"11","tfontsize":"14","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":2101}} ; 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 ); } })(672,"","");