function countByGrader(grader) {
   var count = 0;

   $(".peer-eval-gradee-branch").each(function() {
      var countPerGradee = 0;
      $(".peer-eval-grader-id", this).each(function() {
	 if ($(this).text() === grader) countPerGradee++;
      });
      if (countPerGradee > (numCategories / 2)) count++;
   });
   return count;
}
/* The following applies to the Peer Evaluation Statistics (PeerEvalStats.html) page. BEGIN */
The following applies to the Peer Evaluation Statistics (PeerEvalStats.html) page. BEGIN
The following applies to the Peer Evaluation Statistics ( PeerEvalStats . html ) page . BEGIN
function countByGrader(grader) {
   var count = 0;
   $(".peer-eval-gradee-branch").each(function() {
      var countPerGradee = 0;
      $(".peer-eval-grader-id", this).each(function() {
	 if ($(this).text() === grader) countPerGradee++;
      });
      if (countPerGradee > (numCategories / 2)) count++;
   });
   return count;
}
function countByGrader ( grader ) { var count = 0 ; $ ( ".peer-eval-gradee-branch" ) . each ( function ( ) { var countPerGradee = 0 ; $ ( ".peer-eval-grader-id" , this ) . each ( function ( ) { if ( $ ( this ) . text ( ) === grader ) countPerGradee ++ ; } ) ; if ( countPerGradee > ( numCategories / 2 ) ) count ++ ; } ) ; return count ; }
The following applies to the Peer Evaluation Statistics (PeerEvalStats.html) page.
The following applies to the Peer Evaluation Statistics ( PeerEvalStats . html ) page .