document.addEventListener('DOMContentLoaded', () => { const imgMicros = document.querySelectorAll('.img-cov'); imgMicros.forEach((element, index) => { if (index % 2 === 0) { element.style.float = 'left'; element.style.margin = '25px 25px 25px 0'; } else { element.style.float = 'right'; element.style.margin = '25px 0 25px 25px'; } }); const menuList = document.querySelectorAll('.menu li'); if (menuList) { menuList.forEach(item => { item.setAttribute('data-content', item.textContent); }); } const header = document.querySelector('header'); const burger = document.querySelector('.burger'); if (burger) { burger.addEventListener('click', () => { header.classList.toggle('active'); }); } const headings = document.querySelectorAll('.content h2, .content h3'); headings.forEach(function(heading) { let words = heading.textContent.split(' '); let newWords = []; words.forEach(function(word) { if (word.toLowerCase().indexOf("avada") !== -1 || word.indexOf("авада") !== -1) { newWords.push('' + word + ''); } else { newWords.push(word); } }); heading.innerHTML = newWords.join(' '); }); });