var fetch_analysis = function() {
var game = get_game();
var fen = game.fen();
- var prevfen = "";
- if (move_override > 0) {
- prevfen = get_game(true).fen();
- }
$.ajax({
url: "/opening-stats.pl?fen=" + encodeURIComponent(fen) +
- ";prevfen=" + encodeURIComponent(prevfen) +
";includetransp=" + (includetransp ? 1 : 0)
}).done(function(data, textstatus, xhr) {
show_lines(data, game);
}
var lines = [];
+ var transpose_only = [];
for (var i = 0; i < moves.length; ++i) {
var move = moves[i];
var line = [];
var black = parseInt(move['black']);
line.push(move['move']); // Move.
+ transpose_only.push(move['transpose_only']);
var num = white + draw + black;
line.push(num); // N.
line.push(num / total_num); // %.
if (line[0] === undefined) {
$(tr).addClass("totals");
+ } else if (transpose_only[i]) {
+ $(tr).addClass("transponly");
}
for (var j = 0; j < line.length; ++j) {