PageSourceSearch

https://uscj.org/wp-content/themes/uscj/assets/js/custom.js

js uscj.org collected 2026-10-02 04:54:53 UTC 1,857 bytes, 62 lines download raw bytes

1	
2$(document).ready(function() {
3  
4var swiper = new Swiper('.blog-slider', {
5      spaceBetween: 30,
6      effect: 'fade',
7      loop: true,
8   autoplay: {
9    delay: 5000,
10    disableOnInteraction: false,
11    reverseDirection: true,
12  },
13      mousewheel: {
14        invert: false,
15      },
16      // autoHeight: true,
17      pagination: {
18        el: '.blog-slider__pagination',
19        clickable: true,
20      },
21  navigation:{
22    nextEl:document.querySelector('.blog-slider__pagination_next'),
23    prevEl:document.querySelector('.blog-slider__pagination_prev'),
24  }
25     });
26  });
27
28$(window).scroll(function() {
29    var scrollDistance = $(window).scrollTop();
30
31    if (scrollDistance >= 0) {
32       $('.nav-sidebar').fadeIn("fast");
33    } 
34  
35    // Assign active class to nav links while scolling
36    $('.section-anchor, .advocacy, .team, .resources, .financials, .about, .blog-posts').each(function(i) {
37        if ($(this).position().top <= scrollDistance) {
38            $('.nav-sidebar li a.active').removeClass('active');
39            $('.nav-sidebar li a').eq(i).addClass('active');
40        }
41    });
42}).scroll();
43
44$(document).ready(function() {
45    $(document).on("click", ".btn-set-district",function() {
46        var thisBtn = $(this);
47        $( ".btn-set-district" ).each(function( index ) {
48            console.log('1');
49            if( $(this).is(thisBtn) ){
50                var district = $(this).parent('div.district').data('district');
51                Cookies.set('my-district', district);
52                $(this).addClass('d-none');
53                $(this).after('<div class="btn btn-primary btn-sm lbl-my-district">My District</div>');
54                console.log(district);
55
56            }else{
57                $(this).removeClass('d-none');
58                $(this).siblings('.lbl-my-district').remove();
59            }
60        })
61    })
62})

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.