PageSourceSearch

https://cdn.curama.jp/static/common/js/bannerRandomizer.js?h=15a1a8984919b98af49549ed773cb3f7

js curama.jp collected 2026-09-24 09:22:31 UTC 582 bytes, 12 lines download raw bytes

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.