1// Randomly show {numberOfBannerToShow} banner from list generated by {bannerListSelector} 2function bannerRandomizer(hiddenBannerClass, numberOfBannerToShow) { 3 var bannerList = document.querySelectorAll("." + hiddenBannerClass); 4 var total = bannerList.length; 5 while (numberOfBannerToShow > 0 && bannerList.length > 0) { 6 var target = Math.floor(Math.random() * total); 7 if (bannerList[target].classList.contains(hiddenBannerClass)) { 8 bannerList[target].classList.remove(hiddenBannerClass); 9 numberOfBannerToShow--; 10 } 11 } 12}
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.