PageSourceSearch

https://sueadler.com/app/themes/sueadler.com/assets/frontend/js/global/site.js

js sueadler.com collected 2026-10-02 12:13:11 UTC 32,092 bytes, 799 lines download raw bytes

1(function($) {
2
3    var app = {
4
5        mobile_width: 991,
6
7        init: function() {
8            this.fixedHeader();
9            this.naviDoubleTap();
10            this.scrollUp();
11            // this.blogSlick();
12            this.charityCounter();
13            this.statisticsCounter();
14            this.fixBrdCrmbs();
15            this.mortgageCalc();
16            // this.instagramSlide();
17            this.putAriaLabel();
18            this.formSource();
19            this.sitemapRemoveItem();
20            this.teamFeaturedListingsDoubleTap();
21            this.delayInitialization();
22            this.updateOpenHouse();
23            this.gallerypopup();
24        },
25
26        teamFeaturedListingsDoubleTap: function() {
27            jQuery(document).on('click', '.mobile .fl-item a', function(e) {
28                e.preventDefault();
29                if (jQuery(this).hasClass('clicked_once')) {
30                    var item_link = jQuery(this).attr('href');
31                    window.location.href = item_link;
32                }
33
34                jQuery(this).addClass('clicked_once');
35            });
36        },
37
38        formSource: function() {
39            var page_has_form_source = jQuery('input#form-source').length,
40                form_source_field = jQuery('input#form-source'),
41                page_url = window.location.href;
42
43            if (page_has_form_source) {
44                form_source_field.val(page_url);
45            }
46        },
47
48        mortgageCalc: function() {
49            setTimeout(function() {
50                var _mortgage = jQuery('#calcu-result').text();
51                jQuery('.imort').text(_mortgage);
52            }, 3000);
53
54        },
55
56        fixBrdCrmbs: function() {
57
58            if (jQuery('body.single-vr_marketstats').length > 0) {
59                jQuery('p#breadcrumbs span > span:eq(1) > a').attr('href', '/home-sale-stats/');
60                jQuery('p#breadcrumbs span > span:eq(1) > a span').text('Home Sale Stats');
61            }
62            if (jQuery('body.tax-marketstats').length > 0) {
63                jQuery('p#breadcrumbs span > span:eq(1) > a').attr('href', '/home-sale-stats/');
64                jQuery('p#breadcrumbs span > span:eq(1) > a span').text('Home Sale Stats');
65            }
66
67        },
68
69        fixedHeader: function() {
70            /* Fixed Header */
71            jQuery(window).scroll(function(){
72                var scroll = jQuery(window).scrollTop();
73                if (window.innerWidth > 991 && scroll > 0) {
74                    jQuery('#main-header').addClass('show-fh');
75                } else {
76                    jQuery('#main-header').removeClass('show-fh');
77                }
78            })
79        },
80
81        charityCounter: function() {
82
83            jQuery('.charity-txt').html('<p>The Sue Adler Team will be donating $15,000 for the closing of our <span><strong>100th home sale for 2026</strong></span> to 5 local charities as chosen by the community! Vote now!</p>');
84
85            jQuery('#charity-wrap').elementPeek({
86                onViewportIn: function(object) {
87                    /* Show the element when it enters the viewport */
88                    if (!jQuery('#charity-wrap').hasClass('counted')) {
89                        setTimeout(function() {
90                            var options = {
91                                useEasing: true,
92                                useGrouping: true,
93                                separator: ''
94                            };
95
96                            jQuery('.charity-num').each(function() {
97                                var num_id = jQuery(this).find('em').attr('id');
98                                var num_start = jQuery(this).find('em').attr('data-start');
99                                var num_end = jQuery(this).find('em').attr('data-end');
100                                var numAnim = new CountUp(num_id, num_start, num_end, 0, 2.5, options);
101                                numAnim.start();
102                            });
103
104                            jQuery('#charity-wrap').addClass('counted');
105                        }, 500);
106                    }
107                },
108                onViewportOut: function(object) {
109                    /* Hide the element when it exits the viewport */
110                },
111                peekAmountToTrigger: 0.2 /* Only show the element when its top reaches the middle part of the viewport */
112            });
113
114        },
115
116        statisticsCounter: function() {
117            jQuery('#ip-testimonials').elementPeek({
118                onViewportIn: function(object) {
119                    /* Show the element when it enters the viewport */
120                    if (!jQuery('#ip-testimonials').hasClass('counted')) {
121                        setTimeout(function() {
122                            var options = {
123                                useEasing: true,
124                                useGrouping: true,
125                                separator: ''
126                            };
127
128                            jQuery('.st-num').each(function() {
129                                var num_id = jQuery(this).find('em').attr('id');
130                                var num_start = jQuery(this).find('em').attr('data-start');
131                                var num_end = jQuery(this).find('em').attr('data-end');
132                                var numAnim = new CountUp(num_id, num_start, num_end, 0, 2.5, options);
133                                numAnim.start();
134                            });
135
136                            jQuery('#ip-testimonials').addClass('counted');
137                        }, 500);
138                    }
139                },
140                onViewportOut: function(object) {
141                    /* Hide the element when it exits the viewport */
142                },
143                peekAmountToTrigger: 0.5 /* Only show the element when its top reaches the middle part of the viewport */
144            });
145
146        },
147
148        naviDoubleTap: function() {
149            /* Double Tap */
150            jQuery('#nav').navTabDoubleTap({
151                'ignoreItems': jQuery('#nav .menu-item-149914')
152            });
153        },
154
155        scrollUp: function() {
156            jQuery('#scroll-up').on('click', function() {
157                jQuery('html, body').animate({
158                    scrollTop: 0
159                }, 500);
160            });
161        },
162
163        blogSlick: function() {
164
165            if( jQuery('.blog-slides').length > 0 ) {
166
167                jQuery('.blog-slides').not('.slick-initialized').slick({
168                    autoplay: true,
169                    autoplaySpeed: 8000,
170                    slidesToShow: 4,
171                    slidesToScroll: 1,
172                    rows: 0,
173                    arrows: true,
174                    dots: false,
175                    speed: 800,
176                    infinite: true,
177                    pauseOnHover: true,
178                    prevArrow: jQuery('.blog-holder + .blog-arrows .site-slide-prev'),
179                    nextArrow: jQuery('.blog-holder + .blog-arrows .site-slide-next'),
180                    responsive: [{
181                            breakpoint: 992,
182                            settings: {
183                                slidesToShow: 2
184                            }
185                        },
186                        {
187                            breakpoint: 481,
188                            settings: {
189                                slidesToShow: 1
190                            }
191                        }
192                    ]
193                });
194
195                jQuery('.blog-slides').slick('refresh');
196            }
197
198            if( jQuery('.news-slides').length > 0 ) {
199
200                jQuery('.news-slides').not('.slick-initialized').slick({
201                    autoplay: true,
202                    autoplaySpeed: 8000,
203                    slidesToShow: 4,
204                    slidesToScroll: 1,
205                    rows: 0,
206                    arrows: true,
207                    dots: false,
208                    speed: 800,
209                    infinite: true,
210                    pauseOnHover: true,
211                    prevArrow: jQuery('.news-arrows .site-slide-prev'),
212                    nextArrow: jQuery('.news-arrows .site-slide-next'),
213                    responsive: [{
214                            breakpoint: 992,
215                            settings: {
216                                slidesToShow: 2
217                            }
218                        },
219                        {
220                            breakpoint: 481,
221                            settings: {
222                                slidesToShow: 1
223                            }
224                        }
225                    ]
226                });
227                
228                jQuery('.news-slides').slick('refresh');
229            }
230
231            if( jQuery('.bl-item .bl-content').length > 0 ) {
232
233                jQuery('.bl-item .bl-content').chainHeight({
234                    breakpoints: [{
235                        min: 481
236                    }]
237                });
238            }
239        },
240
241        instagramSlide: function() {
242
243            if( jQuery('.ig-post .row').length > 0 ) {
244
245                jQuery('.ig-post .row').not('.slick-initialized').slick({
246                    slidesToShow: 4,
247                    slidesToScroll: 1,
248                    autoplay: true,
249                    autoplaySpeed: 8000,
250                });
251
252                jQuery('.ig-post .row').slick('refresh');
253            }
254        },
255
256        putAriaLabel: function() {
257
258            if (!jQuery('body').hasClass('home')) {
259                jQuery('.ip-property-default > a').attr('aria-label', 'ip-property-default');
260            }
261
262        },
263
264        sitemapRemoveItem: function() {
265            if (!jQuery('body').hasClass('home')) {
266                jQuery('body.page-id-30').find('li.page-item-163393').remove();
267            }
268        },
269
270        delayInitialization: function() {
271            // console.log('hey');
272            jQuery('#main-footer').fadeIn();
273
274            function initDelayThirParty() {
275
276                const third_party_scripts = [
277                    'https://www.googletagmanager.com/gtag/js?id=AW-812272899'
278                ];
279
280                jQuery.each(third_party_scripts, function(i, item) {
281                    var scrpt = document.createElement('script');
282                    scrpt.src = item;
283                    scrpt.defer = true;
284                    document.body.appendChild(scrpt);
285                });
286
287            }
288
289            function initSectionVisibility() {
290
291                if ($(window).width() > 991) {
292                    jQuery('#blog-wrap, #social-wrap').fadeIn();
293                }
294
295                app.blogSlick();
296                app.instagramSlide();
297
298            }
299
300            var fired = false;
301            window.addEventListener('scroll', function() {
302                let scroll = window.scrollY;
303                if (scroll > 0 && fired === false) {
304                    initDelayThirParty();
305                    initSectionVisibility();
306                    fired = true;
307                }
308            }, {
309                passive: true
310            });
311
312            document.addEventListener('mousemove', function(e) {
313                let m_move = e.screenY;
314                if (m_move > 0 && fired === false) {
315                    initDelayThirParty();
316                    initSectionVisibility();
317                    fired = true;
318                }
319            });
320
321            document.addEventListener('touchmove', function(e) {
322                let t_move = e.isTrusted;
323                if (t_move > 0 && fired === false) {
324                    initDelayThirParty();
325                    initSectionVisibility();
326                    fired = true;
327                }
328            });
329        },
330
331        updateOpenHouse: function() {
332
333            if (jQuery('.open-house-video-slides').length > 0 && jQuery('.open-house-video-slides .no-listing').length > 0) {
334
335                jQuery('#open-house-wrap').hide();
336            }
337        },
338
339        gallerypopup: function() {
340            if (jQuery('body').hasClass('single-post')) {
341                jQuery('.gallery-item').each(function() {
342                    var $link = jQuery(this).find('img').attr('src');
343                    jQuery(this).find('a').prop('href', $link);
344                });
345
346                jQuery('.gallery-icon.landscape a').aiosPopup({
347                    type: 'image',
348                    gallery: {
349                        enabled: true,
350                        navigateByImgClick: true
351                    },
352                    fixedContentPos: false
353                });
354            }
355        },
356
357        delayMapImages: function() {
358
359            if( jQuery('.map-inner-holder .delay-images'),length > 0 ) {
360
361                jQuery('.map-inner-holder .delay-images').each(function() {
362
363                    var get_img = jQuery(this).attr('data-src');
364
365                    jQuery(this).attr( 'src', get_img );
366                });
367            }
368        },
369
370        updateIHFBreadcrumbs: function() {
371
372            if (jQuery('.page-id-0').length > 0) {
373
374                var get_title = jQuery('.entry-title').text();
375
376                if( get_title == '' ) {
377
378                    get_title = jQuery('.section-title-01 > h2').text();
379                }
380
381                jQuery('#breadcrumbs span').html('<span><a href="' + window.origin + '">Home</a> » <span class="breadcrumb_last" aria-current="page">' + get_title + '</span></span>');
382            }
383        },
384
385        updateAgentDetailsReviews: function() {
386
387            if( jQuery('.single-aios_agent').length > 0 ) {
388
389                var count_testi = jQuery('.ip-agent-details-reviews-items .row > div').length;
390
391                if( count_testi == 0 ) {
392
393                    jQuery('.ip-agent-details-reviews').hide();
394                }
395            }
396        },
397
398        teamFeaturedListingsFeaturedImage: function() {
399
400            if( jQuery('.ip-property-listing-slide .team-featured-image').length > 0 ) {
401
402                jQuery('.ip-property-listing-slide .team-featured-image').each(function() {
403
404                    var get_img = jQuery(this).attr('data-bg');
405
406                    jQuery(this).attr('style', 'background-image: url(' + get_img + ')');
407
408                });
409            }
410        },
411
412        teamFeaturedListingsSliderImage: function() {
413
414            if( jQuery('.ip-property-listing-slide .team-slider-image').length > 0 ) {
415
416                jQuery('.ip-property-listing-slide .team-slider-image').each(function() {
417
418                    var get_img = jQuery(this).attr('data-bg');
419
420                    jQuery(this).attr('style', 'background-image: url(' + get_img + ')');
421
422                });
423            }
424        },
425        cf7Hover: function() {
426            jQuery('.wpcf7-form-control-wrap').mouseenter(function(){
427                jQuery(this).find('.wpcf7-not-valid-tip').hide();
428            });
429        },
430        wcag_fixes: function() {
431            $(window).on('load', function() {
432                setTimeout(function() { 
433                    // console.log('wcag fixes')
434                    $(document).find('.g-recaptcha-response').attr('aria-label','Grecaptcha'); 
435                    $(document).find('.g-recaptcha-response').parent().next().attr('title','Grecaptcha');
436                    $(document).find('iframe[allow=join-ad-interest-group]').attr('title','Join Ad');
437                    $(document).find('iframe[allow=join-ad-interest-group]').next().attr('title','GTM');
438                    $(document).find('#ihf-mini-form-select-bedrooms').attr('aria-label','Beds');
439                    $(document).find('#ihf-mini-form-select-baths').attr('aria-label','Baths');
440                    $(document).find('.ihf-board-disclaimer-text div').removeAttr('align');
441                    $('.overlay img').attr('alt','Image');
442
443                    $('.ip-property-details-contact-form .radio-buttons input').attr('aria-label','Request');
444                    $('.ip-property-details-contact-form input[name="cf-YourName"]').attr('aria-label','Name');
445                    $('.ip-property-details-contact-form input[name="cf-Phone"]').attr('aria-label','Phone');
446                    $('.ip-property-details-contact-form input[name="cf-Email"]').attr('aria-label','Email');
447                    $('.ip-property-details-contact-form textarea[name="cf-Message"]').attr('aria-label','Message');
448                    $('#form-source').attr('aria-label','Form Source');
449                    
450                    $('img').each(function() { var $this = $(this); if( $this.attr('alt') == '' ) { $this.attr('alt','Image'); } });
451                    $('area').each(function() { var $this = $(this); if( $this.attr('alt') == '' ) { $this.attr('alt','Area'); } });
452                    $('iframe').each(function() { var $this = $(this); if( $this.attr('title') == '' ) { $this.attr('title','Iframe'); } });
453
454                    // $('.overlay').each(function() { var $this = $(this); if( $this.css('display') == 'none' ) { $this.remove(); } });
455
456                    $('.aios-smf-theme-two .aios-smf-right #theme-content li.filter-view .filter-view-link').attr('aria-label','Social Media Link').attr('target','_blank');
457                },3000);
458            });
459        }
460
461    }
462
463    jQuery(document).ready(function() {
464
465        app.cf7Hover();
466
467        if (!jQuery('body').hasClass('home') && jQuery('.page-id-0') == 0 ) {
468            if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
469                jQuery('html').addClass('is-mobile');
470            }
471
472            if (jQuery('body').hasClass('single-vr_marketstats')) {
473                jQuery('.single-blog-post-content table').each(function() {
474                    jQuery(this).wrap('<div class="table-wrapper"></div>')
475                });
476            }
477
478            setTimeout(function() {
479                jQuery('body').attr("style", "");
480            }, 1000);
481
482
483
484            setTimeout(function() {
485
486                var b = getUrlParameter('b');
487
488                if (b == 'luxury-listings') {
489                    jQuery('.breadcrumb_last').html('Luxury Listings');
490                } else if (b == 'mul') {
491                    jQuery('.breadcrumb_last').html('Properties for Sale');
492                }
493            }, 2000);
494
495            setTimeout(function() {
496                var tbc = getUrlParameter('results.aspx?custom');
497
498                if (tbc == 11383) {
499                    jQuery('.breadcrumb_last').html('Morristown');
500                } else if (tbc == 20907) {
501                    jQuery('.breadcrumb_last').html('Bayonne');
502                } else if (tbc == 11360) {
503                    jQuery('.breadcrumb_last').html('Bernards');
504                } else if (tbc == 11361) {
505                    jQuery('.breadcrumb_last').html('Bernardsville');
506                } else if (tbc == 11362) {
507                    jQuery('.breadcrumb_last').html('Berkeley Heights');
508                } else if (tbc == 11363) {
509                    jQuery('.breadcrumb_last').html('Caldwell Borough');
510                } else if (tbc == 20804) {
511                    jQuery('.breadcrumb_last').html('Chatham Borough');
512                } else if (tbc == 11366) {
513                    jQuery('.breadcrumb_last').html('Cranford');
514                } else if (tbc == 20836) {
515                    jQuery('.breadcrumb_last').html('Chatham Township');
516                } else if (tbc == 11367) {
517                    jQuery('.breadcrumb_last').html('East Hanover');
518                } else if (tbc == 11368) {
519                    jQuery('.breadcrumb_last').html('Essex Fells');
520                } else if (tbc == 11369) {
521                    jQuery('.breadcrumb_last').html('Far Hills');
522                } else if (tbc == 11370) {
523                    jQuery('.breadcrumb_last').html('Florham Park');
524                } else if (tbc == 11371) {
525                    jQuery('.breadcrumb_last').html('Glen Ridge');
526                } else if (tbc == 11372) {
527                    jQuery('.breadcrumb_last').html('Hanover');
528                } else if (tbc == 11373) {
529                    jQuery('.breadcrumb_last').html('Harding');
530                } else if (tbc == 11374) {
531                    jQuery('.breadcrumb_last').html('Livingston');
532                } else if (tbc == 11375) {
533                    jQuery('.breadcrumb_last').html('Long Hill');
534                } else if (tbc == 11376) {
535                    jQuery('.breadcrumb_last').html('Madison');
536                } else if (tbc == 11377) {
537                    jQuery('.breadcrumb_last').html('Maplewood');
538                } else if (tbc == 11378) {
539                    jQuery('.breadcrumb_last').html('Mendham Borough');
540                } else if (tbc == 11379) {
541                    jQuery('.breadcrumb_last').html('Mendham Township');
542                } else if (tbc == 11380) {
543                    jQuery('.breadcrumb_last').html('Millburn/Short Hills');
544                } else if (tbc == 11381) {
545                    jQuery('.breadcrumb_last').html('Montclair');
546                } else if (tbc == 11382) {
547                    jQuery('.breadcrumb_last').html('Morris Plains Borough');
548                } else if (tbc == 11384) {
549                    jQuery('.breadcrumb_last').html('Morris Towns
549hip');
550                } else if (tbc == 11385) {
551                    jQuery('.breadcrumb_last').html('Mountain Lakes');
552                } else if (tbc == 11386) {
553                    jQuery('.breadcrumb_last').html('Mountainside');
554                } else if (tbc == 11387) {
555                    jQuery('.breadcrumb_last').html('New Providence');
556                } else if (tbc == 11388) {
557                    jQuery('.breadcrumb_last').html('North Caldwell');
558                } else if (tbc == 11389) {
559                    jQuery('.breadcrumb_last').html('Randolph');
560                } else if (tbc == 11390) {
561                    jQuery('.breadcrumb_last').html('Roseland');
562                } else if (tbc == 11391) {
563                    jQuery('.breadcrumb_last').html('Scotch Plains');
564                } else if (tbc == 11392) {
565                    jQuery('.breadcrumb_last').html('South Orange');
566                } else if (tbc == 11393) {
567                    jQuery('.breadcrumb_last').html('Springfield');
568                } else if (tbc == 11394) {
569                    jQuery('.breadcrumb_last').html('Summit');
570                } else if (tbc == 11395) {
571                    jQuery('.breadcrumb_last').html('Verona');
572                } else if (tbc == 11396) {
573                    jQuery('.breadcrumb_last').html('Watchung');
574                } else if (tbc == 11397) {
575                    jQuery('.breadcrumb_last').html('West Caldwell');
576                } else if (tbc == 11398) {
577                    jQuery('.breadcrumb_last').html('Westfield');
578                } else if (tbc == 11399) {
579                    jQuery('.breadcrumb_last').html('West Orange');
580                } else if (tbc == 11400) {
581                    jQuery('.breadcrumb_last').html('Warren');
582                }
583            }, 2000);
584
585            if (jQuery('body').hasClass('single-post') && jQuery('#custom-blog-page').hasClass('single-blog-post')) {
586
587                jQuery('#breadcrumbs > span >span:nth-child(1)').after(' » <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" href="/category/sue-adler-news/"><span property="name">Blog</span></a><meta property="position" content="1"></span>');
588
589            }
590
591
592
593
594            var city = jQuery('#qs-community').val();
595            var minPrice = jQuery('#qs-min-price').val();
596            var maxPrice = jQuery('#qs-max-price').val();
597            jQuery('#link-search').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + city + '&minPrice=' + minPrice + '&maxPrice=' + maxPrice + '')
598            jQuery('.trigger-select').change(function() {
599                var city = jQuery('#qs-community').val();
600                var minPrice = jQuery('#qs-min-price').val();
601                var maxPrice = jQuery('#qs-max-price').val();
602                jQuery('#link-search').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + city + '&minPrice=' + minPrice + '&maxPrice=' + maxPrice + '')
603            });
604            // IP Search
605            var IPcity = jQuery('#cityID').val();
606            var IPminPrice = jQuery('#qs-min-price-ip').val();
607            var IPmaxPrice = jQuery('#qs-max-price-ip').val();
608            jQuery('#link-search-ip').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + IPcity + '&minPrice=' + IPminPrice + '&maxPrice=' + IPmaxPrice + '')
609            jQuery('.trigger-select').change(function() {
610                var IPcity = jQuery('#cityID').val();
611                var IPminPrice = jQuery('#qs-min-price-ip').val();
612                var IPmaxPrice = jQuery('#qs-max-price-ip').val();
613                jQuery('#link-search-ip').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + IPcity + '&minPrice=' + IPminPrice + '&maxPrice=' + IPmaxPrice + '')
614            });
615            // IP Multiple Search
616            Array.prototype.remove = function(x) {
617                var i;
618                for (i in this) {
619                    if (this[i].toString() == x.toString()) {
620                        this.splice(i, 1)
621                    }
622                }
623            }
624            var list = [];
625            var finalCities = '';
626            jQuery('.cityList').click(function() {
627                if (jQuery(this).is(":checked")) {
628                    list.push(jQuery(this).val())
629                } else if (jQuery(this).is(":not(:checked)")) {
630                    list.remove(jQuery(this).val())
631                }
632                finalCities = list.join(",");
633                var IPcity = finalCities;
634                var IPminPrice = jQuery('#qs-min-price-multi').text();
635                var IPmaxPrice = jQuery('#qs-max-price-multi').text();
636                var IPminBed = jQuery('#qs-min-bed-multi').val();
637                var IPminBaths = jQuery('#qs-min-baths-multi').val();
638                jQuery('#link-search-ip-multi').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + IPcity + '&city=&minPrice=' + IPminPrice + '&maxPrice=' + IPmaxPrice + '&minBeds=' + IPminBed + '&minBaths=' + IPminBaths + '&b=mul')
639
640            })
641
642            var IPcity = finalCities;
643            var IPminPrice = jQuery('#qs-min-price-multi').val();
644            var IPmaxPrice = jQuery('#qs-max-price-multi').val();
645            var IPminBed = jQuery('#qs-min-bed-multi').val();
646            var IPminBaths = jQuery('#qs-min-baths-multi').val();
647            jQuery('#link-search-ip-multi').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + IPcity + '&city=&minPrice=' + IPminPrice + '&maxPrice=' + IPmaxPrice + '&minBeds=' + IPminBed + '&minBaths=' + IPminBaths + '&b=mul')
648            jQuery('.trigger-select').change(function() {
649                var IPcity = finalCities;
650                var IPminPrice = jQuery('#qs-min-price-multi').val();
651                var IPmaxPrice = jQuery('#qs-max-price-multi').val();
652                var IPminBed = jQuery('#qs-min-bed-multi').val();
653                var IPminBaths = jQuery('#qs-min-baths-multi').val();
654                jQuery('#link-search-ip-multi').attr('href', window.origin + '/iframe2/?results.aspx?custom=' + IPcity + '&city=&minPrice=' + IPminPrice + '&maxPrice=' + IPmaxPrice + '&minBeds=' + IPminBed + '&minBaths=' + IPminBaths + '&b=mul')
655            });
656
657            //+'&propType=SF'
658            //https://sue.latestnjlistings.com/results-gallery/?custom='
659        }
660
661        app.updateAgentDetailsReviews();
662
663        app.updateIHFBreadcrumbs();
664
665        app.teamFeaturedListingsFeaturedImage();
666
667        app.wcag_fixes();
668
669		if(jQuery('.form-source').length){
670			jQuery('.form-source').val(window.location.href);
671		}
672		
673    });
674
675
676    jQuery(window).on('load', function(e) {
677        e.preventDefault();
678    });
679
680    var is_scrolled = false;
681
682    jQuery(window).one('scroll mousemove touchmove', function(){
683
684        if( !is_scrolled ) {
685
686            is_scrolled = true;
687
688            app.teamFeaturedListingsSliderImage();
689
690            app.delayMapImages();
691
692            app.init();
693
694            app.fixedHeader();
695
696            setTimeout(function() {
697
698                jQuery(window).trigger('resize');
699
700            }, 5000);
701
702            app.updateOpenHouse();
703
704            setTimeout(() => {
705
706                adroll_adv_id = "FFFZCS54LNGPFCZGUHFF7E";
707                adroll_pix_id = "QYUE2N57ZRH63N6WGVBHQV";
708                adroll_version = "2.0";
709
710                (function(w, d, e, o, a) {
711
712                    w.__adroll_loaded = true;
713                    w.adroll = w.adroll || [];
714                    w.adroll.f = ['setProperties', 'identify', 'track'];
715
716                    var roundtripUrl = "https://s.adroll.com/j/" + adroll_adv_id +
717                        "/roundtrip.js";
718
719                    for (a = 0; a < w.adroll.f.length; a++) {
720
721                        w.adroll[w.adroll.f[a]] = w.adroll[w.adroll.f[a]] || (function(n) {
722                            return function() {
723                                w.adroll.push([n, arguments])
724                            }
725                        })(w.adroll.f[a])
726                    }
727
728                    e = d.createElement('script');
729                    o = d.getElementsByTagName('script')[0];
730                    e.async = 1;
731                    e.src = roundtripUrl;
732                    o.parentNode.insertBefore(e, o);
733
734                })(window, document);
735
736                adroll.track("pageView");
737
738            }, 2000);
739
740            // Optimize image listing hp
741            jQuery('.slider-listing').each(function() {
742                jQuery(this).attr('style', 'background-image:url(' + jQuery(this).data('image') + ')')
743
744            });
745            jQuery('.fimage-listing').each(function() {
746                jQuery(this).attr('style', 'background-image:url(' + jQuery(this).data('image') + ')')
747
748            });
749
750            jQuery('.insta-image').each(function() {
751                jQuery(this).attr('style', 'background-image:url(' + jQuery(this).data('image') + ')')
752
753            });
754
755            //end
756
757            /*recaptcha*/
758            // _recaptcha();
759
760            // 6LdXveEmAAAAAPBvWALz7T2B6jd__OL469EjcJq0
761
762           
763//            _lazyLoad();
764
765           
766
767            // 
768
769            
vendor: 197 bytes, lines 769-777
769window.dataLayer=window.dataLayer||[];
770
771            function gtag(){
772
773                dataLayer.push(arguments)
774            }
775
776            gtag('js',new Date());
777            gtag('config','
777G-HY1099W3YK
vendor: 13 bytes, lines 777-778
777');
778        
778}
779    });
780
781    jQuery(window).on('resize', function() {
782
783
784    });
785
786})(jQuery);
787
788var getUrlParameter = function getUrlParameter(sParam) {
789    var sPageURL = window.location.search.substring(1),
790        sURLVariables = sPageURL.split('&'),
791        sParameterName,
792        i;
793    for (i = 0; i < sURLVariables.length; i++) {
794        sParameterName = sURLVariables[i].split('=');
795        if (sParameterName[0] === sParam) {
796            return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
797        }
798    }
799};

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.