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
+31 -32
View File
@@ -409,39 +409,38 @@ var Space = {
}, },
complete: function() { complete: function() {
Engine.GAME_OVER = true; Engine.GAME_OVER = true;
Score.save();
Prestige.save();
Score.save(); $('<center>')
Prestige.save(); .addClass('centerCont')
.appendTo('body');
$('<center>') $('<span>')
.addClass('centerCont') .addClass('endGame')
.appendTo('body'); .text(_('score for this game: {0}', Score.calculateScore()))
$('<span>') .appendTo('.centerCont')
.addClass('endGame') .animate({opacity:1},1500);
.text(_('score for this game: {0}', Score.calculateScore())) $('<br />')
.appendTo('.centerCont') .appendTo('.centerCont');
.animate({opacity:1},1500); $('<span>')
$('<br />') .addClass('endGame')
.appendTo('.centerCont'); .text(_('total score: {0}', Prestige.get().score))
$('<span>') .appendTo('.centerCont')
.addClass('endGame') .animate({opacity:1},1500);
.text(_('total score: {0}', Prestige.get().score)) $('<br />')
.appendTo('.centerCont') .appendTo('.centerCont');
.animate({opacity:1},1500); $('<br />')
$('<br />') .appendTo('.centerCont');
.appendTo('.centerCont'); $('#starsContainer').remove();
$('<br />') $('#content, #notifications').remove();
.appendTo('.centerCont'); $('<span>')
$('#starsContainer').remove(); .addClass('endGame endGameRestart')
$('#content, #notifications').remove(); .text(_('restart.'))
$('<span>') .click(Engine.confirmDelete)
.addClass('endGame endGameRestart') .appendTo('.centerCont')
.text(_('restart.')) .animate({opacity:1},1500);
.click(Engine.confirmDelete) Engine.options = {};
.appendTo('.centerCont') Engine.deleteSave(true);
.animate({opacity:1},1500);
Engine.options = {};
Engine.deleteSave(true);
} }
}); });
}, 2000); }, 2000);