(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 ) + "1288" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "1288" ; 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.wid1288>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":1288,"devicetype":"desktop","playlistitems":[{"mid":"1827268","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1827268_4m.jpg","id":"1827268","length":"1609","title":"\u012evertino prezidento \u201erinkimus\u201c Baltarusijoje: tai \u2013 blogai ir bus tik blogiau"},{"mid":"1827267","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1827267_6m.jpg","id":"1827267","length":"1590","title":"I\u0161 \u201eDakaro\u201c gr\u012f\u017e\u0119s R. Baciu\u0161ka: buvo toki\u0173 dram\u0173, kur lietuviams norisi"},{"mid":"1827265","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1827265_3m.jpg","id":"1827265","length":"1610","title":"Blinkevi\u010di\u016btinti, desalom\u0117jizacija, apsipopierinti, karovizija: kas taps 2024 met\u0173 \u017eod\u017eiu?"},{"mid":"1821344","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1821344_3m.jpg","id":"1821344","length":"1615","title":"Lietuva gynybai nori skirti 6 procentus BVP: i\u0161 koki\u0173 ki\u0161eni\u0173 i\u0161trauksime \u0161iuos milijardus?"},{"mid":"1820304","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1820304_1m.jpg","id":"1820304","length":"1507","title":" Baltarusiai renkasi nauj\u0105 Luka\u0161enk\u0105: kod\u0117l Kremliui b\u016bt\u0173 neparanku, jei Baltarusija i\u0161nykt\u0173?"},{"mid":"1820300","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1820300_3m.jpg","id":"1820300","length":"1616","title":"\u201eAukso am\u017eius\u201c \u2013 D. Trumpas tapo JAV prezidentu: deja, bet mes jam ma\u017eai \u012fdom\u016bs"},{"mid":"1820296","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1820296_6m.jpg","id":"1820296","length":"1671","title":"\u201eDakaras\u201c baig\u0117si: k\u0105 galime pasakyti apie Lietuvos desant\u0105?"},{"mid":"1817134","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1817134_6m.jpg","id":"1817134","length":"1478","title":" Po policinink\u0105 prie kiekvieno grybo: u\u017e musmires lietuviai s\u0117s \u012f kal\u0117jim\u0105?"},{"mid":"1817128","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1817128_6m.jpg","id":"1817128","length":"1604","title":"Maisto kainos Lietuvoje: k\u0105 su jomis gali padaryti Maisto taryba?"},{"mid":"1817108","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1817108_2m.jpg","id":"1817108","length":"1601","title":"\u201eNemuno au\u0161ros\u201c saul\u0117lydis: kuo baigsis A. \u0160irinskien\u0117s egzodas?"},{"mid":"1817103","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1817103_5m.jpg","id":"1817103","length":"1584","title":"Naujoji \u0161vietimo ministr\u0117: ar jai pavyks \u012fveikti krizes?"}],"frid":1827268,"tpb":56.25,"addcss":"","firstmidvideo":"MTgyNzI2OCwxNng5LDQsMywzNDk2LDQwMzIsMSwwLDIsMywwLDAsMiwwLDQsMSwwLDAsMiwwLDAsMCwwLDAsMCwwLDAsLTE7LTE7MjA7MTIwO0JSOzIwOzEyMDsxMjA7NDQ0LDAsMCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","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":3496}} ; 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 ); } })(1288,"","");