1(function($) { 2 3 4 $.fn.acodaCounter = function(options) 5 { 6 var defaults = { 7 type: 'value' 8 }; 9 10 var settings = $.extend({}, defaults, options), 11 type = settings.type 12 counter = $( this ); 13 14 counter.addClass('loaded'); 15 16 if( 'value' == type ) 17 { 18 $( counter ).countid(); 19 } 20 else if( 'date' == type ) 21 { 22 var date = counter.attr('data-date'), 23 remainingFormat = counter.attr('data-remaining-format'), 24 elapsedFormat = counter.attr('data-elapsed-format'); 25 26 $( counter ).countid({ 27 clock: true, 28 dateTime: date, 29 dateTplRemaining: remainingFormat, 30 dateTplElapsed: elapsedFormat, 31 }); 32 } 33 }; 34 35 var acodaCounter = function( counter ) 36 { 37 var counter = $( counter ), 38 type = counter.attr('data-type'); 39 40 if( ! $( counter ).hasClass('loaded') ) 41 { 42 $( counter ).acodaCounter({ 43 type: type 44 }); 45 } 46 }; 47 48 $(window).load(function() 49 { 50 $( '.acoda-counter.date' ).each(function(index, element) 51 { 52 acodaCounter( $(this) ); 53 }); 54 55 if( $.isFunction( $.fn.waypoint ) ) 56 { 57 $('.acoda-counter.value').waypoint(function() 58 { 59 acodaCounter( $(this ) ); 60 }, 61 { 62 offset: "95%" 63 }); 64 } 65 else 66 { 67 $( '.acoda-counter.value' ).each(function(index, element) 68 { 69 acodaCounter( $(this) ); 70 }); 71 } 72 }); 73 74})(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.