Add number to statistic reports.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 20 Sep 2014 23:19:01 +0300
changeset 101 7f944bece417
parent 100 40a3a4247e8b
child 102 6c057ac86c97
Add number to statistic reports.
2048.html
--- 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 = [];