(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 ) + "1261" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "1261" ; 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:156px;left:0px;top:0px;border:none;margin:0px;padding:0px;overflow:hidden;padding-bottom:0%; }' + // ' div.widgetcontainerexs.wid1261>div{ padding-bottom:0%; height:156px; }' + ' 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":1261,"devicetype":"desktop","playlistitems":[{"mid":"1781247","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1781247_1m.jpg","id":"1781247","length":"726","title":"\u201eVakar\u0173 pasaulis\" - plona riba tarp dirbtinio intelekto ir \u017emonijos"},{"mid":"1770343","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1770343_1m.jpg","id":"1770343","length":"858","title":"5 \u012fsimintini fantastiniai serialai"},{"mid":"1728714","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1728714_1m.jpg","id":"1728714","length":"726","title":"5 \u012fsp\u016bdingi serialai apie Romos imperij\u0105"},{"mid":"1716406","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/1716406_6m.jpg","id":"1716406","length":"878","title":"Serialas \u201eReklamos vilkai\"- atidus \u017evilgsnis \u012f 60-\u0173j\u0173 Amerik\u0105"},{"mid":"1672527","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1672527_5m.jpg","id":"1672527","length":"653","title":"Serialas \u201eSausas \u012fstatymas\" politini\u0173 intrig\u0173 ir gangsteri\u0173 vald\u017eios kronikos"},{"mid":"1626973","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1626973_1m.jpg","id":"1626973","length":"865","title":"Serialas \u201eBaltasis Lotosas\u201c \u2013 nuo\u017emi kelion\u0117 per prabang\u0105 ir intrigas"},{"mid":"1617316","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/1617316_1m.jpg","id":"1617316","length":"1033","title":"Serialas \u201eFargo\u201c - kriminalinio humoro Molotovo kokteilis"},{"mid":"1588603","poster_url":"https://cdnt.onnetwork.tv/poster/1/5/1588603_1m.jpg","id":"1588603","length":"871","title":"10 i\u0161skirtini\u0173 kino ir TV veiksmo scen\u0173 nufilmuot\u0173 vienu dubliu"},{"mid":"1509791","poster_url":"https://cdnt.onnetwork.tv/poster/1/5/1509791_6m.jpg","id":"1509791","length":"855","title":"Serialas \"Tikras detektyvas\" \u2013 HBO brangakmenis"},{"mid":"1452428","poster_url":"https://cdnt.onnetwork.tv/poster/1/4/1452428_1m.jpg","id":"1452428","length":"1329","title":"5 filmai apie Ba\u017eny\u010dios nusikaltimus"},{"mid":"1388366","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1388366_1m.jpg","id":"1388366","length":"1153","title":"5 naujojo lietuvi\u0161ko kino filmai"},{"mid":"1324352","poster_url":"https://cdnt.onnetwork.tv/poster/1/3/1324352_1m.jpg","id":"1324352","length":"927","title":"5 kino k\u016briniai tyrin\u0117jantys mad\u0105"},{"mid":"881909","poster_url":"https://cdnt.onnetwork.tv/poster/8/8/881909_1m.jpg","id":"881909","length":"836","title":"5 nauji siaubo serialai"},{"mid":"842501","poster_url":"https://cdnt.onnetwork.tv/poster/8/4/842501_1m.jpg","id":"842501","length":"1191","title":"5 geriausi lietuvi\u0161ki filmai"},{"mid":"683025","poster_url":"https://cdnt.onnetwork.tv/poster/6/8/683025_1m.jpg","id":"683025","length":"799","title":"5 LGBTQ+ bendruomen\u0119 tyrin\u0117jantys serialai"},{"mid":"676179","poster_url":"https://cdnt.onnetwork.tv/poster/6/7/676179_1m.jpg","id":"676179","length":"1215","title":"Tobula absurdi\u0161ko humoro doz\u0117, klasika tapusiame seriale \u201eThe Office\u201c"},{"mid":"583208","poster_url":"https://cdnt.onnetwork.tv/poster/5/8/583208_1m.jpg","id":"583208","length":"785","title":"5 \u017dmonijos aistras tyrin\u0117jantys serialai"},{"mid":"529611","poster_url":"https://cdnt.onnetwork.tv/poster/5/2/529611_1m.jpg","id":"529611","length":"1063","title":"\"Kinomanija.lt: Rikas ir Mortis\""},{"mid":"503366","poster_url":"https://cdnt.onnetwork.tv/poster/5/0/503366_1m.jpg","id":"503366","length":"827","title":"Prisimenant \u201eDrakon\u0173 kov\u0105\" / Dragon Ball"},{"mid":"493731","poster_url":"https://cdnt.onnetwork.tv/poster/4/9/493731_1m.jpg","id":"493731","length":"946","title":"Kinomanija.lt / 5 intriguojantys Stiveno Kingo k\u016bryba paremti serialai"},{"mid":"478913","poster_url":"https://cdnt.onnetwork.tv/poster/4/7/478913_1m.jpg","id":"478913","length":"811","title":"Kinomanija.lt / 5 alternatyvios istorijos serialai"},{"mid":"459944","poster_url":"https://cdnt.onnetwork.tv/poster/4/5/459944_3m.jpg","id":"459944","length":"675","title":"Kinomanija.lt / 5 d\u0117mes\u012f kaustantys serialai"}],"frid":1781247,"tpb":56.25,"addcss":"","firstmidvideo":"MTc4MTI0NywxNng5LDMsMywzNDMyLDEzMzczLDEsMCwyLDMsMCwwLDIsMCw0LDEsMCwwLDIsMCwwLDAsMCwwLDAsMywyLC0xOy0xOzIwOzEyMDtCUjsyMDsxMjA7MTIwOzU2LDAsMCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","defsd":{"ttextlines":"3","pso":"1","plheight":"156","plback":"rgb(23, 23, 23)","nso":"1","navwidth":"30","navheight":"20","navimleft":"1","navimright":"17","navimtop":"0","navimbottom":"0","navback":"rgb(23, 23, 23)","navcolor":"#ffffff","navbackhv":"rgb(23, 23, 23)","navcolorhv":"rgb(159, 38, 222)","iso":"1","iwidth":"160","iback":"#171717","ibackhv":"#171717","ibackpl":"#53585c","pmleft":"10","pmright":"10","pmtop":"20","pmbottom":"2","tmleft":"10","tmright":"10","tmtop":"3","tmbottom":"5","tfontsize":"14","tcolor":"#ffffff","tcolorhv":"rgb(159, 38, 222)","tcolorpl":"#ffffff","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(0, 0, 0)","spcolorpl":"rgb(255, 255, 255)","stcolor":"#ffffff","stcolorhv":"rgb(159, 38, 222)","stcolorpl":"rgba(13, 4, 0, 0.5)","playlist":3432}} ; 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 ); } })(1261,"","");