(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 ) + "684" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "684" ; 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.wid684>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":684,"devicetype":"desktop","playlistitems":[{"mid":"1437041","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437041_4m.jpg","id":"1437041","length":"19","title":"Vilniaus senamiestis"},{"mid":"1437037","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437037_1m.jpg","id":"1437037","length":"23","title":"Vilniaus senamiestis"},{"mid":"1437035","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437035_6m.jpg","id":"1437035","length":"14","title":"Autorius K\u0119stutis Pa\u0161kevi\u010dius"},{"mid":"1437034","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437034_1m.jpg","id":"1437034","length":"17","title":"Autorius Edgaras Mascinskas"},{"mid":"1437033","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437033_1m.jpg","id":"1437033","length":"9","title":"Autorius Edgaras Mascinskas"},{"mid":"1437030","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437030_6m.jpg","id":"1437030","length":"43","title":"Autorius Saulius Lisauskas"},{"mid":"1385430","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385430_1m.jpg","id":"1385430","length":"485","title":"Kelion\u0117 \u012f Estij\u0105 Saremos sala - Talinas - Pernu"},{"mid":"1385386","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385386_5m.jpg","id":"1385386","length":"99","title":"Panev\u0117\u017eys | Senvag\u0117"},{"mid":"1385377","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385377_6m.jpg","id":"1385377","length":"54","title":"Ilgiausios dienos \u0161vent\u0117 - JONIN\u0116S"},{"mid":"1385367","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385367_1m.jpg","id":"1385367","length":"81","title":"Dvarai ir pilys"},{"mid":"1117127","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1117127_4m.jpg","id":"1117127","length":"2174","title":"Lietuvi\u0173 skalikai istorin\u0117je raidoje"},{"mid":"806330","poster_url":"https://cdnt.onnetwork.tv/poster/8/0/806330_2m.jpg","id":"806330","length":"885","title":"Dokumentinis filmas apie \u0160iauli\u0173 in\u017einierius"},{"mid":"721830","poster_url":"https://cdnt.onnetwork.tv/poster/7/2/721830_6m.jpg","id":"721830","length":"1094","title":"Lietuvos vandens pauk\u0161\u010diai"},{"mid":"721825","poster_url":"https://cdnt.onnetwork.tv/poster/7/2/721825_5m.jpg","id":"721825","length":"90","title":"5 juokingiausi pauk\u0161\u010di\u0173 garsai pasaulyje"},{"mid":"682928","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682928_5m.jpg","id":"682928","length":"601","title":"Lietuvos pauk\u0161\u010diai: vieversiai"},{"mid":"682912","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682912_4m.jpg","id":"682912","length":"1128","title":"Bir\u017e\u0173 Kra\u0161tas"},{"mid":"682885","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682885_2m.jpg","id":"682885","length":"173","title":"Gerv\u0117 - U\u017egav\u0117ni\u0173 pauk\u0161tis"},{"mid":"682856","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682856_4m.jpg","id":"682856","length":"898","title":"FotoMed\u017eiokl\u0117 - Gabrielius Ser"},{"mid":"681333","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/681333_6m.jpg","id":"681333","length":"224","title":"RKL B diviziono finalas"},{"mid":"535994","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/535994_4m.jpg","id":"535994","length":"187","title":"Menininkai, garsinantys Lietuvos vard\u0105 pasaulyje "},{"mid":"535991","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/535991_6m.jpg","id":"535991","length":"177","title":"Pasikeit\u0119 miesteliai "},{"mid":"535988","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/535988_4m.jpg","id":"535988","length":"188","title":"Atsigav\u0119 kurortai"},{"mid":"535982","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/535982_1m.jpg","id":"535982","length":"270","title":"Literat\u016brin\u0117 paroda: Jurgai Ivanauskaitei \u2013 60-tosios gimimo metin\u0117s"},{"mid":"531567","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531567_1m.jpg","id":"531567","length":"172","title":"Kilnojama paroda \u201ePaslapties kult\u016bra: sovietin\u0117 cenz\u016bra Lietuvoje\u201c"},{"mid":"531562","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531562_3m.jpg","id":"531562","length":"182","title":"Lietuvos teatro s\u0117km\u0117 pasaulyje"},{"mid":"531555","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531555_2m.jpg","id":"531555","length":"179","title":"Olimpiniai medaliai"},{"mid":"531549","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531549_3m.jpg","id":"531549","length":"322","title":"Gandro diena"},{"mid":"531547","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531547_6m.jpg","id":"531547","length":"64","title":"Kovarni\u0173 diena"}],"frid":1437041,"tpb":56.25,"addcss":"","firstmidvideo":"MTQzNzA0MSwxNng5LDQsMywyMTEyLDkxNTAsMSwwLDIsMywwLDAsNywwLDEsMSwwLDAsMiwwLDAsMCwwLDAsMCwwLDAsLTE7LTE7MjA7MTIwO0JSOzIwOzEyMDsxMjA7NTYsMCw2MCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","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":2112}} ; 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 ); } })(684,"","");