document.addEventListener('DOMContentLoaded', function () { if (window.location.hostname === 'de.qsys.com') { setTimeout(function () { const contactLinks = document.querySelectorAll('a[href="https://de.qsys.com/contact-us/"]'); contactLinks.forEach(link => { if (link.textContent.trim() === 'Kontaktieren Sie uns') { link.href = 'https://de.qsys.com/kontakt/kontaktieren-sie-unser-systems-team/q-sys-ansprechpartner-in-der-dach-region/'; } }); const privacyLinks = document.querySelectorAll('a[href="https://www.qsc.com/policy/privacy/"]'); privacyLinks.forEach(link => { link.href = 'https://www.qsc.com/de/policy/privacy'; }); const menuItems = document.querySelectorAll('li.megamenu-tab-body__series'); menuItems.forEach(item => { if (item.textContent.includes('Dienstleistungen')) { item.style.display = 'none'; } }); }, 1000); } if (window.location.hostname === 'jp.qsys.com') { setTimeout(function () { const iframe = document.querySelector('iframe[src*="youtube.com/embed/TMoh9205ulc"]'); if (iframe) { iframe.src = 'https://www.youtube.com/embed/cCALLBlof_Y?enablejsapi=1&origin=https%3A%2F%2Fjp.qsys.com'; } }, 1000); } if (window.location.hostname === 'www.qsysasia.cn') { setTimeout(function () { const links = document.querySelectorAll('a[href="https://www.qsc.com/policy/cookie/"]'); links.forEach(link => { link.href = 'https://www.qsc.com/zh/policy/cookie'; }); const iframe = document.querySelector('iframe[src*="youtube.com/embed/TMoh9205ulc"]'); if (iframe) { const newIframe = document.createElement('iframe'); newIframe.width = '560'; newIframe.height = '315'; newIframe.src = 'https://player.bilibili.com/player.html?isOutside=true&aid=114574527365204&bvid=BV1nCj2ztEZW&cid=30165634975&p=1&page=3&high_quality=1&autoplay=0'; newIframe.scrolling = 'no'; newIframe.border = '0'; newIframe.frameBorder = 'no'; newIframe.frameSpacing = '0'; newIframe.allowFullscreen = true; newIframe.className = iframe.className; iframe.parentNode.replaceChild(newIframe, iframe); } }, 1000); } }); document.addEventListener('DOMContentLoaded', function () { function clearInnerHTML(elements) { Array.from(elements).forEach(element => element.innerHTML = ''); } function updateLinkHrefs(container, oldHref, newHref) { container.querySelectorAll('a[href="' + oldHref + '"]').forEach(link => { link.href = newHref; }); } if (document.body.classList.contains('smartling-de')) { var footerLinks = document.querySelectorAll('footer a'); // Select all anchor tags in the footer footerLinks.forEach(function (link) { var originalHref = link.getAttribute('href'); if (originalHref.includes('/?L=')) { var updatedHref = originalHref.replace('/?L=', '/'); // Replace '/?L=' with '/' link.setAttribute('href', updatedHref); } }); clearInnerHTML(document.getElementsByClassName('home_section_2')); // Check for URLs containing /es/ or /fr/ function hasLanguageSpecificUrl(languagePaths) { return Array.from(document.querySelectorAll('a')).some(anchor => languagePaths.some(path => anchor.getAttribute('href').includes(path))); } let mainTag = document.querySelector('main'); if (mainTag && (hasLanguageSpecificUrl(['/es/', '/fr/', '/ch/']) || hasLanguageSpecificUrl(['/kontakt/kontaktieren-sie-unser-systems-team/q-sys-systems-german-kontakt/', '/rechtlich/impressum/', '/support/garantieerklaerung/garantieerklaerung/', '/support/garantieerklaerung/warranty-statement-ar/', '/support/garantieerklaerung/warranty-statement-es/', '/support/garantieerklaerung/warranty-statement-fr/', '/support/garantieerklaerung/', '/ressourcen/neuigkeiten/detail/q-sys-lance-un-programme-de-partenariat-technologique/']))) { mainTag.classList.add('notranslate'); } const seriesItems = document.querySelectorAll('.megamenu-tab-body__series'); seriesItems.forEach(function (item) { if (item.textContent.includes('Dienstleistungen') || item.textContent.includes('Services')) { item.style.display = 'none'; } }); } else { clearInnerHTML(document.getElementsByClassName('home_section_3')); } }); document.addEventListener('DOMContentLoaded', function () { var newsDiv = document.querySelector('div.news.news-single'); if (newsDiv) { document.body.classList.add('notranslate'); } });