function _jsload(src){var sc=document.createElement("script");sc.type="text/javascript";sc.async=true;sc.src=src;var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(sc,s);};(function(){document.getElementById("unit_101978").innerHTML="<style>.container-101978 { margin: 20px 0 10px; } .container-101978__header { margin-bottom: 15px; max-height: 22px; overflow: hidden; text-align: left; } .container-101978__header-logo { display: inline-block; vertical-align: top; height: 22px !important; width: auto; border: none; } .container-101978 .zen-container .list-container-item { width: 192px; margin-right: 16px; } /* nav */ .container-101978 .zen-container .left-button .arrow, .container-101978 .zen-container .right-button .arrow { position: relative; background: transparent; } .container-101978 .zen-container .left-button .arrow:after, .container-101978 .zen-container .right-button .arrow:after { content: ''; position: absolute; bottom: 7px; border: 9px solid transparent; } .container-101978 .zen-container .right-button .arrow:after { left: 12px; border-left: 12px solid #000; } .container-101978 .zen-container .left-button .arrow:after { left: 0; border-right: 12px solid #000; }</style>";var cb=function(){var clickTracking = "";var parent_element = JsAPI.Dom.getElement("unit_101978"); parent_element.removeAttribute('id'); var a = parent_element.querySelector('a'); if (a) parent_element.removeChild(a); var container = JsAPI.Dom.createDom('div', 'container-101978', JsAPI.Dom.createDom('div', 'container-101978__header', [ JsAPI.Dom.createDom('a', { 'class': 'container-101978__header-logo-link', 'href': 'https://smi2.ru/', 'target': '_blank', 'rel': 'noopener noreferrer nofollow' }, JsAPI.Dom.createDom('img', { 'class': 'container-101978__header-logo', 'src': '//static.smi2.net/static/logo/smi2.svg', 'alt': 'СМИ2' })) ])); JsAPI.Dom.appendChild(parent_element, container); var itemOptions = { 'isLazy': false, 'defaultIsDark': true, 'color': undefined, /* 'color': {'r': 38, 'g': 38, 'b': 38}, */ 'defaultColor': {'r': 38, 'g': 38, 'b': 38}, 'lightingThreshold': 180, }; var itemContentRenderer = function (parent, model, index) { JsAPI.Ui.ZenBlockRenderItem(parent, itemOptions, { 'url': model['url'], 'image': model['image'], 'title': model['title'], 'subtitle': undefined, /* 'subtitle': model['topic_name'] */ }); }; JsAPI.Ui.ZenBlock({ 'block_type': JsAPI.Ui.BlockType.NEWS, 'page_size': 10, 'max_page_count': Infinity, 'parent_element': container, 'item_content_renderer': itemContentRenderer, 'block_id': 101978, 'fields': JsAPI.Dao.NewsField.IMAGE | JsAPI.Dao.NewsField.TITLE | JsAPI.Dao.NewsField.TOPIC, 'click_tracking': undefined, }, function (block) {}, function (reason) {console.error('Error:', reason);});};if(!window.jsapi){window.jsapi=[];_jsload("//static.smi2.net/static/jsapi/jsapi.v5.20.10.ru_RU.js");}window.jsapi.push(cb);}());/* StatMedia */(function(w,d,c){(w[c]=w[c]||[]).push(function(){try{w.statmedia50155=new StatMedia({"id":50155,"user_id":null,"user_datetime":1727175231229,"session_id":null,"gen_datetime":1727175231231});}catch(e){}});if(!window.__statmedia){var p=d.createElement('script');p.type='text/javascript';p.async=true;p.src='https://cdnjs.smi2.ru/sm.js';var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(p,s);}})(window,document,'__statmedia_callbacks');/* /StatMedia */