Advertisement
rdsedmundo

sum git contributors lines

Dec 29th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function ($) {
  2.  let sum = 0;
  3.  
  4.  let $card = $('.capped-card').each(function () {
  5.      let $$ = $(this);
  6.  
  7.      let add = $$.find('.cmeta span.a').eq(0).html();
  8.      add = add.split('++')[0].trim().replace(',', '');
  9.  
  10.      sum += parseInt(add);
  11.  });
  12.  
  13.  console.log(sum);
  14. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement