(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 ) + "2044" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "2044" ; 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.wid2044>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":2044,"devicetype":"desktop","playlistitems":[{"mid":"507660","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507660_3m.jpg","id":"507660","length":"200","title":"Recycle Plastic Bottles into Bees shaped plant Pot DIY"},{"mid":"168573","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/168573_2m.jpg","id":"168573","length":"89","title":"6 \u0441\u043e\u0432\u0435\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0436\u0438\u043b\u043e\u0441\u044c \u043b\u0443\u0447\u0448\u0435"},{"mid":"507666","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507666_5m.jpg","id":"507666","length":"17","title":"DIY ROOM DECOR IDEAS THAT LOOK TRULY MAGICAL"},{"mid":"125301","poster_url":"https://cdnt.onnetwork.tv/poster/1/2/125301_6m.jpg","id":"125301","length":"745","title":"14 Fun and Creative Cake Decorating Ideas Like a Pro"},{"mid":"529773","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529773_1m.jpg","id":"529773","length":"668","title":"Kokias bridkelnes rinktis?"},{"mid":"312873","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/312873_6m.jpg","id":"312873","length":"79","title":"\u042f\u043f\u043e\u043d\u0441\u043a\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b - \u0423\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0435 \u043e\u0442 \u0436\u0438\u0432\u043e\u0442\u0430"},{"mid":"314468","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/314468_6m.jpg","id":"314468","length":"130","title":"Man Buried Alive, Discovered By Cemetery Visitor"},{"mid":"507670","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507670_5m.jpg","id":"507670","length":"486","title":"3 FALL HIGH BUNS Easy Hairstyles "},{"mid":"312881","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/312881_6m.jpg","id":"312881","length":"217","title":"Toddler Sneaks Out of Bed to Curl Up With Dog"},{"mid":"574942","poster_url":"https://cdnt.onnetwork.tv/poster/5/7/574942_5m.jpg","id":"574942","length":"417","title":"Skanios\u2502Kanel\u0117s\u2502Receptas"},{"mid":"507685","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507685_4m.jpg","id":"507685","length":"132","title":"Naminis limonadas"},{"mid":"313961","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/313961_4m.jpg","id":"313961","length":"113","title":"Altadena woman reunites with man buried alive as baby 20 years later"},{"mid":"529751","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529751_6m.jpg","id":"529751","length":"942","title":"DRoN\u0172 TESTAS | Mavic Air vs Mavic Mini"},{"mid":"507654","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507654_1m.jpg","id":"507654","length":"268","title":"Medin\u0117s terasos alyvavimas"},{"mid":"529920","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529920_3m.jpg","id":"529920","length":"30","title":"Sarg\u0101 savu naudu un datus! Esi gudr\u0101ks par kr\u0101pniekiem!"},{"mid":"529911","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529911_4m.jpg","id":"529911","length":"223","title":"Pensiju eksperimenta dal\u012bbnieki r\u012bko ball\u012bti"},{"mid":"313964","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/313964_3m.jpg","id":"313964","length":"17","title":"This Hero Catches Dog After 100ft Fall From Balcony"},{"mid":"529799","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529799_1m.jpg","id":"529799","length":"542","title":"Best Ice-cream in Lithuania? Our honest opinion "},{"mid":"507688","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507688_2m.jpg","id":"507688","length":"100","title":"Ox cheeks (Jau\u010dio \u017eandai)"},{"mid":"529757","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529757_6m.jpg","id":"529757","length":"261","title":"Kokia kremin\u0117 pudra tau labiausiai tinka? | Product review"},{"mid":"574944","poster_url":"https://cdnt.onnetwork.tv/poster/5/7/574944_1m.jpg","id":"574944","length":"277","title":"Kijevo kotletas | Receptas"},{"mid":"507635","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507635_1m.jpg","id":"507635","length":"574","title":"Vizitin\u0117 kortel\u0117 per 10 minu\u010di\u0173? Video pamoka."},{"mid":"529766","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529766_5m.jpg","id":"529766","length":"734","title":"A\u0160TRIAUSI PASAULIO RAMENAI"},{"mid":"313721","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/313721_1m.jpg","id":"313721","length":"210","title":"KHAN was abused and left paralyzed... see what happened NEXT"},{"mid":"507683","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/507683_6m.jpg","id":"507683","length":"352","title":"Sushi receptas"},{"mid":"312851","poster_url":"https://cdnt.onnetwork.tv/poster/3/1/312851_3m.jpg","id":"312851","length":"232","title":"'Just the Way You Are' - Liverpool One Flashmob"},{"mid":"529916","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529916_6m.jpg","id":"529916","length":"95","title":"Avokado un olu sal\u0101tu recepte"}],"frid":507660,"tpb":56.25,"addcss":"","firstmidvideo":"NTA3NjYwLDE2eDksNCwzLDQ5NTgsMTc0NjcsMSwwLDIsMywwLDAsMiwwLDQsMSwwLDAsNCwwLDAsMCwwLDAsMCwwLDAsLTE7LTE7MjA7MTAwO0JSOzIwOzEwMDsxMDA7NTYsMCwwLDAsMCwwLDA7MDswOzA7MDswOzAsMA==","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":"4958"}} ; 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 ); } })(2044,"","");