(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 ) + "2110" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "2110" ; 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:181px;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;padding-bottom:0%; }' + // ' div.widgetcontainerexs.wid2110>div{ padding-bottom:0%; height:181px; }' + ' 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":2110,"devicetype":"desktop","playlistitems":[{"mid":"267804","poster_url":"https://cdnt.onnetwork.tv/poster/2/6/267804_3m.jpg","id":"267804","length":"38","title":"kepami lietiniai / cooking pancakes"},{"mid":"84334","poster_url":"https://cdnt.onnetwork.tv/poster/8/4/84334_1m.jpg","id":"84334","length":"233","title":"Christmas Gozinaki Georgian cuisine"},{"mid":"84324","poster_url":"https://cdnt.onnetwork.tv/poster/8/4/84324_1m.jpg","id":"84324","length":"160","title":"Rose Shaped Apple Baked Dessert by Cooking with Manuela"},{"mid":"1437034","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437034_1m.jpg","id":"1437034","length":"17","title":"Autorius Edgaras Mascinskas"},{"mid":"1417919","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1417919_3m.jpg","id":"1417919","length":"123","title":"\u017dygiai prie Dubysos"},{"mid":"1823528","poster_url":"https://cdnt.onnetwork.tv/poster/1/8/1823528_4m.jpg","id":"1823528","length":"55","title":"4 paslaptingi faktai apie Antarktid\u0105, kuri\u0173 grei\u010diausiai dar ne\u017einojote"},{"mid":"1437037","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437037_1m.jpg","id":"1437037","length":"23","title":"Vilniaus senamiestis"},{"mid":"1417911","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1417911_5m.jpg","id":"1417911","length":"143","title":"P\u0117s\u010di\u0173j\u0173 \u017eygis kunigaik\u0161\u010dio Gedimino takais. Veliuona"},{"mid":"1005386","poster_url":"https://cdnt.onnetwork.tv/poster/1/0/1005386_1m.jpg","id":"1005386","length":"199","title":"Pasaulio cepelin\u0173 diena"},{"mid":"1437030","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437030_6m.jpg","id":"1437030","length":"43","title":"Autorius Saulius Lisauskas"},{"mid":"1437041","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437041_4m.jpg","id":"1437041","length":"19","title":"Vilniaus senamiestis"},{"mid":"1464948","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1464948_1m.jpg","id":"1464948","length":"260","title":" Asta Pilypait\u0117 - T\u0117vui"},{"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":"673929","poster_url":"https://cdnt.onnetwork.tv/poster/6/7/673929_5m.jpg","id":"673929","length":"338","title":"Tradiciniai cepelinai"},{"mid":"1437033","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1437033_1m.jpg","id":"1437033","length":"9","title":"Autorius Edgaras Mascinskas"},{"mid":"673906","poster_url":"https://cdnt.onnetwork.tv/poster/6/7/673906_2m.jpg","id":"673906","length":"326","title":"\u010cebur\u0117kai su m\u0117sa"}],"frid":267804,"tpb":56.25,"addcss":"","firstmidvideo":"MjY3ODA0LDE2eDksNCwzLDUxNjMsMTc5OTAsMSwwLDIsMywwLDAsNywwLDQsMSwwLDAsNCwwLDAsMCwwLDAsMCwwLDAsLTE7LTE7MjA7MTIwO0JSOzIwOzEyMDsxMjA7NTYsMCw2MCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","defsd":{"ttextlines":"3","pso":"1","plheight":"181","plback":"rgb(255, 255, 255)","nso":"1","navwidth":"30","navheight":"20","navimleft":"1","navimright":"17","navimtop":"0","navimbottom":"0","navback":"rgb(252, 252, 252)","navcolor":"#363535","navbackhv":"#a7a7a7","navcolorhv":"rgb(252, 252, 252)","iso":"1","iwidth":"160","iback":"#fcfcfc","ibackhv":"rgb(217, 219, 217)","ibackpl":"#d9dbd9","pmleft":"10","pmright":"10","pmtop":"20","pmbottom":"2","tmleft":"10","tmright":"10","tmtop":"3","tmbottom":"5","tfontsize":"14","tcolor":"#292929","tcolorhv":"rgb(255, 255, 255)","tcolorpl":"#292929","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":"#000000","spcolorpl":"rgb(255, 255, 255)","stcolor":"#ffffff","stcolorhv":"rgb(255, 255, 255)","stcolorpl":"rgba(13, 4, 0, 0.5)","playlist":"5163"}} ; 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 ); } })(2110,"","");