let infl_active = 2; var infl_domen = 'kreit.lenteres.ru'; if(infl_active == 2){ document.addEventListener('DOMContentLoaded', function () { const infl_body = document.querySelector("body"); var infl_url = 'https://'+ infl_domen +'?utm_medium=referral&utm_source='+ location.hostname; const infl_buttonContainer = document.createElement('div'); infl_buttonContainer.className = 'ilmeta_fixed-button'; if(infl_domen == 'kreit.lenteres.ru'){ infl_buttonContainer.innerHTML += ''+ 'Наше приложение'+ ''; }else if(infl_domen == 'smart-reading.lenteres.ru'){ infl_buttonContainer.innerHTML += ''+ 'Наш маркет'+ ''; }else{ infl_buttonContainer.innerHTML += ''+ ' '+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ 'Торгуйся!'+ ''; } infl_body.appendChild(infl_buttonContainer); }); }