(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 ) + "1094" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "1094" ; 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.wid1094>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 = '
' + ' ' ; 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":1094,"devicetype":"desktop","playlistitems":[{"mid":"1149184","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1149184_6m.jpg","id":"1149184","length":"731","title":"Perkame VISAS \u017eaidim\u0173 peles i\u0161 ALIEXPRESS"},{"mid":"1149163","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1149163_1m.jpg","id":"1149163","length":"48","title":"Naujosios iOS 16.4 privalumai"},{"mid":"620548","poster_url":"https://cdnt.onnetwork.tv/poster/6/2/620548_2m.jpg","id":"620548","length":"172","title":"Mazda CX-60"},{"mid":"238711","poster_url":"https://cdnt.onnetwork.tv/poster/2/3/238711_5m.jpg","id":"238711","length":"5","title":"Huawei P40 serijos anonsas"},{"mid":"1156266","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1156266_2m.jpg","id":"1156266","length":"21","title":"Naujojo \u201eXiaomi 13 Ultra\u201c flagmano vizualiacija"},{"mid":"854359","poster_url":"https://cdnt.onnetwork.tv/poster/8/5/854359_1m.jpg","id":"854359","length":"11","title":"GEN.TRAVEL Design study driving side view"},{"mid":"1149161","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1149161_6m.jpg","id":"1149161","length":"645","title":"Samsung Galaxy S23 serijos baterijos testas"},{"mid":"170573","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/170573_2m.jpg","id":"170573","length":"91","title":"Oficialiai pristatyta Samsung Galaxy Note 10 serija"},{"mid":"1159643","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1159643_3m.jpg","id":"1159643","length":"15","title":"Naujas LG logotipas"},{"mid":"1155692","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1155692_6m.jpg","id":"1155692","length":"165","title":"\u201eUlefone Power Armor 19T\u201c atsparumo test\u0173 rezultatai"},{"mid":"620576","poster_url":"https://cdnt.onnetwork.tv/poster/6/2/620576_1m.jpg","id":"620576","length":"881","title":"Mazda CX-60"},{"mid":"1149193","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1149193_6m.jpg","id":"1149193","length":"12","title":"Barselonoje pristatytos \u201eChameleon Coloring\u201c technologijos veikimas"},{"mid":"1150346","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1150346_4m.jpg","id":"1150346","length":"313","title":"Kaip pasikeisti Ignitis elektros plan\u0105 - detali instrukcija"},{"mid":"1149194","poster_url":"https://cdnt.onnetwork.tv/poster/1/1/1149194_5m.jpg","id":"1149194","length":"256","title":"PIGIAU JAU TURB\u016aT NEB\u016aNA: i\u0161pakuojam BELAID\u0118 RGB GARSO KOLON\u0116L\u0118"},{"mid":"168300","poster_url":"https://cdnt.onnetwork.tv/poster/1/6/168300_2m.jpg","id":"168300","length":"118","title":"Drone GW89 filmuota med\u017eiaga"},{"mid":"623595","poster_url":"https://cdnt.onnetwork.tv/poster/6/2/623595_4m.jpg","id":"623595","length":"21","title":"Sony Xperia Ace 3 renders"},{"mid":"177409","poster_url":"https://cdnt.onnetwork.tv/poster/1/7/177409_2m.jpg","id":"177409","length":"377","title":"Kugoo S1 Pro ap\u017evalga"}],"frid":1149184,"tpb":56.25,"addcss":"","firstmidvideo":"MTE0OTE4NCwxNng5LDMsMywzMTE3LDExODIyLDEsMCwxLDMsMCwwLDIsMCw0LDEsMCwwLDQsMCwwLDAsMCwwLDAsMywwLC0xOy0xOzIwOzEyMDtCUjsyMDsxMjA7MTIwOzU2LDAsMCwwLDAsMCwwOzA7MDswOzA7MDswLDA=","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":3117}} ; wConfig['uid'] = uid; wConfig['iid'] = iid ; wConfig['cId'] = 'ld'+uid ; wmc=document.getElementById('ld'+uid); var 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 ); } })(1094,"","");