1/** 2 * @author Jules Weigel, Karo3.de 3 * @copyright Copyright (C) Jules Weigel, Karo3.de 4 * @license Jules Weigel, Karo3.de 5 * 6 */ 7 8 9 10 11//Blog iteme verbauen 12// let catContent = document.querySelector('.items-intro-cat'); 13// let catContentItems = document.querySelectorAll('.items-intro-cat > *'); 14 15 16//Article iteme verbauen 17let articleTxt = document.querySelector('.article-body'); 18let articleItems = document.querySelectorAll('.article-body > *'); 19 20 21function rePosArticle(item, pos, altPos, parent, parentItems, placeholder) { 22 23 if(typeof (item) != 'undefined' && item != null){ 24 25 let itemKey = 0; 26 27 if(typeof (placeholder) != 'undefined' && placeholder != null){ 28 29 parent.insertBefore(item, placeholder); 30 31 } else if (parentItems.length <= pos && altPos) { 32 33 parent.appendChild(item); 34 35 } else if (parentItems.length <= pos && !altPos) { 36 37 item.remove(); 38 39 } else { 40 41 parentItems.forEach(function (parentItem) { 42 43 if (itemKey === pos && pos !== 0) { 44 if (parentItems[itemKey - 1].classList.contains('img-right') || parentItems[itemKey - 1].classList.contains('img-left') || parentItems[itemKey - 1].tagName === 'H1' || parentItems[itemKey - 1].tagName === 'H2' || parentItems[itemKey - 1].tagName === 'H3' || parentItems[itemKey - 1].tagName === 'H4' || parentItems[itemKey - 1].tagName === 'DIV') 45 pos++; 46 } 47 48 itemKey++; 49 50 }); 51 52 parent.insertBefore(item, parentItems[pos]); 53 54 } 55 56 } 57 58} 59 60 61if (articleTxt) { 62 63 let toBottomItem = document.querySelector('.fx-repositioning-article-bottom'), 64 toMiddleItem = document.querySelector('.fx-repositioning-article-middle'), 65 article = document.querySelector('.article'), 66 articleId = 0; 67 68 if (typeof (article) != 'undefined' && article != null) { 69 if (article.hasAttribute('data-article-id')) { 70 articleId = parseInt(article.getAttribute('data-article-id')); 71 } 72 } 73 74 if(typeof (toBottomItem) != 'undefined' && toBottomItem != null && articleId >= 5217){ 75 rePosArticle(toBottomItem, articleItems.length - 4, articleItems.length, articleTxt, articleItems, document.querySelector('.placeholder-article-bottom')); 76 } else if(typeof (toBottomItem) != 'undefined' && toBottomItem != null && articleId >= 5035){ 77 rePosArticle(toBottomItem, articleItems.length - 3, articleItems.length, articleTxt, articleItems, document.querySelector('.placeholder-article-bottom')); 78 } else if (typeof (toBottomItem) != 'undefined' && toBottomItem != null) { 79 rePosArticle(toBottomItem, articleItems.length, articleItems.length, articleTxt, articleItems, document.querySelector('.placeholder-article-bottom')); 80 } 81 82 if(typeof (toMiddleItem) != 'undefined' && toMiddleItem != null){ 83 rePosArticle(toMiddleItem, 4, 1, articleTxt, articleItems, document.querySelector('.add-placeholder-rectangle')) 84 } 85 86} 87// else if (catContent) { 88// 89// rePosArticle(document.querySelector('.ads-horizontal-cat'), 0, 0, catContent, catContentItems); 90// rePosArticle(document.querySelector('.ads-vertical-cat-1'), 1, 0, catContent, catContentItems); 91// rePosArticle(document.querySelector('.ads-vertical-cat-2'), 5, 0, catContent, catContentItems); 92// rePosArticle(document.querySelector('.ads-vertical-cat-3'), 9, 0, catContent, catContentItems); 93// 94// } 95 96 97// Werbebanner Probleme beheben 98//document.querySelector('#Ads_BA_BS').style.marginLeft = '0'; 99// let adsBaBsWidth = window.outerWidth - document.querySelector('#header').offsetWidth; 100//document.querySelector('#Ads_BA_BS').style.width = adsBaBsWidth + 'px'; 101 102 103// document.addEventListener('DOMContentLoaded', function () { 104// 105// //Anzeige Titel ausblenden bze 106// setTimeout(function () { 107// 108// let ads = document.querySelectorAll('.ads-item'); 109// 110// ads.forEach(function (ad) { 111// 112// let adLastchilds = ad.querySelectorAll('div:last-child'); 113// 114// adLastchilds.forEach(function (adLastchild) { 115// 116// if (adLastchild.style.display === 'none') { 117// 118// ad.querySelector('.ads-note').style.display = 'none'; 119// 120// } 121// 122// }); 123// 124// 125// }); 126// 127// if (document.querySelector('#Ads_BA_VID')) { 128// if (document.querySelector('#Ads_BA_VID').style.display === 'none') { 129// document.querySelector('#Ads_BA_VID').closest('.ads-item').querySelector('.ads-note').style.display = 'none'; 130// } 131// } 132// 133// if (document.querySelector('body').style.background) { 134// let stripeItems = document.querySelectorAll('.stripe-rl');
135// stripeItems.forEach(function (stripeItem) { 136// addClass(stripeItem, 'ads-stripe-no'); 137// }); 138// stripeItems = document.querySelectorAll('.stripe-r'); 139// stripeItems.forEach(function (stripeItem) { 140// addClass(stripeItem, 'ads-stripe-no'); 141// }); 142// } 143// 144// //if (document.querySelector('#Ads_BA_BS').style.width >= window.outerWidth) { 145// //document.querySelector('#Ads_BA_BS').style.marginLeft = '0'; 146// let adsBaBsWidth = window.outerWidth - document.querySelector('#header').offsetWidth; 147// //document.querySelector('#Ads_BA_BS').style.width = adsBaBsWidth + 'px'; 148// //} 149// 150// 151// 152// 153// }, 2000); 154// 155// 156// 157// 158// });
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.