puzzle hotfixes

This commit is contained in:
Thibault Duplessis 2014-11-26 16:23:46 +01:00
parent c97bd2100c
commit 82311d5a1f
2 changed files with 3 additions and 1 deletions

View file

@ -126,7 +126,7 @@
opacity: 0.5;
text-shadow: none !important;
}
div.cg-board {
#puzzle div.cg-board {
width: 512px;
height: 512px;
}

View file

@ -13,6 +13,8 @@ module.exports = function(cfg) {
chess: chess.make(cfg.puzzle.fen)
};
if (cfg.user) cfg.user.history = cfg.user.history || [];
merge(data, cfg);
data.puzzle.initialMove = puzzle.str2move(data.puzzle.initialMove);