PageSourceSearch

https://main-street-mortgage.com/wp-content/themes/lmattern-pending.com/js/scripts.js?ver=6.7.3

js main-street-mortgage.com collected 2026-10-08 07:26:00 UTC 2,573 bytes, 106 lines download raw bytes

1( function() {
2
3	var app = {
4		
5		initNavigation: function() {
6			var $nav = jQuery( '#nav' );
7			if ( $nav.length > 0 ) $nav.navTabDoubleTap();
8		},
9		initFeaturedProperties: function() {
10			/* Put featured properties code here */
11		},
12		initFeaturedCommunities: function() {
13			/* Put featured communities code here */
14		},
15		initTestimonials: function() {
16				jQuery('.testi-items').slick({
17                autoplay:  true,
18                autoplaySpeed: 5000,
19                centerMode: true,
20                slidesToShow: 3,
21                slidesToScroll: 1,
22                rows: 1,
23                slidesPerRow: 1,
24                arrows: true,
25                prevArrow: '.testi-nav-prev',
26                nextArrow: '.testi-nav-next',
27                dots: false,
28                infinite: true,
29                fade: false,
30                responsive: [
31                {
32                    breakpoint: 992,
33                    settings: {
34                        rows: 1,
35                        slidesPerRow: 1,
36                        slidesToShow: 1,
37                    }
38                }
39                ]
40            });
41		},
42		initQuickSearch: function() {
43			/* Put quick search code here */
44		},
45		initCustomFunction: function() {
46			/* See the pattern? Create more functions like this if needed. */
47		},
48		initStickyNav: function(){
49			window.addEventListener('scroll', function() {
50				let header = document.querySelector('.fixed-header');
51				let windowPosition = window.scrollY > 0;
52				header.classList.toggle('sticky', windowPosition);
53			});
54		},
55		initHideNav: function(){
56			window.addEventListener('scroll', function() {
57				let header = document.querySelector('.header');
58				let windowPosition = window.scrollY > 0;
59				header.classList.toggle('hideNav', windowPosition);
60			});
61		},
62		initMortgageCalculator: function() {
63			if( jQuery('#aios-mortgage-calculator-standalone-loan-amount').length ) {
64				jQuery('#aios-mortgage-calculator-standalone-loan-amount').val('500000'); 
65			}
66		}
67		
68	}
69
70	
71	jQuery(document).ready( function() {
72		
73		/* Initialize navigation */
74		app.initNavigation();
75		
76		/* Initialize featured properties */
77		app.initFeaturedProperties();
78
79		/* Initialize featured communities */
80		app.initFeaturedCommunities();
81		
82		/* Initialize testimonials */
83		app.initTestimonials();
84		
85		/* Initialize quick search */
86		app.initQuickSearch();
87		
88		app.initStickyNav();
89
90		app.initHideNav();
91
92		app.initMortgageCalculator();
93
94		AOS.init({
95			once: true,
96		});
97
98	});
99	
100	jQuery(window).on('load', function(){
101
102
103	})
104
105
106})();

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.