Redesign of VC section
Change-Id: Id1eb6e86aff2632036e2ca21b119f3a1cf80dce7
diff --git a/dev/js/spec/statSpec.js b/dev/js/spec/statSpec.js
index e442ee2..32a9e36 100644
--- a/dev/js/spec/statSpec.js
+++ b/dev/js/spec/statSpec.js
@@ -107,7 +107,11 @@
expect(descL.children[0].children[0].firstChild.nodeValue).toEqual('documents');
expect(descL.children[0].children[1].firstChild.nodeValue).toEqual('12');
expect(descL.children[0].children[0].attributes[0].value).toEqual('documents');
- });
+
+ expect(descL.children[1].children[0].firstChild.nodeValue).toEqual('tokens');
+ expect(descL.children[1].children[1].firstChild.nodeValue).toEqual(new Number(2323).toLocaleString());
+ expect(descL.children[1].children[0].attributes[0].value).toEqual('tokens');
+ });
it('should display corpus statistic after creating a corpus statistic view', function(){
diff --git a/dev/js/src/match/meta.js b/dev/js/src/match/meta.js
index a9bf2db..8667953 100644
--- a/dev/js/src/match/meta.js
+++ b/dev/js/src/match/meta.js
@@ -41,6 +41,7 @@
return;
var metaDL = document.createElement('dl');
+ metaDL.classList.add("flex");
this._element = metaDL;
diff --git a/dev/js/src/vc/statistic.js b/dev/js/src/vc/statistic.js
index 95710db..eb626dc 100644
--- a/dev/js/src/vc/statistic.js
+++ b/dev/js/src/vc/statistic.js
@@ -42,6 +42,7 @@
// create HTML Description List Element
var statDL = document.createElement('dl');
+ statDL.classList.add("flex");
var statistic = this._statistic;
var keys = Object.keys(statistic);
@@ -52,7 +53,7 @@
statDT.addT(k);
statDT.setAttribute('title', k);
statDD = statSp.addE('dd');
- statDD.addT(statistic[k]);
+ statDD.addT(statistic[k].toLocaleString());
}
this._element = statDL;