PageSourceSearch

https://www.themarchcharge.com.au/assets/js/site.js?ver=246

js themarchcharge.com.au collected 2026-09-26 02:59:13 UTC 8,753 bytes, 199 lines download raw bytes

1$(function(){
2    $('#d_fee_multiple').selectpicker('refresh');
3    
4    $('select#d_fee_multiple').on('change',function(){
5		if($(this).val()=='other') {
6		    $('#d_fee_multiple option[data-default="true"]').val(1);
7			$('#d_fee_other').val(1);
8		}
9	});
10});
11
12$(document).ready(function(){
13    <!--$('.profileSidebar #paymentdetails').append('<p style="padding:10px 0;font-size:86%;">By clicking “Donate Now” you confirm that you have read and agree to our <a href="https://www.cancercouncil.com.au/privacy-collection-statement/" target="_blank"><u>Privacy Collection Statement.</u></a></p>');-->
14    $('.entry-steps #payment #submitbutton').after('<p style="padding:10px 0;font-size:86%;">By clicking “Process Payment” you confirm that you have read and agree to our <a href="https://www.cancercouncil.com.au/privacy-collection-statement/" target="_blank"><u>Privacy Collection Statement.</u></a></p>');
15    $('.template-login-dashboard #DonationForm button[type=submit]').after('<p style="padding: 10px 0;font-size:86%;">By clicking “Donate” you confirm that you have read and agree to our <a href="https://www.cancercouncil.com.au/privacy-collection-statement/" target="_blank"><u>Privacy Collection Statement.</u></a></p>');
16
17    $('[data-toggle="tooltip"]').tooltip();
18    
19    <!--custom tooltip for table-->
20    $('.customPara').append($('.customTable'));
21    
22    $('.customParaTooltip').mouseover(function(){
23        $('.customTable').removeClass('hidden');
24    }).mouseout(function(){
25        $('.customTable').addClass('hidden');
26    });
27    
28    $('.tooltip-inner a').click(function(){
29        console.log('test');
30    });
31    
32    <!--$('.template-event-register .btn-loginerror').click(function(){-->
33    <!--    $('h3[href="#tablogin"]').click();-->
34    <!--    console.log('test');-->
35    <!--});-->
36    
37    $('#template-profile .profileSidebar #d_phone_mobile').closest('.form-group').find('label').append('<small>(optional)</small>');
38    $('#template-profile .profileSidebar #d_address_pcode').closest('.form-group').find('label').append(' <small>(optional)</small>');
39    
40    $('.equal-block').matchHeight();
41    
42    <!--$('.funraisin-page-loggedin-toggle ul li:nth-child(2) a').html('MY TEAM');-->
43    $('.funraisin-page-nav .navbar li:nth-child(1) > a').html('<span>HOME</span>')
44    
45    $('.customDashboard .loggedin-header .cover-image-upload').addClass('hidden');
46    
47    $('.profile-header-goal').insertBefore('.profile-header-raised');
48    
49    
50    <!--2021-->
51    
52    <!--add custom upload profile icon-->
53    $('.profile-image-frame .profile-image-upload a').html('<img src="https://d2oq4sg5re8oem.cloudfront.net/6b22b8a571fed99e7a0a773f504c5cb4.svg" />');
54    
55    <!--add (optional) next to address field - profile page -->
56    $('#template-profile  #personaldetails label[for="d_address"]').html('Postal Address (optional)   <a href="javascript:;" class="expand-address pull-right" style="color: #fff;">(expand)</a>');
57    
58    <!--Change donation privacy statement text-->
59    $('#paymentdetails').append('<div class="clear"></div><p class="byClicking" style="font-size:86%;">By clicking "Donate now" you confirm that you have read and agree to our <a href="https://www.cancercouncil.com.au/about-us/policies/privacy-collection-statement/" target="_blank"><u>Privacy Collection Statement</u></a></p>');
60    
61    
62    <!--$('#template-profile #paymentdetails .byClicking').html('By clicking "Donate" you confirm that you have read and agree to our <a href="/privacy-policy">privacy collection statement</a>');-->
63    
64    <!--Copy to clipboard-->
65    $('.copyPageLink').on('click',function(e){
66        e.preventDefault();
67        var dummy = document.createElement("textarea");
68        document.body.appendChild(dummy);
69        dummy.value = $(this).attr('href');
70        dummy.select();
71        document.execCommand("copy");
72        document.body.removeChild(dummy);
73        BootstrapDialog.show({
74             message: 'Copied URL to clipboard',
75        });
76    });
77    
78     $(window).load(function() {
79    setTimeout(function(){
80       $('#NextStepsForm_0 .step-subtitle div').html('<div class="datetooltip ml5"><a data-tooltip="Individual fundraising will contribute to overall team and Workplace total." data-position="top" class="top"> <i class=" fas fa-info-circle"></i></a></div>');
81       $('#NextStepsForm_1 .step-subtitle div').html('<div class="datetooltip ml5"><a data-tooltip="Individual fundraising will contribute to overall team and Workplace total." data-position="top" class="top"> <i class=" fas fa-info-circle"></i></a></div>');
82       $('#NextStepsForm_2 .step-subtitle div').html('<div class="datetooltip ml5"><a data-tooltip="Individual fundraising will contribute to overall team and Workplace total." data-position="top" class="top"> <i class=" fas fa-info-circle"></i></a></div>');
83     
84       $('#NextSteps #StepDonation .radio-panel .radio[data-amount="25"]').click();
85       
86       $("#NextSteps #StepDonation #d_amount_free").focus(function() {
87            $('#personaldonation .copy-text').html('');
88            $('.radio-panel .radio').removeClass('bg-primary');
89            $('.radio-panel .radio[data-amount="25"]').removeClass('bg-primary');
90             
91        });     
92        
93        
94        
95        $('#StepFitness #m_target_distance').closest('.row').find('label').append(' *'); 
96     
97     },1000);
98     });
99
100     
101
102     
103     
104     $('#NextSteps #StepPayment').addClass('hidden');
105     
106     $('#NextSteps .radio-panel .radio').click(function(){
107        
108         if ($(this).hasClass("bg-primary")) {
109            $('#NextSteps #StepPayment').removeClass('hidden');
110         
111         }
112     
113     
114     });    
115     
116     
117    $('input.additional-email').closest('.form-group').find('label').append(' *'); 
118    
119    $('input#t_name, input#org_name').on('keydown', function(e) {
120      if (e.which === 32 &&  e.target.selectionStart === 0) {
121      return false;
122      }  
123    });
124    
125    $('input#t_name, input#org_name').on("input", function () {
126      $(this).val($(this).val().replace(/^s+/g, ''));
127    	});    
128    	
129     if (window.location.href.indexOf("/login/event?ref=") > -1) {
130        $( "#LightboxPanel").css('pointer-events', 'none');
131     }
132     
133     setTimeout(function(){
134         if ($("#popup").length) {
135            $(".error.text-center").each(function () {
136                if ($(this).html().trim() === "Your password has been reset. Please login") {
137                    $(this).html('Your password has been reset. Please login or <a href="/register-lightbox" class="lightbox"><strong><u>register here</u></strong></a>');
138                }
139            });
140        }
141    }, 500);
142
143});
144
145$(document).ready(function(){
146
147    var pathname = window.location.pathname;
148    
149    if (pathname == '/login/account'){
150        $('#m_pass').wrap('<div class="input-group mb-3" id="pass_contain"></div>');
151        $('#m_pass').after('<span class="input-group-addon pb0 pt0" onclick="password_show_hide_acc();" style="cursor: pointer"><span class="input-group-text" ><i class="fas fa-eye" id="show_eye2"></i><i class="fas fa-eye-slash hidden" id="hide_eye2"></i></span></span>');
152    }    
153    
154    
155});
156
157$(document).ready(function(){
158
159    var pathname = window.location.pathname;
160    
161    if (pathname.indexOf('/fundraisers/') !== -1){
162        $(".share-page-icons a").on("click", function(){
163            $("#popup small").text("Share your page to get support")
164        })
165    }    
166    
167    
168});
169
170function password_show_hide_acc() {
171
172    var pathname = window.location.pathname;
173    
174    if (pathname == '/login/account'){
175        const x = document.getElementById("m_pass");
176        const show_eye = document.getElementById("show_eye2");
177        const hide_eye = document.getElementById("hide_eye2");
178        hide_eye.classList.remove("hidden");
179        if (x.type === "password") {
180            x.type = "text";
181            show_eye.style.display = "none";
182            hide_eye.style.display = "block";
183        } else {
184            x.type = "password";
185            show_eye.style.display = "block";
186            hide_eye.style.display = "none";
187        }
188    }
189}
190
191src="//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js"
192
193// -- delete showtrigger cookie
194$(document).on("click", "a[href='/logout/'], a[href='/logout']", function(){
195    document.cookie = 'showtrigger=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/';
196    });
197    
198$('#Row1688 .tip-action a').attr('href', 'https://www.facebook.com/MarchCharge/');
199

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.