(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 ) + "664" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "664" ; 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.wid664>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":664,"devicetype":"desktop","playlistitems":[{"mid":"1757311","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1757311_1m.jpg","id":"1757311","length":"358","title":"Pristatyta V. S. Buterlevi\u010diaus knyga \u201eKo ie\u0161kojau \u2013 suradau\u201c"},{"mid":"1755411","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1755411_3m.jpg","id":"1755411","length":"518","title":"Panev\u0117\u017eyje pasodintas Signatar\u0173 \u0105\u017euolynas "},{"mid":"1753246","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1753246_4m.jpg","id":"1753246","length":"318","title":"Pasaulin\u0117 l\u0117tin\u0117s obstrukcin\u0117s plau\u010di\u0173 ligos diena"},{"mid":"1738134","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1738134_4m.jpg","id":"1738134","length":"431","title":"Panev\u0117\u017eyje atidaryta etnografinio oparto paroda"},{"mid":"1732157","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1732157_1m.jpg","id":"1732157","length":"305","title":"Respublikin\u0117je Panev\u0117\u017eio ligonin\u0117je pamin\u0117ta Pyrag\u0173 diena"},{"mid":"1728755","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1728755_2m.jpg","id":"1728755","length":"367","title":"Laikinuoju Panev\u0117\u017eio miesto meru paskirtas Petras Luomanas "},{"mid":"1728489","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1728489_3m.jpg","id":"1728489","length":"213","title":"Pu\u0161aloto bendruomen\u0117 \u2013 sportuojanti bendruomen\u0117"},{"mid":"1723983","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1723983_5m.jpg","id":"1723983","length":"252","title":"Pu\u0161aloto bendruomen\u0117 \u012fgyvendino sveikatinimo projekt\u0105"},{"mid":"1717027","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1717027_6m.jpg","id":"1717027","length":"333","title":"\u201eKalnapilio\u201c arenoje - fotograf\u0117s Aldonos Katilien\u0117s paroda \u201eBokso did\u017eiavyriai\u201c"},{"mid":"1712894","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1712894_1m.jpg","id":"1712894","length":"477","title":"Lietuvi\u0161ko kino dienos"},{"mid":"1702849","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1702849_5m.jpg","id":"1702849","length":"247","title":"Panev\u0117\u017eio ligonin\u0117je pamin\u0117ta Pasaulin\u0117 psichikos sveikatos diena"},{"mid":"1701030","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1701030_5m.jpg","id":"1701030","length":"636","title":"Panev\u0117\u017eio muzikiniame teatre jausm\u0173 drama: opera-monodrama \u201e\u017dmogaus balsas\u201c"},{"mid":"1691040","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1691040_4m.jpg","id":"1691040","length":"770","title":"Atidaryta simpoziumo \u201eGlassJazz\u201c stiklo meno ir fotografijos paroda"},{"mid":"1684519","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1684519_6m.jpg","id":"1684519","length":"266","title":"Pristatyta Stanislavos Adomaitien\u0117s knyga"},{"mid":"1683544","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1683544_2m.jpg","id":"1683544","length":"302","title":"\u201e7bet-Lietkabelis\u201c fanai pasiek\u0117 Lietuvos rekord\u0105"},{"mid":"1678839","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1678839_1m.jpg","id":"1678839","length":"130","title":"Panev\u0117\u017eyje atidarytas atnaujintas futbolo stadionas"},{"mid":"1673341","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1673341_3m.jpg","id":"1673341","length":"465","title":"J. Miltinio dramos teatre naujas sezonas, festivalis ir premjera"},{"mid":"1667632","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1667632_3m.jpg","id":"1667632","length":"451","title":"Panev\u0117\u017eio dail\u0117s galerijoje atidarytos keturios naujos parodos"},{"mid":"1663440","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1663440_6m.jpg","id":"1663440","length":"194","title":"Panev\u0117\u017eio dvira\u010di\u0173 lenktyn\u0117se \u2013 gausus b\u016brys sportinink\u0173"},{"mid":"1659719","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1659719_2m.jpg","id":"1659719","length":"461","title":"Panev\u0117\u017eio muzikinis teatras pasitinka jubiliejin\u012f 30-\u0105j\u012f sezon\u0105"},{"mid":"1657380","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1657380_1m.jpg","id":"1657380","length":"152","title":"Panev\u0117\u017eyje atnaujinta Sm\u0117lyn\u0117s gatv\u0117"}],"frid":1757311,"tpb":56.25,"addcss":"","firstmidvideo":"MTc1NzMxMSwxNng5LDMsMywyMDc0LDQwOTIsMSwwLDIsMywwLDAsMiwwLDEsMSwwLDAsMiwwLDAsMCwwLDAsMCwzLDAsLTE7LTE7MjA7MTIwO0JSOzIwOzEyMDsxMjA7NTYsMCwwLDAsMCwwLDA7MDswOzA7MDswOzAsMA==","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":2074}} ; 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 ); } })(664,"","");