1(function ($) { 2 'use strict'; 3 4 $( document ).ready(function() { 5 /** 6 * Remove class active extra item 7 */ 8 $('#site-extras-navigation .extra-item .give-btn').on('click', function(event) { 9 event.preventDefault(); 10 11 $('#site-extras-navigation .extra-item').removeClass('active'); 12 }); 13 14 $('.give-card__progress-custom .give-goal-progress').each( function() { 15 16 if( ! $(this).parent().hasClass('give-card__progress-custom') || ! $(this).find('.give-progress-bar').length || $('body').hasClass('elementor-page') ) { 17 return; 18 } 19 20 $(this).find('.give-progress-bar').css('display','none'); 21 22 var $type = $(this).parent().data('type'), 23 $strokeWidth = $(this).parent().data('strokewidth'), 24 $easing = $(this).parent().data('easing'), 25 $duration = $(this).parent().data('duration'), 26 $color = $(this).parent().data('color'), 27 $trailColor = $(this).parent().data('trailcolor'), 28 $trailWidth = $(this).parent().data('trailwidth'), 29 $toColor = $(this).parent().data('tocolor'), 30 $svgWidth = $(this).parent().data('width'), 31 $svgHeight = $(this).parent().data('height'); 32 33 if( 'circle' === $type ) { 34 var bar = new ProgressBar.Circle($(this)[0], { 35 strokeWidth: $strokeWidth, 36 easing: $easing, 37 duration: $duration, 38 color: $color, 39 trailColor: $trailColor, 40 trailWidth: $trailWidth, 41 svgStyle: {width: $svgWidth, height: $svgHeight}, 42 from: {color: $color}, 43 to: {color: $toColor}, 44 step: (state, bar) => { 45 bar.path.setAttribute('stroke', state.color); 46 } 47 }); 48 } else { 49 var bar = new ProgressBar.Line($(this)[0], { 50 strokeWidth: $strokeWidth, 51 easing: $easing, 52 duration: $duration, 53 color: $color, 54 trailColor: $trailColor, 55 trailWidth: $trailWidth, 56 svgStyle: {width: $svgWidth, height: $svgHeight}, 57 from: {color: $color}, 58 to: {color: $toColor}, 59 step: (state, bar) => { 60 bar.path.setAttribute('stroke', state.color); 61 } 62 }); 63 } 64 65 var $barWidth = $(this).find('.give-progress-bar').attr('aria-valuenow') / 100, 66 67 waypoint = new Waypoint({ 68 element: $(this), 69 handler: function() { 70 bar.animate($barWidth); // Number from 0.0 to 1.0 71 }, 72 offset: '100%', 73 triggerOnce: true 74 }); 75 76 }); 77 78 79 }); 80 81}) 82(jQuery);
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.