document.addEventListener('DOMContentLoaded', function(){ var s = document.createElement('script'); s.setAttribute('src', 'https://api.statisto.ru/js/script.js?v=0.2'); s.setAttribute('charset', 'utf-8'); s.onload = function() { window.statisto = new Statisto({ api_key: 'DrHaq7U6KzhGTqopF4nj', is_phone_hide: 0 }); }; document.body.appendChild(s); var l = document.createElement('link'); l.setAttribute('href', 'https://api.statisto.ru/css/style.css'); l.setAttribute('rel', 'stylesheet'); document.body.appendChild(l); var ua = window.navigator.userAgent; var msie = ua.indexOf("MSIE "); if(msie !== -1) { var l = document.createElement('link'); l.setAttribute('href', 'https://api.statisto.ru/css/style-ie.css'); l.setAttribute('rel', 'stylesheet'); document.body.appendChild(l); } });