Fixing whitespace conformity in space.js

This commit is contained in:
Travis Weston
2014-07-13 11:24:44 -04:00
parent 249b8742ff
commit 674d44f6a8
+32 -33
View File
@@ -409,39 +409,38 @@ var Space = {
}, },
complete: function() { complete: function() {
Engine.GAME_OVER = true; Engine.GAME_OVER = true;
Score.save();
Score.save(); Prestige.save();
Prestige.save();
$('<center>')
$('<center>') .addClass('centerCont')
.addClass('centerCont') .appendTo('body');
.appendTo('body'); $('<span>')
$('<span>') .addClass('endGame')
.addClass('endGame') .text(_('score for this game: {0}', Score.calculateScore()))
.text(_('score for this game: {0}', Score.calculateScore())) .appendTo('.centerCont')
.appendTo('.centerCont') .animate({opacity:1},1500);
.animate({opacity:1},1500); $('<br />')
$('<br />') .appendTo('.centerCont');
.appendTo('.centerCont'); $('<span>')
$('<span>') .addClass('endGame')
.addClass('endGame') .text(_('total score: {0}', Prestige.get().score))
.text(_('total score: {0}', Prestige.get().score)) .appendTo('.centerCont')
.appendTo('.centerCont') .animate({opacity:1},1500);
.animate({opacity:1},1500); $('<br />')
$('<br />') .appendTo('.centerCont');
.appendTo('.centerCont'); $('<br />')
$('<br />') .appendTo('.centerCont');
.appendTo('.centerCont'); $('#starsContainer').remove();
$('#starsContainer').remove(); $('#content, #notifications').remove();
$('#content, #notifications').remove(); $('<span>')
$('<span>') .addClass('endGame endGameRestart')
.addClass('endGame endGameRestart') .text(_('restart.'))
.text(_('restart.')) .click(Engine.confirmDelete)
.click(Engine.confirmDelete) .appendTo('.centerCont')
.appendTo('.centerCont') .animate({opacity:1},1500);
.animate({opacity:1},1500); Engine.options = {};
Engine.options = {}; Engine.deleteSave(true);
Engine.deleteSave(true);
} }
}); });
}, 2000); }, 2000);