PageSourceSearch

https://www.cityofalbertlea.org/wp-content/themes/planeteriaweb/js/owlmain.js?ver=7.1

js cityofalbertlea.org collected 2026-10-02 16:28:56 UTC 2,491 bytes, 116 lines download raw bytes

1$(document).ready(function(){
2
3$('.owl-general').each(function(index, element) {
4    var $carousel = $(this).find('.owl-carousel');
5    var $nav = $(this).find('.custom-nav');
6 
7    $carousel.owlCarousel({
8        loop: true,
9        dots: true,
10        autoplay: true,
11        margin: 10,
12        nav: true,
13        autoWidth: true,
14        items: 2,
15        navText: [
16            '<img src="/wp-content/themes/planeteriaweb/img/arrow_left.svg">',
17            '<img src="/wp-content/themes/planeteriaweb/img/arrow_right.svg">'
18        ],
19        navContainer: $nav
20    });
21});
22
23
24$('.owl-banner .owl-carousel').owlCarousel({
25
26    loop: true,
27	dots:true,
28	autoplay:false,
29    margin: 0,
30    nav: true,
31
32	 items: 2,
33    navText: [
34        '<img src="/wp-content/themes/planeteriaweb/img/arrow_left.svg">',
35        '<img src="/wp-content/themes/planeteriaweb/img/arrow_right.svg">'
36    ],
37    navContainer: '.owl-general .custom-nav',
38   responsive:{
39        0:{
40            items: 1
41        },
42        600:{
43            items: 2
44        },
45        1000:{
46            items: 3,
47			  
48        }
49    }
50});
51
52$('.mobile-banner .owl-carousel').owlCarousel({
53
54    loop: true,
55	dots:true,
56	autoplay:false,
57    margin: 0,
58    nav: true,
59
60	 items: 2,
61    navText: [
62        '<img src="./img/arrow_left.svg">',
63        '<img src="./img/arrow_right.svg">'
64    ],
65    navContainer: '.owl-general .custom-nav',
66   responsive:{
67        0:{
68            items: 1
69        },
70        600:{
71            items: 2
72        },
73        1000:{
74            items: 3,
75			  
76        }
77    }
78});	
79
80var headerHeight = $('.main_header').outerHeight();
81  $('.main_wrapper').css('padding-top', headerHeight + 'px');
82
83	
84
85});
86
87
88
89window.addEventListener('load', function () {
90  function updateMainWrapperPadding() {
91    var headerHeight = $('.main_header').outerHeight();
92    $('.main_wrapper').css('padding-top', headerHeight + 'px');
93  }
94
95  updateMainWrapperPadding(); // Initial run
96
97  // Observe changes in the header
98  const targetNode = document.querySelector('.main_header');
99  if (targetNode) {
100    const observer = new MutationObserver(function () {
101      updateMainWrapperPadding();
102    });
103
104    observer.observe(targetNode, {
105      childList: true,
106      subtree: true
107    });
108  }
109
110  // Also listen for alert close button
111  $(document).on('click', '.alert-area .close', function () {
112    // Wait a bit if there's animation or fadeOut
113    setTimeout(updateMainWrapperPadding, 300); // Adjust delay as needed
114  });
115});
116

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.