From 27eadd30c86be9a62e3a42e3763089f2e40f81a7 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 13 Jul 2011 20:48:37 +0200 Subject: [PATCH] remove unused css classes --- js/star.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/star.js b/js/star.js index 6034aee..8e0a63e 100644 --- a/js/star.js +++ b/js/star.js @@ -14,13 +14,6 @@ var direction = { LEFT : 'l', RIGHT : 'r' }; -var css_classes = { - "@" : "ball", - "H" : "cube", - "#" : "wall", - " " : "void", - "x" : "gift" -}; var sprites = {}; var board_infos = {}; var options = { @@ -119,6 +112,7 @@ function display_on_canvas( state, canvas_elt ) { } } } + function format_infos( state ) { var infos = "

Star5


"; infos += "Level " + (state.level+1) + " of " + levels.length + "
"; @@ -285,6 +279,8 @@ function start_loop( state, elt, board_infos ) { display_level( state, elt ); }); + + display_level( state, elt ); } function initialize_a_star( elt ) {