1document.addEventListener('DOMContentLoaded', function () { 2 if (window.location.hostname === 'de.qsys.com') { 3 setTimeout(function () { 4 const contactLinks = document.querySelectorAll('a[href="https://de.qsys.com/contact-us/"]'); 5 contactLinks.forEach(link => { 6 if (link.textContent.trim() === 'Kontaktieren Sie uns') { 7 link.href = 'https://de.qsys.com/kontakt/kontaktieren-sie-unser-systems-team/q-sys-ansprechpartner-in-der-dach-region/'; 8 } 9 }); 10 11 const privacyLinks = document.querySelectorAll('a[href="https://www.qsc.com/policy/privacy/"]'); 12 privacyLinks.forEach(link => { 13 link.href = 'https://www.qsc.com/de/policy/privacy'; 14 }); 15 16 const menuItems = document.querySelectorAll('li.megamenu-tab-body__series'); 17 menuItems.forEach(item => { 18 if (item.textContent.includes('Dienstleistungen')) { 19 item.style.display = 'none'; 20 } 21 }); 22 }, 1000); 23 } 24 25 if (window.location.hostname === 'jp.qsys.com') { 26 const style = document.createElement('style'); 27 style.textContent = "@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap'); *, *::before, *::after, body, html { font-family: 'Noto Sans JP', sans-serif !important; }"; 28 document.head.appendChild(style); 29 30 setTimeout(function () { 31 const iframe = document.querySelector('iframe[src*="youtube.com/embed/TMoh9205ulc"]'); 32 if (iframe) { 33 iframe.src = 'https://www.youtube.com/embed/cCALLBlof_Y?enablejsapi=1&origin=https%3A%2F%2Fjp.qsys.com'; 34 } 35 }, 1000); 36 } 37 38 if (window.location.hostname === 'www.qsysasia.cn') { 39 setTimeout(function () { 40 const links = document.querySelectorAll('a[href="https://www.qsc.com/policy/cookie/"]'); 41 links.forEach(link => { 42 link.href = 'https://www.qsc.com/zh/policy/cookie'; 43 }); 44 45 const iframe = document.querySelector('iframe[src*="youtube.com/embed/TMoh9205ulc"]'); 46 if (iframe) { 47 const newIframe = document.createElement('iframe'); 48 newIframe.width = '560'; 49 newIframe.height = '315'; 50 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'; 51 newIframe.scrolling = 'no'; 52 newIframe.border = '0'; 53 newIframe.frameBorder = 'no'; 54 newIframe.frameSpacing = '0'; 55 newIframe.allowFullscreen = true; 56 newIframe.className = iframe.className; 57 58 iframe.parentNode.replaceChild(newIframe, iframe); 59 } 60 }, 1000); 61 } 62}); 63 64document.addEventListener('DOMContentLoaded', function () { 65 function clearInnerHTML(elements) { 66 Array.from(elements).forEach(element => element.innerHTML = ''); 67 } 68 69 function updateLinkHrefs(container, oldHref, newHref) { 70 container.querySelectorAll('a[href="' + oldHref + '"]').forEach(link => { 71 link.href = newHref; 72 }); 73 } 74 75 if (document.body.classList.contains('smartling-de')) { 76 var footerLinks = document.querySelectorAll('footer a'); // Select all anchor tags in the footer 77 78 footerLinks.forEach(function (link) { 79 var originalHref = link.getAttribute('href'); 80 81 if (originalHref.includes('/?L=')) { 82 var updatedHref = originalHref.replace('/?L=', '/'); // Replace '/?L=' with '/' 83 link.setAttribute('href', updatedHref); 84 } 85 }); 86 87 clearInnerHTML(document.getElementsByClassName('home_section_2')); 88 89 // Check for URLs containing /es/ or /fr/ 90 function hasLanguageSpecificUrl(languagePaths) { 91 return Array.from(document.querySelectorAll('a')).some(anchor => 92 languagePaths.some(path => anchor.getAttribute('href').includes(path))); 93 } 94 95 let mainTag = document.querySelector('main'); 96 if (mainTag && (hasLanguageSpecificUrl(['/es/', '/fr/', '/ch/']) || 97 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/']))) { 98 mainTag.classList.add('notranslate'); 99 } 100 101 102 const seriesItems = document.querySelectorAll('.megamenu-tab-body__series');
103 seriesItems.forEach(function (item) { 104 if (item.textContent.includes('Dienstleistungen') || item.textContent.includes('Services')) { 105 item.style.display = 'none'; 106 } 107 }); 108 109 } else { 110 clearInnerHTML(document.getElementsByClassName('home_section_3')); 111 } 112}); 113 114document.addEventListener('DOMContentLoaded', function () { 115 var newsDiv = document.querySelector('div.news.news-single'); 116 if (newsDiv) { 117 document.body.classList.add('notranslate'); 118 } 119}); 120//for marketo form 121document.addEventListener('click', function (e) { 122 var link = e.target.closest('a[href^="https://lnd.qsc.com"]'); 123 if (!link || link.href.includes('ref_page=')) return; 124 var refPage = encodeURIComponent(window.location.href); 125 link.href += (link.href.includes('?') ? '&' : '?') + 'ref_page=' + refPage; 126});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.