(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 ) + "1206" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "1206" ; 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.wid1206>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":1206,"devicetype":"desktop","playlistitems":[{"mid":"535988","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/535988_4m.jpg","id":"535988","length":"188","title":"Atsigav\u0119 kurortai"},{"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":"1385367","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385367_1m.jpg","id":"1385367","length":"81","title":"Dvarai ir pilys"},{"mid":"397377","poster_url":"https://cdnt.onnetwork.tv/poster/3/9/397377_3m.jpg","id":"397377","length":"1849","title":"Vie\u0161a paskaita \u201eLDK \u017evalgybos istorijos ap\u017evalga nuo XIII a. iki XVII a. vidurio\u201c"},{"mid":"506052","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/506052_6m.jpg","id":"506052","length":"214","title":" Agronomo patarimai .Ro\u017eyn\u0173 \u012frengimas"},{"mid":"502678","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/502678_2m.jpg","id":"502678","length":"1147","title":"Lietuvos mi\u0161k\u0173 pauk\u0161\u010diai"},{"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":"682928","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682928_5m.jpg","id":"682928","length":"601","title":"Lietuvos pauk\u0161\u010diai: vieversiai"},{"mid":"535991","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/535991_6m.jpg","id":"535991","length":"177","title":"Pasikeit\u0119 miesteliai "},{"mid":"500260","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/500260_1m.jpg","id":"500260","length":"241","title":"Klaipedos apskr. - Vent\u0117s rago ornitologin\u0117 stotis - \u0160ilut\u0117s r."},{"mid":"681333","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/681333_6m.jpg","id":"681333","length":"224","title":"RKL B diviziono finalas"},{"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":"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":"1437041","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437041_4m.jpg","id":"1437041","length":"19","title":"Vilniaus senamiestis"},{"mid":"531555","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531555_2m.jpg","id":"531555","length":"179","title":"Olimpiniai medaliai"},{"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":"1385386","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385386_5m.jpg","id":"1385386","length":"99","title":"Panev\u0117\u017eys | Senvag\u0117"},{"mid":"486248","poster_url":"https://cdnt.onnetwork.tv/poster/4/8/486248_1m.jpg","id":"486248","length":"1164","title":"Pa\u017eintinis filmas apie Jurbarko kra\u0161t\u0105"},{"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":"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":"397371","poster_url":"https://cdnt.onnetwork.tv/poster/3/9/397371_6m.jpg","id":"397371","length":"190","title":"NASA marsaeigio Perseverance nusileidimo Marse animacijos"},{"mid":"531547","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531547_6m.jpg","id":"531547","length":"64","title":"Kovarni\u0173 diena"},{"mid":"1385375","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385375_3m.jpg","id":"1385375","length":"164","title":"Japoni\u0161ko sodo ramyb\u0117"},{"mid":"682919","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682919_3m.jpg","id":"682919","length":"110","title":"Vieversio Diena"},{"mid":"1385382","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385382_2m.jpg","id":"1385382","length":"123","title":"Sakur\u0173 parkas | 2023"},{"mid":"531549","poster_url":"https://cdnt.onnetwork.tv/poster/5/3/531549_3m.jpg","id":"531549","length":"322","title":"Gandro diena"},{"mid":"397383","poster_url":"https://cdnt.onnetwork.tv/poster/3/9/397383_1m.jpg","id":"397383","length":"361","title":"Kernavo pelk\u0117, R\u016bdnink\u0173 giria, R\u016bdnink\u0173 poligonas"},{"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":"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":"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":"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":"682877","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/682877_5m.jpg","id":"682877","length":"1478","title":"FotoMed\u017eiokl\u0117 - Gabrielius Ser"},{"mid":"1385380","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385380_1m.jpg","id":"1385380","length":"241","title":"Naujoji Vilnia | GRA\u017dIOJI LIETUVA"},{"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":"1437037","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437037_1m.jpg","id":"1437037","length":"23","title":"Vilniaus senamiestis"},{"mid":"1117113","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1117113_4m.jpg","id":"1117113","length":"175","title":"Pamario \u0161vyturi\u0173 kelias. \u0160ilut\u0117s kra\u0161tas i\u0161 arti"},{"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":"1437034","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437034_1m.jpg","id":"1437034","length":"17","title":"Autorius Edgaras Mascinskas"},{"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":"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":"1385388","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1385388_6m.jpg","id":"1385388","length":"71","title":"Vilniaus senamiestis | Vilniaus stogai"},{"mid":"1117115","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1117115_5m.jpg","id":"1117115","length":"18","title":"Velyk\u0173 aitvarai. KARALI\u0172 PASAKA"}],"frid":535988,"tpb":56.25,"addcss":"","firstmidvideo":"NTM1OTg4LDE2eDksMywzLDMyOTYsMTI4MDgsMSwwLDEsMywwLDAsMiwwLDEsMSwwLDAsNCwwLDAsMCwwLDAsMCwzLDAsLTE7LTE7MjA7MTAwO0JSOzIwOzEwMDsxMDA7NTYsMCwwLDAsMCwwLDA7MDswOzA7MDswOzAsMA==","defsd":{"ttextlines":"3","pso":"1","plheight":"165","plback":"#010101","nso":"1","navwidth":"30","navheight":"20","navimleft":"1","navimright":"17","navimtop":"0","navimbottom":"0","navback":"rgb(1, 1, 1)","navcolor":"rgb(255, 255, 255)","navbackhv":"rgb(1, 1, 1)","navcolorhv":"rgb(159, 38, 222)","iso":"1","iwidth":"160","iback":"rgb(23, 23, 23)","ibackhv":"rgb(23, 23, 23)","ibackpl":"rgb(83, 88, 92)","pmleft":"0","pmright":"20","pmtop":"20","pmbottom":"10","tmleft":"0","tmright":"20","tmtop":"3","tmbottom":"11","tfontsize":"14","tcolor":"rgb(255, 255, 255)","tcolorhv":"rgb(159, 38, 222)","tcolorpl":"rgb(255, 255, 255)","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":"#000000","spcolorhv":"rgb(0, 0, 0)","spcolorpl":"rgb(255, 255, 255)","stcolor":"#ffffff","stcolorhv":"rgb(159, 38, 222)","stcolorpl":"rgba(13, 4, 0, 0.5)","playlist":"3296"}} ; 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 ); } })(1206,"","");