1(function($) { 2 "use strict"; 3 $(document).ready(function() { 4 /*Skillbar*/ 5 $(".skill-bar").each(function() { 6 var percent = $(this).data('percent'); 7 if (typeof $.fn.appear === 'function') { 8 $(this).appear(function() { 9 $(this).find('.progress-bar').css({width: percent}); 10 }, { 11 accX: 0, 12 accY: 0, 13 one: true 14 }); 15 } else { 16 $(this).find('.progress-bar').css({width: percent}); 17 } 18 }); 19 /*Stats*/ 20 $('.stat-count').each(function() { 21 if (typeof $.fn.appear === 'function') { 22 $(this).appear(function() { 23 statcount($(this)); 24 }, { 25 accX: 0, 26 accY: 0, 27 one: true 28 }); 29 } else { 30 statcount($(this)); 31 } 32 }); 33 /*PieChart*/ 34 if (typeof $.fn.appear === 'function') { 35 $('.dexp-pie-chart').each(function() { 36 var $char = $(this); 37 $char.appear(function() { 38 $char.dexpPieChart(); 39 $char.unbind('appear'); 40 }, { 41 accX: 0, 42 accY: 0, 43 one: true 44 }); 45 }); 46 } else { 47 $('.dexp-pie-chart').dexpPieChart(); 48 } 49 }); 50 $.fn.dexpPieChart = function() { 51 return this.each(function() { 52 var $this = $(this), 53 percent = $this.data('percent'), 54 start = 0; 55 $this.append('<div class="ppc-progress"><div class="ppc-progress-fill"></div></div><div class="ppc-percents"><div class="pcc-percents-wrapper"><span>%</span></div></div>'); 56 var i = setInterval(function() { 57 if (start <= percent) { 58 var deg = parseInt(start) * 3.6; 59 if (start > 50) { 60 $this.addClass('gt-50'); 61 } 62 $this.find('.ppc-progress-fill').css('transform', 'rotate(' + deg + 'deg)'); 63 $this.find('.ppc-percents span').html(start + '%'); 64 start++; 65 } else { 66 clearInterval(i); 67 } 68 }, 20); 69 }); 70 }; 71 var statcount = function($element) { 72 var start = 0, end = parseInt($element.html(), 10); 73 if (end <= start) 74 return false; 75 var interval = setInterval(function() { 76 start++; 77 $element.html(start.toString()); 78 if (start === end) { 79 clearInterval(interval); 80 } 81 }, 50); 82 }; 83}(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.