PageSourceSearch

https://www.ski-saintgervais.com/bundles/redpill/js/front/scroll.js?v=20261005103817_v3.834.0

js ski-saintgervais.com collected 2026-10-05 09:50:38 UTC 1,487 bytes, 65 lines download raw bytes

1var functionToExecuteOnScroll = ['checkSticky', 'checkRpAnim', 'checkScrollTop'];
2
3$(function(){
4    $('#rp_left_area').on('scroll', function () {
5        functionToExecuteOnScroll.map(function(functionName){
6            window[functionName]();
7        });
8    });
9
10    $(window).trigger('scroll');
11
12    checkRpAnim();
13});
14
15function checkSticky()
16{
17    var y = $('#rp_left_area').scrollTop(),
18        superTopBar = $('header.topheader.stickme');
19        topBar = $('#homepage_header.stickme');
20
21    if (y > 1) {
22        superTopBar.addClass('sticky');
23        topBar.addClass('sticky');
24    } else {
25        superTopBar.removeClass('sticky');
26        topBar.removeClass('sticky');
27    }
28}
29
30
31function checkRpAnim()
32{
33    $('.rp-anim:not(.animated)').each(function(){
34        if (isScrolledIntoView($(this))){
35            var animation = $(this).data('animation');
36            $(this).addClass('animated ' + animation);
37        }
38    });
39
40    if (!$('.rp-anim:not(.animated)').length) {
41        functionToExecuteOnScroll.splice(1, 1);
42    }
43}
44
45/**
46 * @param elem
47 * @returns {boolean}
48 */
49function isScrolledIntoView(elem)
50{
51    var docViewTop = $(window).scrollTop();
52    var docViewBottom = docViewTop + $(window).height();
53    var elemTop = $(elem).offset().top;
54
55    return (elemTop <= docViewBottom);
56}
57
58function checkScrollTop()
59{
60    if ($('#rp_left_area').scrollTop() > 100) {
61        $('.cReturn').addClass('load');
62    } else {
63        $('.cReturn').removeClass('load');
64    }
65}

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.