Moottoripyörät

document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('.elementor-tabs').forEach(function (tabsContainer) { const tabTitles = tabsContainer.querySelectorAll('.elementor-tab-title'); const tabContents = tabsContainer.querySelectorAll('.elementor-tab-content'); tabContents.forEach(function (content, index) { const contentText = content.innerText.trim(); const isEmpty = contentText === '' || contentText === '-'; if (isEmpty) { // Piilota otsikko ja sisältö, jos sisältö on tyhjä if (tabTitles[index]) tabTitles[index].style.display = 'none'; content.style.display = 'none'; } }); }); });