diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3f3efb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +scores \ No newline at end of file diff --git a/play.js b/play.js index dee59c2..be2848c 100755 --- a/play.js +++ b/play.js @@ -4,7 +4,6 @@ 'use strict'; var game = express(); - game.set( 'title', 'Scores' ); game.set( 'scores file', 'scores' ); game.set( 'scores', undefined ); diff --git a/public/js/score.js b/public/js/score.js index 26a8708..7a53587 100644 --- a/public/js/score.js +++ b/public/js/score.js @@ -7,6 +7,7 @@ var chart = jQuery( ".scores" ); var oldScore = jQuery( ".old-score" ); var source; + var topScore; String.prototype.lpad = function( padWith, length ) { var string = this; @@ -35,6 +36,11 @@ function processScores ( data ) { var items = jQuery( "