PageSourceSearch

https://www.yesloans.com.au/wp-content/themes/astra-child/scripts.js?ver=1.0.5

js yesloans.com.au collected 2026-09-25 09:36:35 UTC 5,742 bytes, 161 lines download raw bytes

1jQuery(document).ready(function($) {
2    var sticky = $('#main-header__wrapper'),
3    stickyWrapper = $('<div>').addClass('sticky-wrapper');
4    sticky.before(stickyWrapper);
5    sticky.addClass('sticky');
6
7    var navbarScrollFixedTop = function () {
8        var stickyHeight = sticky.outerHeight(),
9            scrollTop = $(window).scrollTop();
10
11        if (scrollTop > 40) {
12            sticky.addClass('fixed');
13            stickyWrapper.height(stickyHeight);
14        } else {
15            sticky.removeClass('fixed');
16            stickyWrapper.height('auto');
17        }
18    };
19
20    navbarScrollFixedTop();
21
22    $(window).on('scroll', () => {
23        navbarScrollFixedTop();
24
25        if (document.querySelector('#progress-bar')) {
26            let windowScroll = document.body.scrollTop || document.documentElement.scrollTop;
27            let height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
28            let scrolled = (windowScroll / height) * 100;
29            let progressBar = document.querySelector('#progress-bar');
30            progressBar.style.width = scrolled + "%";
31        }
32    })
33
34    if ($('#filter-cat .current-menu-item').length > 0) {
35        var currentPageText = $('#filter-cat .current-menu-item').text();
36        $('#filter-cat .elementor-menu-toggle').attr('data-before', currentPageText);
37    }
38
39    $(document).on('gform_post_render', function(event, form_id, current_page){
40        if( form_id == 75 && jQuery('#input_75_2').val() == 'Minimum loan amount is $5000' ){
41            showFinancePopup(event);
42        }
43        
44        if( $('#validation_message_97_65').length && $('#validation_message_97_65').text() == 'Minimum loan amount is $5000' ){
45            // showFinancePopup(event);
46            setTimeout(function(){
47                elementorProFrontend.modules.popup.showPopup( {id:191630} );
48            }, 1500);
49        }
50        
51        if( $('#validation_message_98_5').length && $('#validation_message_98_5').text() == 'Minimum loan amount is $5000' ){
52            showFinancePopup(event);
53        }
54        
55        if( $('#validation_message_95_5').length && $('#validation_message_95_5').text() == 'Minimum loan amount is $5000' ){
56            showFinancePopup(event);
57        }
58
59        if( $('#validation_message_31_4').length && $('#validation_message_31_4').text() == 'Minimum loan amount is $5000' ){
60            showFinancePopup(event);
61        }
62
63        if ( form_id == 98 ) {
64            const quoteBlock = $('#step-quote p');
65            var currentPage = '#gform_page_98_' + current_page;
66
67            var changeQuote = function (quote) {
68                if (quote) return quoteBlock.text(quote);
69                
70                var quoteContent = $(currentPage + ' .multistep__quote').html();
71                return quoteBlock.text(quoteContent);
72            }
73            changeQuote();
74
75            if (current_page == 1) {
76                $('.elementor-element-9520ef1').hide();
77            } else {
78                $('.elementor-element-9520ef1').show();
79            }
80
81            if (current_page == 3) {
82                $('.elementor-element-a6fba46').hide();
83            } else {
84                $('.elementor-element-a6fba46').show();
85            }
86
87            $( '#input_98_5' ).on( 'change', function(e) {
88                if ($( '#input_98_5' ).val() <= 5000) {
89                    showFinancePopup(e);
90                }
91            } );
92            
93            $('#input_98_20 input[type=radio]').change(function(event) {
94                if ($('#input_98_20 input[type=radio][value=No]').is(':checked')) {
95                    event.preventDefault();
96                    $('#form--multistep').hide();
97                    $('#step--sorry').show();
98                }
99            });
100            
101            $('#input_98_14 input[type=radio]').change(function() {
102                if ( $('#input_98_14 input[type=radio][value="Visa Holder"]').is(':checked') ) {
103                    $('#field_98_14').hide();
104                    var quoteContent = $('.multistep__quote--visa').html();
105                    changeQuote(quoteContent);
106                }
107            });
108
109            if ( $('#input_98_14 input[type=radio][value="Visa Holder"]').is(':checked') ) {
110                $('#field_98_14').hide();
111            }
112
113            if (current_page == 2) {
114                $('#input_98_14 input[type=radio]').prop('checked', '');
115            }
116
117            $('html, body').animate({ scrollTop: 0 }, 'slow');
118        }
119    });
120
121    $( "#field_31_4 .noUi-handle" ).on( "mouseup", function(event) {
122        if ($( "#field_31_4 .gf_range_slider" ).val() <= 5000) {
123            showFinancePopup(event);
124        }
125    } );
126
127    $( "#input_75_65" ).on( "change", function(event) {
128        if ($( "#input_75_65" ).val() <= 5000) {
129            showFinancePopup(event);
130        }
131    } );
132
133    $( "#input_95_5" ).on( "change", function(event) {
134        if ($( "#input_95_5" ).val() <= 4999) {
135            showFinancePopup(event);
136        }
137    } );
138    
139    $( "#input_97_65" ).on( "change", function(event) {
140        if ($( "#input_97_65" ).val() <= 5000) {
141            showFinancePopup(event);
142        }
143    } );
144
145    var showFinancePopup = function (event) {
146        elementorProFrontend.modules.popup.showPopup( {id:191630}, event);
147    }
148
149    var goToNextStep = function (element) {
150        let curPage = element.closest('.gform_page');
151        curPage.find('.gform_next_button').trigger('click');
152    }
153
154    $(document).on("gform_confirmation_loaded", function (e, form_id) {
155        if(form_id == 31) {
156            $([document.documentElement, document.body]).animate({
157                scrollTop: 0
158            }, 10);
159        }
160    });
161});

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.