Redesign of VC section
Change-Id: Id1eb6e86aff2632036e2ca21b119f3a1cf80dce7
diff --git a/dev/demo/alldemo.js b/dev/demo/alldemo.js
index 3b75c80..5a3d3c8 100644
--- a/dev/demo/alldemo.js
+++ b/dev/demo/alldemo.js
@@ -747,6 +747,15 @@
}
};
+//corpus statistic
+var statistic = {
+ "documents":1,
+ "tokens":222222,
+ "sentences":33333,
+ "paragraphs":444
+};
+
+
requirejs.config({
baseUrl: '../js/src',
paths : {
@@ -782,7 +791,13 @@
KorAP.API.getTextInfo = function (doc, param, cb) {
cb(textInfo);
};
-
+
+ //get the corpus statistic (demo function)
+ KorAP.API.getCorpStat = function(collQu, cb){
+ return cb(statistic);
+ };
+
+
/**
* Do some things at the beginning.
*/
diff --git a/dev/demo/vc.html b/dev/demo/vc.html
index a3e27df..139bb1b 100644
--- a/dev/demo/vc.html
+++ b/dev/demo/vc.html
@@ -26,7 +26,7 @@
</style>
</head>
<body>
- <div id="vc"></div>
+ <div id="vc-view"></div>
<div id="menu" class="vc"></div>
<p><a onclick="KorAP.makeVCPersistant()" style="cursor:pointer">make persistant!</a></p>
diff --git a/dev/demo/vcdemo.js b/dev/demo/vcdemo.js
index b1bf843..9bb67e2 100644
--- a/dev/demo/vcdemo.js
+++ b/dev/demo/vcdemo.js
@@ -125,7 +125,7 @@
['author', 'text']
]).fromJson(json);
- document.getElementById('vc').appendChild(vc.element());
+ document.getElementById('vc-view').appendChild(vc.element());
// show the current JSON serialization
KorAP.showJSON = function () {