Add number to statistic reports.
--- a/2048.html Sat Sep 20 23:15:30 2014 +0300
+++ b/2048.html Sat Sep 20 23:19:01 2014 +0300
@@ -768,6 +768,7 @@
var reportsDom = document.getElementById('reports');
ui.report = {};
+ ui.report.statNo = 1;
ui.report.stat = function() {
var stats = [];
@@ -849,7 +850,7 @@
var reportDom = document.createElement('div');
reportDom.classList.add('report');
var h5Dom = document.createElement('h5');
- h5Dom.appendChild(document.createTextNode(ui.ai.currentName));
+ h5Dom.appendChild(document.createTextNode(ui.ai.currentName + " #" + ui.report.statNo++));
reportDom.appendChild(h5Dom);
var maxVals = Object.keys(histo).sort(function(a,b){return a - b});
var tbl = [];