1$ = jQuery; 2var e = window, a = 'inner'; 3 if ( ! ( 'innerWidth' in window ) ) { 4 a = 'client'; 5 e = document.documentElement || document.body; 6 } 7 var viewportWidth = e[ a+'Width' ]; 8$(function() { 9 $(document).on("click.vc.tabs.data-api", "[data-vc-tabs]", function(){setTimeout(vc_round_charts,300)}); 10 var viv_hash=window.location.hash; 11 if(viv_hash && viv_hash.length > 0){ 12 if($(''+viv_hash+'').is(':visible')==false){ 13 if($('.vc_tta-tabs').length > 0){ 14 tab_id=$(''+viv_hash+'').closest('.vc_tta-panel').attr('id'); 15 console.log('a[href="#'+tab_id+'"]'); 16 $('a[href="#'+tab_id+'"]').click(); 17 setTimeout(function(){ 18 offset = $(''+viv_hash+'').offset().top; 19 document.location.href=viv_hash; 20 },1000); 21 22 } 23 } 24 } 25 $('#mob-menu').click(function() { 26 $('#top-menu').slideToggle(); 27 }); 28 $(document).on('hover', '.archive-list-item-inner .yml-post-details h5 a', function(e) { 29 var container = $($(this).closest('.archive-list-item')); 30 container.find('.yml-post-image a').toggleClass('is-hover'); 31 }); 32 $(document).on('hover', '.archive-list-item-inner .yml-post-image a', function(e) { 33 var container = $($(this).closest('.archive-list-item')); 34 container.find('.yml-post-details h5 a').toggleClass('is-hover'); 35 }); 36 $(document).on('hover', '.yml-post-details h5 a', function(e) { 37 var container = $($(this).closest('.yml-post-list-item')); 38 container.find('.yml-post-image a').toggleClass('is-hover'); 39 }); 40 $(document).on('hover', '.yml-post-image a', function(e) { 41 var container = $($(this).closest('.yml-post-list-item')); 42 container.find('.yml-post-details h5 a').toggleClass('is-hover'); 43 }); 44 $('#bot-search').click(function() { 45 $('.search-modal').toggleClass('show'); 46 }); 47 $('.top-search a').click(function(e) { 48 e.preventDefault(); 49 $('.search-modal').toggleClass('show'); 50 }); 51 $('#close-modal').click(function() { 52 $('.search-modal').toggleClass('show'); 53 }); 54 $(document).on('click', '.long-content-more .vc_btn3', function() { 55 $(this).parent().parent().find('.long-content').css({ height: '100%' }); 56 $(this).hide(); 57 }); 58 $(document).on('click', '#header_menu .submenu-parent-link > a', function(e) { 59 e.preventDefault(); 60 $(this).toggleClass('is-active'); 61 var container = $($(this).closest('.menu-item')); 62 var container1 = $(this).parent().parent().parent('li'); 63 container.find('.sub-menu').toggleClass('is-active'); 64 $(container1).mouseleave(function() { 65 $('#header_menu .submenu-parent-link > a').removeClass('is-active'); 66 $('.sub-menu').removeClass('is-active'); 67 }); 68 }); 69 70 $(document).on('click', '.cl-mobile-menu-nav-container .menu-item-has-children > a', function(e) { 71 e.preventDefault(); 72 $(this).toggleClass('is-active'); 73 var container = $($(this).closest('.menu-item')); 74 container.find('.sub-menu').first().toggleClass('is-active'); 75 }); 76 77 $(document).on('click', '.cl-mobile-menu-toggle-btn', function(e) { 78 e.preventDefault(); 79 $(this).toggleClass('is-active'); 80 $('body').toggleClass('cl-mobile-menu-show'); 81 $('.cl-mobile-menu-nav-holder').toggleClass('is-active'); 82 }); 83 $(document).on('click', '.cl-mobile-menu-overlay', function(e) { 84 $('body').toggleClass('cl-mobile-menu-show'); 85 $('.cl-mobile-menu-nav-holder').toggleClass('is-active'); 86 }); 87 $(document).on('click', '.cl-mobile-menu-toggle-btn-close', function(e) { 88 $('body').toggleClass('cl-mobile-menu-show'); 89 $('.cl-mobile-menu-nav-holder').toggleClass('is-active'); 90 }); 91 $(window).scroll(function() { 92 var $this = $(this), 93 $head = $('.cl-mobile-menu-header-holder'); 94 if ($this.scrollTop() > 46) { 95 $head.addClass('no-top'); 96 } else { 97 $head.removeClass('no-top'); 98 } 99 $chat_icon=$('#chat-icon'); 100 if ($this.scrollTop() > 100) { 101 $chat_icon.show(); 102 }else{ 103 $chat_icon.hide(); 104 } 105 106 }); 107 $(document).ready(function() { 108 109 var testimonialsSlider = $(".testi-vc-carousel"); 110 // var cc_fields = $('#give_cc_fields'); 111 var stripeRadio = $('#second-block-donat').find('.give-gateway[value="stripe"]'); 112 var creditBoxNumber = 4; 113 var numberSet = '<div class="block-number"><span class="number-circ">' + creditBoxNumber +'</span></div>'; 114 115 if($('.give-donation-level-btn').length) { 116 $('.give-donation-level-btn').each(function(){ 117 var text = $(this).text().replace(',', ''); 118 text = text.replace('Monthly', ''); 119 $(this).text(text); 120 }); 121 } 122 123 function slickInit() { 124 if (testimonialsSlider.length !== 0) { 125 var slideShowCount = 1; 126 testimonialsSlider.each(function(){ 127 $(this).slick({ 128 dots: true, 129 slidesToShow: slideShowCount, 130 adaptiveHeight: true,
131 arrows: false, 132 }); 133 134 if($(this).slick("getSlick").slideCount <= slideShowCount) { 135 $(this).find('.slick-dots').hide(); 136 } 137 }); 138 } 139 } 140 141 if ($('.give-mailchimp-fieldset') !== 0) { 142 // $('.give-mailchimp-fieldset').appendTo('#first-block-donat .block-donat-inner-wrap'); 143 } 144 145 // if (cc_fields.length !== 0) { 146 147 // cc_fields.addClass('hidden-cc'); 148 // cc_fields.prepend(numberSet); 149 // // cc_fields.appendTo('.custom-form-donate-block'); 150 // // cc_fields.wrap('<div class="block-donat-inner-wrap block-donat-inner-wrap--resetP"></div>'); 151 // } 152 153 // if(stripeRadio.is(':checked')) { 154 // cc_fields.removeClass('hidden-cc'); 155 // } 156 157 $('.give-gateway').on('change', function(e){ 158 if($('.total-donat-block').length) 159 $('.total-donat-block').remove(); 160 }); 161 // slickInit(); 162 // $(document).on('click', '#give_checkout_user_info > legend', function(e){ 163 // $('#give_checkout_user_info > p').each(function(){ 164 // $(this).toggleClass('hidden'); 165 // }); 166 // }); 167 168 // $(document).on('click', '#give_cc_fields > legend', function(e){ 169 // $('#give-stripe-credit-card-content').toggleClass('hidden'); 170 // }); 171 172 $('.block-donat-inner-wrap').focusin(function() { 173 $('.active-step-block').removeClass('active-step-block'), 174 $(this).parent().addClass('active-step-block'); 175 // if ($('#third-block-donat').hasClass('active-step-block') && cc_fields.length !== 0) { 176 // cc_fields.removeClass('hidden-cc'); 177 // } else if (!cc_fields.hasClass('hidden-cc') && !$('#third-block-donat').hasClass('active-step-block')) { 178 // cc_fields.addClass('hidden-cc'); 179 // } 180 }); 181 182 $('.vc_tta-tabs-list').find('li').on('click', function(){ 183 // testimonialsSlider.each(function(){ 184 // $(this).slick('unslick'); 185 // }); 186 // setTimeout(function(){ 187 // slickInit(); 188 // }, 500); 189 }); 190 191 192 }); 193 194 195 196 197 if ( viewportWidth < 768 ) { 198 $( '.vc_tta-tabs .vc_tta-panel' ).removeClass( 'vc_active' ).addClass( 'vc_was_active' ); 199 $('body').on('click','.vc_tta-panel.vc_active .vc_tta-panel-heading',function(e){ 200 e.stopPropagation(); 201 $('html, body').animate({ 202 scrollTop: $('.vc_tta-panels').offset().top-120 203 }, 500);
204 $(this).next('.vc_tta-panel-body').slideUp(400, function() { 205 $(this).parent('.vc_active').removeClass( 'vc_active' ); 206 207 }); 208 }); 209 } 210 211 move_tetims(); 212 $('.vc_tta-panel-title a').click(function(){ 213 multi_donate_height(); 214 }); 215 function move_tetims(){ 216 217 $('.page-id-27961 .vc_tta-panel:not(.vc_tta-panel:nth-child(3))').each(function(){ 218 if(viewportWidth < 768 ){ 219 testim=$(this).find('.donate_testimonials'); 220 $(this).find('.donate_testimonials').remove(); 221 $(this).find('.vc_tta-panel-body').append(testim); 222 }else{ 223 testim=$(this).find('.donate_testimonials'); 224 $(this).find('.donate_testimonials').remove(); 225 $(this).find('.vc_row > .vc_col-sm-6:last-child > .vc_column-inner > .wpb_wrapper').html(testim); 226 } 227 }); 228 } 229 230 $(".new-multi-don .give-form-wrap:first-child").addClass('active-don'); 231 multi_donate_height(); 232 $('#choose-done').change(function(){ 233 val = $(this).val(); 234 $('.give-form-wrap').css({'opacity':0}).removeClass('active-don');; 235 $('#give-form-'+val+'-wrap').css({'opacity':1}).addClass('active-don'); 236 237 }); 238 239 $('.vpi-open-acc a,.viv-open-acc a').click(function(e){ 240 e.preventDefault(); 241 242 var target=$(this).data('target'); 243 var title = $(this).data('title'); 244 var title2=$(this).data('title2'); 245 var but = $(this); 246 if(target){ 247 $('#'+target).slideToggle({ 248 start:function(){ 249 if(target=='tesla-impc-w') 250 $('#'+target).css('display','block'); 251 else 252 $('#'+target).css('display','flex'); 253 }, 254 complete:function(){ 255 if($('#'+target).is(":visible")){ 256 if(title && title2){ 257 but.text(title2); 258 } 259 }else{ 260 if(title && title2) 261 but.text(title); 262 } 263 } 264 }); 265 } 266 }); 267}); 268 269$(document).on("show.vc.accordion", function(){ 270 multi_donate_height(); 271}); 272 273$(window).resize(function() { 274 multi_donate_height(); 275}); 276 277function multi_donate_height(){ 278 if($('.new-multi-don').length==0) return; 279 var maxHeight = Math.max.apply(null, $(".new-multi-don .give-form-wrap").map(function (){ 280 return $(this).height(); 281 }).get()); 282 if(maxHeight > $('.new-multi-don').height()){ 283 $('#mult-forms').height(maxHeight + $('.new-multi-don').height()); 284 } 285 var top = $('#multi-text-col').height() - 120; 286 if(viewportWidth < 768 ) 287 top=top+170; 288 $('.new-multi-don .give-form-wrap').css({'top':top}); 289} 290 291
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.