PageSourceSearch

https://lutheran-living.org/wp-content/themes/lutheranliving/assets/js/custom.js?ver=7.1.3

js lutheran-living.org collected 2026-10-09 22:39:27 UTC 3,195 bytes, 102 lines download raw bytes

1jQuery(window).scroll(function() {
2    var homebannrheight = jQuery('.header-menu-wr').outerHeight();
3    var topscroll = jQuery(window).scrollTop();
4    if((jQuery(window).scrollTop()>homebannrheight) && (jQuery(window).width() > 319)) {
5        jQuery(".header-menu-wr").addClass("sticky");
6    }
7    else {
8        jQuery(".header-menu-wr").removeClass("sticky");
9    }
10});
11// scrollTop
12jQuery(document).ready(function(){ 
13    jQuery(window).scroll(function(){ 
14        if (jQuery(this).scrollTop() > 100) { 
15            jQuery('.scroll-top').fadeIn(); 
16        } else { 
17            jQuery('.scroll-top').fadeOut(); 
18        } 
19    }); 
20    jQuery('.scroll-top').click(function(){ 
21        jQuery("html, body").animate({ scrollTop: 0 }, 1500); 
22        return false; 
23    }); 
24
25    jQuery('#card-categories-list ul li a').click(function(e){
26       e.preventDefault();
27          var target = jQuery(jQuery(this).attr('href'));
28          if(target.length){
29            var scrollTo = target.offset().top - 80;
30            jQuery('body, html').animate({scrollTop: scrollTo+'px'}, 800);
31          }
32    });
33
34});
35
36jQuery('.activities-at-gallary').each(function(index) {
37     jQuery(this).find('a').attr('data-elementor-lightbox-slideshow', 'elementor-wp-block-gallery-' + index);
38 });
39
40jQuery(function($){
41
42    var $left  = $('.get-in-touch-form-wr');
43    var $right = $('.get-in-touch-contact-wr');
44
45    // Dynamic placeholder
46    var $ph = $('<div class="left-placeholder"></div>');
47    $ph.insertBefore($right);
48    var leftTop = $left.offset().top;
49    function handleSticky(){
50        var winW = $(window).width();
51        // 🔴 Disable below 850px
52        if(winW < 850){
53            $ph.height(0).width(0);
54            $left.css({
55                position: 'static',
56                top: '',
57                width: ''
58            });
59            return;
60        }
61        var scrollTop   = $(window).scrollTop();
62        var leftH       = $left.outerHeight();
63        var rightTop    = $right.offset().top;
64        var rightBottom = rightTop + $right.outerHeight();
65        // STICKY START
66        if(scrollTop >= leftTop && scrollTop + leftH < rightBottom - 50){
67            $ph.height(leftH);
68            $left.css({
69                position: 'fixed',
70                top: 70,
71                width: $left.outerWidth()
72            });
73        }
74        // STICKY STOP
75        else if(scrollTop + leftH >= rightBottom - 50){
76            $left.css({
77                position: 'absolute',
78                top: (rightBottom - leftH - leftTop - 50) + 'px'
79            });
80        }
81        // NORMAL
82        else{
83            $ph.height(0).width(0);
84            $left.css({
85                position: 'static',
86                width: ''
87            });
88        }
89    }
90    $(window).on('scroll resize', handleSticky);
91    handleSticky(); // initial call
92});
93
94// Talk Further JS
95(function () {
96var a = document.createElement("script");
97var b = document.getElementsByTagName("script")[0];
98a.type = "text/javascript";
99a.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + "js.talkfurther.com/talkfurther_init.min.js";
100a.async = true;
101b.parentNode.insertBefore(a, b);
102})();

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.