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) Underdogs – 3-0
2) Dill With It! – 2-1
3) Sovereign Seniors – 1-2
4) Pickled…Not! – 0-3
3.5
1) Net Ninjas – 2-1
2) Dinking Problem – 1-2
3) Picklebrawlers – 0-3
4.0+
1) Dynamite – 3-0
2) Milly Power Play – 2-1
3) Kings & Queens – 1-2