1var ua = navigator.userAgent.toLowerCase(); 2if (ua.indexOf('safari') != -1) { 3 document.getElementsByTagName("BODY")[0].classList.add("overflow-x-hidden"); 4 document.getElementsByTagName("HTML")[0].classList.add("overflow-x-hidden"); 5 } 6 7function isTouchDevice() { 8 return (('ontouchstart' in window) || 9 (navigator.maxTouchPoints > 0) || 10 (navigator.msMaxTouchPoints > 0)); 11} 12 13jQuery(document).ready(function($) { 14 15 $('#header-top-bar-right #accordion').hover(function(){ 16 if($(document).width()>=1024) 17 $(this).addClass('hover'); 18 }, 19 function(){ 20 if($(document).width()>=1024) 21 $(this).removeClass('hover'); 22 }); 23 24 $('#header-top-bar-right #accordion').click(function(){ 25 //if($(document).width()<1024) 26 $(this).toggleClass('hover'); 27 }); 28 29 30$('#done-but').on('click',function(){ 31 if(isTouchDevice()) 32 $('.iconDonate').toggleClass('closed'); 33}); 34$('.iconDonate').hover(function(){ 35 if(!isTouchDevice()) 36 $('.iconDonate').removeClass('closed'); 37},function(){ 38 if(!isTouchDevice()) 39 $('.iconDonate').addClass('closed'); 40}); 41$("#cus-convio-don-val").on({ 42 keyup: function() { 43 formatCurrency($(this)); 44 }, 45 blur: function() { 46 formatCurrency($(this), "blur"); 47 } 48}); 49 50 51$('.donate-form').submit(function(e){ 52 formatCurrency($('#cus-convio-don-val'), "blur"); 53 var cust_val = $('#cus-convio-don-val').val(); 54 cust_val= Number(cust_val.replace(/[^0-9-]+/g,"")); 55 $('#real-convio').val(cust_val); 56 console.log($('#real-convio').val()); 57 58}); 59$('#cus-convio-don-val').focus(function(){ 60 if($(this).val()==''){ 61 $(this).attr('placeholder',''); 62 $(this).val('$'); 63 } 64 $('#cus-convio-don').prop('checked',true); 65}); 66 67$('#cus-convio-don-val').focusout(function(){ 68 if($(this).val()=='' || $(this).val()=='$'){ 69 $(this).val(''); 70 $(this).attr('placeholder','Other'); 71 } 72 $('#cus-convio-don').prop('checked',true); 73}); 74 75 76$($('input[name="set.DonationLevel"]')).not('#cus-convio-don').click(function(){ 77 $('input[name="set.DonationLevel"]').prop('checked',false); 78 $(this).prop('checked',true); 79 $('#cus-convio-don-val').val(''); 80 $('#cus-convio-don-val').attr('placeholder','Other'); 81 $('.donate-form').submit(); 82}); 83 84$('.blog .post-title, .post-template-default .post-title').replaceWith(function () { 85 return '<h1>' + $(this).html() + "</h1>"; 86}); 87$('.blog h4, .post-template-defualt h4').replaceWith(function () { 88 return '<h3>' + $(this).html() + "</h3>"; 89}); 90 91$(".blog .post-top-details, .post-template-default .post-top-details").each(function(){ 92 $(this).appendTo($(this).parent().siblings('.post-thumb')); 93}); 94 95$(".widget-1.widget-first.widget-odd.widget.widget_black_studio_tinymce").each(function() { 96 $(this).parent().addClass('locations'); 97}); 98 99$('.blog nav > ul:not(#menu), .post-template-defualt nav ul:not(#menu)').removeClass('clearfix').addClass('post-meta'); 100$('#page-content').removeClass('content-single-sidebar').addClass('content-no-sidebar'); 101$('#content').removeClass('right-sidebar-page'); 102//$('#footer').insertAfter('#content'); 103$('.responsiveMenuSelect').remove(); 104$('.responsiveSelectContainer').removeClass('responsiveSelectContainer'); 105$('.responsiveSelectFullMenu').removeClass('responsiveSelectFullMenu'); 106 107 $(window).resize(function(){ 108 if ($(window).width() <= 768) { 109 110 $('.page-id-10880 p img').parent().css({maxWidth: '50%', margin: 'auto', display: 'flex', flexDirection: 'column'}); 111 112 } else { 113 $('.page-id-10880 p img').parent().css({maxWidth: '100%', margin: 'inherit', display: 'initial', flexDirection: 'column'}); 114 } 115 116 }); 117 118}); 119jQuery(document).ready(function($) { 120 /* $(window).scroll(function(){ 121 var sticky = $('body'), 122 scroll = $(window).scrollTop(); 123 124 if (scroll >= 100) sticky.addClass('be-sticky-active'); 125 else sticky.removeClass('be-sticky-active'); 126 });*/ 127 //$('.blogPostImg').lazy();alert(1); 128 if($(window).width() > 992){ 129 var fixed_padding = $('#header').height(); 130 $('body').css('padding-top',fixed_padding); 131 $('#header').css('position','fixed').css('top',0+$('html').css('margin-top')); 132 } 133 var top=0;
134 $(window).on('scroll',function(){top=window.pageYOffset;$(window).trigger('render',[top]);}); 135 $(window).on('touchmove',function(e){top=e.currentTarget.scrollY;$(window).trigger('render',[top]);}); 136 $(window).on('render',function(event,top){if(top>50){$('body').addClass('page-scrolled');}else{$('body').removeClass('page-scrolled');}}); 137 if($(window).width() < 961){ 138 $('.search-box-wrapper .searchform .search-icon').click(function(e){ 139 $('#search-modal').fadeIn(); 140 }); 141 } 142 $('body').on('click','#close-search',function(){ 143 $('#search-modal').fadeOut(); 144 }); 145 $('#header-controls-right .search-box-wrapper').click(function(){ 146 $('#search-modal').fadeIn(); 147 }); 148 149 $('.top-banner-section video').attr('playsinline',''); 150 $('.top-banner-section video').attr('muted',''); 151 $('.top-banner-section video').trigger('play'); 152 153}); 154 155function formatNumber(n) { 156 // format number 1000000 to 1,234,567 157 return n.replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",") 158} 159 160 161function formatCurrency(input, blur) { 162 // appends $ to value, validates decimal side 163 // and puts cursor back in right position. 164 165 // get input value 166 var input_val = input.val(); 167 168 // don't validate empty input 169 if (input_val === "" || input_val === "$") { 170 input.attr('placeholder','Other'); 171 return; 172 } 173 174 // original length 175 var original_len = input_val.length; 176 177 // initial caret position 178 var caret_pos = input.prop("selectionStart"); 179 180 // check for decimal 181 if (input_val.indexOf(".") >= 0) { 182 183 // get position of first decimal 184 // this prevents multiple decimals from 185 // being entered 186 var decimal_pos = input_val.indexOf("."); 187 188 // split number by decimal point 189 var left_side = input_val.substring(0, decimal_pos); 190 var right_side = input_val.substring(decimal_pos); 191 192 // add commas to left side of number 193 left_side = formatNumber(left_side); 194 195 // validate right side 196 right_side = formatNumber(right_side); 197 198 // On blur make sure 2 numbers after decimal 199 if (blur === "blur") { 200 right_side += "00"; 201 } 202 203 // Limit decimal to only 2 digits 204 right_side = right_side.substring(0, 2); 205 206 // join number by . 207 input_val = "$" + left_side + "." + right_side; 208 209 } else { 210 // no decimal entered 211 // add commas to number 212 // remove all non-digits 213 input_val = formatNumber(input_val); 214 input_val = "$" + input_val; 215 216 // final formatting 217 if (blur === "blur" && input_val!='$') { 218 input_val += ".00"; 219 } 220 } 221 222 // send updated string to input 223 input.val(input_val); 224 225 // put caret back in the right position 226 var updated_len = input_val.length; 227 caret_pos = updated_len - original_len + caret_pos; 228 input[0].setSelectionRange(caret_pos, caret_pos); 229}
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.