jQuery( document ).ready(function($) { $('.total-score').each(function( index ) { var teamID = $(this).attr('team-id'); var totalScore = 0; $( ".score-" + teamID ).each( function(){ if($(this).text() != '') { totalScore += parseFloat($(this).text()); } }); $(this).text(totalScore); });
$('.total-win').each(function( index ) { var teamID = $(this).attr('team-id'); //var countsplitwins = $(".result-" + teamID ).html(); total_win_count = 0; $(".result-"+teamID).each(function( ind ) { countsplitwins = $(this).html(); countsplitwins = countsplitwins.split('Win').length-1; total_win_count = total_win_count + countsplitwins;
});
$(this).text(total_win_count); });
$('.total-loss').each(function( index ) { var teamID = $(this).attr('team-id'); //var totalLoss = $( ".Loss.result-" + teamID ).length; total_loss_count = 0; $(".result-"+teamID).each(function( ind ) { countsplitloss = $(this).html(); countsplitloss = countsplitloss.split('Loss').length-1; total_loss_count = total_loss_count + countsplitloss;
});
$(this).text(total_loss_count); });
//tablesorter $(function() { $(".tablesorter").tablesorter({ sortList: [[1,1], [2,1]] }); }); });
3.0+
1) Sinclair Slammers – 3-0 – 300-210
2) Milly No Dilly – 2-1 – 285-260
3) Court Jesters – 1-2 – 235-304
4) Net Ninjas – 0-3 – 253-299
4.0+
1) Macon Dinks – 2-1 – 284-280 (wins on head to head tiebreaker)
2) Dinker Mifflin – 2-1 – 272-282
3) Pickle Juice – 1-2 – 279-288 (3rd on head to head tiebreaker)
4) Dink & Drive – 1-2 – 280-265