1document.addEventListener('DOMContentLoaded', (event) => { 2 if (top.location != location) { 3 if (location.pathname == "/vielen-dank-glasfaser") { 4 top.location.replace(self.location.href); 5 } 6 } 7}); 8 9var params = new URLSearchParams(window.location.search); 10var contactLink = params.get("l"); 11var step = params.get("step"); 12var selectedOption = params.get("selected"); 13var hashValue = params.get("hash"); 14if (contactLink && contactLink.trim() !== '') { 15 // Preserve existing hash params (e.g. historie) and merge navigation context. 16 const sanitizedHash = (hashValue || '').replace(/^#\??/, ''); 17 const hashParams = new URLSearchParams(sanitizedHash); 18 if (step && step.trim() !== '') { 19 hashParams.set('step', step); 20 } 21 if (selectedOption && selectedOption.trim() !== '') { 22 hashParams.set('selected', selectedOption); 23 } 24 const link = new URL(contactLink, window.location.origin); 25 link.hash = hashParams.toString() ? '?' + hashParams.toString() : ''; 26 buttonRendering(link.href); 27} 28function buttonRendering(Link){ 29 var d = document.createElement("div"); 30 d.setAttribute("class", "c-section p-1 bg-lightgray"); 31 32 var d2 = document.createElement("div"); 33 d2.setAttribute("class", "g-container"); 34 d.appendChild(d2); 35 36 var d3 = document.createElement("div"); 37 d3.setAttribute("class", "g-row"); 38 d2.appendChild(d3); 39 40 var d4 = document.createElement("div"); 41 d4.setAttribute("class", "g-col-12"); 42 d3.appendChild(d4); 43 44 var d5 = document.createElement("div"); 45 d5.setAttribute("class", "c-chips c-chips--inline c-chips--inverted"); 46 d4.appendChild(d5); 47 48 var a = document.createElement("a"); 49 a.setAttribute("class", "c-chips__item"); 50 a.setAttribute("id", "backToContactChannel"); 51 a.setAttribute("title", "zurück zum Kontaktkanal"); 52 a.setAttribute("href", Link); 53 d5.appendChild(a); 54 55 var i = document.createElement("i"); 56 i.setAttribute("class", "c-chips__icon-left ic ic__arrow-left-solid"); 57 a.appendChild(i); 58 59 var d6 = document.createElement("div"); 60 d6.setAttribute("class", "c-chips__text"); 61 a.appendChild(d6); 62 63 var t = document.createTextNode("zurück zum Kontaktkanal"); 64 d6.appendChild(t); 65 66 const findDivElement = () => { 67 const main = document.querySelector('main'); 68 if (main) { 69 main.insertBefore(d, main.firstChild); 70 } else { 71 setTimeout(findDivElement, 100); 72 } 73 }; 74 findDivElement(); 75}
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.