var uww_styles_href = "https://pogoda.unian.net/build/external_widget.css"; var uww_styles_link = document.createElement('link'); uww_styles_link.setAttribute('rel', 'stylesheet'); uww_styles_link.setAttribute('href', uww_styles_href); document.getElementsByTagName('head')[0].appendChild(uww_styles_link); var uww_template = " <style> .unian-widget-sm__list div:after, .unian-widget-lg__list div:after { background-color: #00824c; } .unian-widget-sm, .unian-widget-lg{ width:160px; } .unian-widget-lg__day-forecast{ color: #1f1f26; } </style><div class="weather-widget-container"><div class="unian-widget-lg" style=" background-color: #fff;border-color: #00824c"><div class="unian-widget-lg__main"><div class="unian-widget-lg__title" style=" color: #1f1f26">Соломия</div><div class="unian-widget-lg__sub-title" style=" color: #1f1f26">Гайворонский район, Кировоградская область, Украина</div><div class="unian-widget-lg__c" style="background-color: #00824c; color: #ffffff"><small>+</small><span>21</span><small class="unian-widget-lg__deg">°</small><img src="https://pogoda.unian.net/images/icons_with_bg/d200.svg" alt="Небольшая облачность"></div><div class="unian-widget-lg__text" style=" color: #1f1f26">Небольшая облачность</div><a href="https://pogoda.unian.net/" class="unian-widget-lg__link" style="color: #00824c">Подробный прогноз</a></div><div class="unian-widget-lg__list" style=" color: #1f1f26"></div></div></div>"; var uww_container = document.getElementById('unian_weather_widget'); if (uww_container) { uww_container.innerHTML = htmlDecode(uww_template); } function htmlDecode(input){ var e = document.createElement('div'); e.innerHTML = input; return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue; }