PageSourceSearch

https://www.rheumatology.org.uk/DesktopModules/Cantarus/BSRBanner/Components/js/module.js?cdv=3047

js rheumatology.org.uk collected 2026-10-02 04:56:02 UTC 1,539 bytes, 34 lines download raw bytes

1$(document).ready(function () {
2    $('.scroll-arrow').on("click", function (e) {
3        $([document.documentElement, document.body]).animate({
4          scrollTop: $(".bsr-banner")[0].scrollHeight
5        }, 2000);
6    });
7
8    //Calculate the position of title according to the banner and the megamenu
9    var bannerHeight = $('.new-homepage-banner').height();
10    var menuHeight = $('.menu-container').height();
11    var titleHeight = (bannerHeight - menuHeight) / 2 + menuHeight - 24;
12
13    $('.banner-title').css('padding-top', titleHeight)
14
15    // If the option for multiple-images is selected, fade in / out to the next image every 10 seconds
16    $this = $('.bsr-banner').children('div.multiple-images');
17    if ($this.length > 1) {
18        const images = $this.attr("data-urls").split(",");
19        var numberOfImages = images.length;
20        // Replace any spaces with %20 so that images will always load (doesn't update from previous image if the next image failed to load)
21        for (var i = 0; i < numberOfImages; i++) {
22            images[i] = images[i].replace(/\s+/g, '%20');
23        }
24        var counter = 0;
25        setInterval(function () {
26            counter++;
27            // Prevent counter from getting too large
28            if (counter % numberOfImages == 0) counter = 0;
29            $this.fadeTo('slow', 0.3, function () {
30                $(this).css('background-image', `url(${images[counter % numberOfImages]})`);
31            }).fadeTo('slow', 1);
32        }, 10000);
33    }
34})

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.