Skip to content

Latest commit

 

History

History
152 lines (134 loc) · 4.51 KB

project-leaderboard.md

File metadata and controls

152 lines (134 loc) · 4.51 KB
layout img img_link title active_tab
ling506_frame
race
Leaderboard
leaderboard
<script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript" src="http://cs.jhu.edu/~jonny/upenn/mt/project_leaderboard/leaderboard.js"></script> <script type="text/javascript" src="http://cs.jhu.edu/~jonny/upenn/mt/project_leaderboard/leaderboard-old.js"></script>

Project Leaderboard

  <p>
    This page contains the assignment leaderboard.  The
    leaderboard is updated as follows.  Every five minutes, on the
    five-minute mark, every assignment not yet past its due date is
    downloaded according the base URL and assignment number you turned
    in with <a href="assignment0.html">Assignment 0</a>.  The output
    is rescored if it changed.
  </p>
<script type="text/javascript"> var assNo = 4; var old_scoreranks = new Array(); for (i = 0; i < olddata.length; i++) { var prevscore = (i == 0) ? -1 : olddata[i-1][1+assNo]; var score = olddata[i][1+assNo]; if (score != prevscore) old_scoreranks[score] = i; } var scoreranks = new Array(); for (i=0; i'); var prevscore = (i == 0) ? -1 : data[i-1][1+assNo]; var score = data[i][1+assNo]; if (score != prevscore) { scoreranks[score] = i; document.write(''); } else { document.write(''); } var rank = scoreranks[score]; var oldrank = (score in old_scoreranks) ? old_scoreranks[score] : 100000; if (rank > oldrank) document.write(''); else if (rank < oldrank) document.write(''); else document.write(''); document.write(''); for (j = 1; j < data[i].length; j++) { document.write(''); } document.write(''); } $("#baseline").css({'background-color': 'PaleGoldenRod'}); $("#default").css({'background-color': 'LightCoral'}); $("#project_name").css({'background-color': 'LimeGreen'}); </script>
' + (i+1) + '' + data[i][0] + '' + data[i][j] + '