(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 ) + "843" ; var uid="id"+Date.now() * Math.floor( 1 + Math.random() * 100 ) + "843" ; 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.wid843>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":843,"devicetype":"desktop","playlistitems":[{"mid":"654868","poster_url":"https://cdnt.onnetwork.tv/poster/6/5/654868_5m.jpg","id":"654868","length":"562","title":"\u0422\u041e\u041f \u0418\u041d\u0422\u0415\u0420\u0415\u0421\u041d\u042b\u0415 \u041c\u0410\u0428\u0418\u041d\u041a\u0418 \u0414\u041b\u042f \u041f\u0420\u0418\u0413\u041e\u0422\u041e\u0412\u041b\u0415\u041d\u0418\u042f \u0415\u0414\u042b \u041e\u0422 \u041a\u041e\u0422\u041e\u0420\u042b\u0425 \u041d\u0415\u0412\u041e\u0417\u041c\u041e\u0416\u041d\u041e \u041e\u0422\u041e\u0420\u0412\u0410\u0422\u042c \u0413\u041b\u0410\u0417\u0410"},{"mid":"654839","poster_url":"https://cdnt.onnetwork.tv/poster/6/5/654839_6m.jpg","id":"654839","length":"856","title":"\u0422\u041e\u041f \u0420\u0430\u0437\u043e\u0431\u043b\u043e\u0447\u0435\u043d\u0438\u044f \u0441\u0430\u043c\u044b\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0444\u043e\u043a\u0443\u0441\u043e\u0432 \u0432 \u043c\u0438\u0440\u0435"},{"mid":"654851","poster_url":"https://cdnt.onnetwork.tv/poster/6/5/654851_6m.jpg","id":"654851","length":"629","title":"\u0422\u041e\u041f 10 \u0421\u0443\u043f\u0435\u0440 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0412\u044b \u043d\u0435 \u0437\u043d\u0430\u043b\u0438"},{"mid":"654845","poster_url":"https://cdnt.onnetwork.tv/poster/6/5/654845_6m.jpg","id":"654845","length":"583","title":"\u0422\u041e\u041f35 \u041c\u043e\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0446\u043e\u0432\u043a\u0430\u043c\u0438,\u0441\u043d\u044f\u0442\u044b\u0445 \u043d\u0430 \u043a\u0430\u043c\u0435\u0440\u0443!"},{"mid":"654888","poster_url":"https://cdnt.onnetwork.tv/poster/6/5/654888_5m.jpg","id":"654888","length":"652","title":"\u0422\u041e\u041f23 \u041d\u0415\u0412\u0415\u0420\u041e\u042f\u0422\u041d\u042b\u0425 \u041c\u041e\u041c\u0415\u041d\u0422\u0410 \u0421\u041d\u042f\u0422\u042b\u0425 \u041d\u0410 \u041a\u0410\u041c\u0415\u0420\u0423"},{"mid":"654830","poster_url":"https://cdnt.onnetwork.tv/poster/6/5/654830_1m.jpg","id":"654830","length":"617","title":"\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438\u0437 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0438"}],"frid":654868,"tpb":56.25,"addcss":"","firstmidvideo":"NjU0ODY4LDE2eDksMyw1MCwyNjMzLDEwMTI5LDEsMCwxLDUwLDAsMCwyLDAsMSwxLDAsMCw0LDAsMCwwLDAsMCwwLDMsMCwtMTstMTsyMDsyMCwwLDAsMCwwLDAsOzA7MDswOzA7MDswLDA=","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(255, 255, 255)","navcolor":"#363535","navbackhv":"#a7a7a7","navcolorhv":"rgb(255, 255, 255)","iso":"1","iwidth":"160","iback":"rgb(255, 255, 255)","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":"#4d992f","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":"#4d992f","stcolorpl":"rgba(13, 4, 0, 0.5)","playlist":2633}} ; 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 ); } })(843,"","");