1document.addEventListener('DOMContentLoaded', function () { 2 /** Affiliate **/ 3 let nodeContent = document.querySelectorAll('.node-content'); 4 let isFilled = false; 5 nodeContent.forEach(content => { 6 if (content && !isFilled) { 7 let linkAffiliate = content.querySelector('.link-affiliate'); 8 if (linkAffiliate) { 9 let affInfo = document.getElementById('affiliateInfo'); 10 let name = location.hostname; 11 12 if (name.includes('agrarheute')) { 13 name = 'agrarheute'; 14 } else if (name.includes('wochenblatt')) { 15 name = 'Bayerisches Landwirtschaftliches Wochenblatt'; 16 } else if (name.includes('landundforst')) { 17 name = 'LAND&FORST'; 18 } else if (name.includes('krautundrueben')) { 19 name = 'kraut&rüben'; 20 } else if (name.includes('pirsch')) { 21 name = 'PIRSCH'; 22 } else if (name.includes('forstpraxis')) { 23 name = 'forstpraxis'; 24 } else if (name.includes('bienenundnatur')) { 25 name = 'bienen&natur'; 26 } else if (name.includes('bauernzeitung')) { 27 name = 'Bauernzeitung'; 28 } 29 30 affInfo.innerHTML = ` 31 <div class="info-box"> 32 Die mit einem <span class="cart-affiliate"></span> Symbol gekennzeichneten Links sind sogenannte Affiliate-Links. Das bedeutet, dass ${name} eine Provision erhält, wenn Sie über diesen Link ein Produkt kaufen. Für Sie als Kunden entstehen selbstverständlich keine Zusatzkosten. Affiliate-Links haben keinen Einfluss auf unsere Contenterstellung. 33 </div>`; 34 35 isFilled = true; 36 } 37 } 38 }); 39});
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.