Commit af21b7c5 authored by Ryan Herbert's avatar Ryan Herbert

initial vmi integration

parent 0a91cec7
/home/ryan/projects/vmi/browser/css/vmi.css
\ No newline at end of file
......@@ -33,6 +33,7 @@
<link id="palette" rel="stylesheet" type="text/css" href="css/light.css" />
<link id="seg_highlight" rel="stylesheet" type="text/css" href="css/segmenter_highlight.css" />
<link rel="stylesheet" href="css/jstree_themes/default/style.min.css" />
<link rel="stylesheet" href="css/vmi/vmi.css" />
<script data-main="js/app.js" src="js/lib/require.js"></script>
......@@ -316,9 +317,9 @@
<!-- LEFT-CONTAINER -->
<div id="left-container">
<div id="info-row"><div id="info"> </div></div>
<div id="list-row"><div id="list"> </div></div>
<div id="data-row"><div id="data"> </div></div>
<div id="info-row"></div>
<div id="list-row"></div>
<div id="data-row"></div>
</div>
<!-- fin left-container -->
......
......@@ -15,6 +15,7 @@ require(["jquery",
"jstree.min",
"jquery.caret",
"jquery.atwho",
"vmi",
"svgExport"], function() {
// Then config file (needed by Vidjil)
require(['../conf'], function() {
......
/home/ryan/projects/vmi/browser/js/vmi.js
\ No newline at end of file
......@@ -49,6 +49,18 @@ var db = new Database(m);
var notification = new Notification(m)
try {
var vmi = new VMI();
vmi.setupHTML();
var panel_instructions = {"mid-container": {"left-container": ["info-row", "list-row", "data-row"], "visu-container": []}, "bot-container": []}
//vmi.setupPanels(panel_instructions);
vmi.addView("info", "info-row", "");
vmi.addView("list", "list-row", "");
vmi.addView("data", "data-row", "");
vmi.addView("visu", "visu-container", "");
vmi.addView("visu2", "visu-container", "");
vmi.setOverlays(["info-row", "list-row", "data-row", "visu-container", "bot-container"]);
/* Views
* Each view is rendered inside a <div> html element (whose id is given as the first paramter),
* and kept sync with the model given as the other parameter (here 'm').
......@@ -101,6 +113,8 @@ try {
var my_tips = new TipsOfTheDay(tips, new TipDecorator(), available_tips);
my_tips.set_container(document.getElementById('tip-container'))
my_tips.display()
vmi.setMenuOptions();
} catch(err) {
this.db.log_error(err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment