added some fancy display and interactivity to dots

This commit is contained in:
Bachir Soussi Chiadmi
2017-07-13 10:43:08 +02:00
parent 85a5abce50
commit 49159a03ab
6 changed files with 458 additions and 7 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
var m = require('mithril');
// https://github.com/markdown-it/markdown-it
var markdown = require('markdown-it')()
.use(require('markdown-it-footnote'));
@@ -265,7 +266,7 @@ var _Part = {
},
[
// create title node
m("h1", {'class':'part'}, this.title),
m("h1", {'class':'part'}, m.trust(markdown.renderInline(this.title))),
// create text node
this.enonces.map(function(e){
// console.log(e.text);
@@ -286,7 +287,7 @@ module.exports = {
console.log('_Tree view', _dbs.lang);
return [
m(_Header),
m('main', {id:"content"}, _dbs.data[_dbs.lang].map(function(p){
m('main', {id:"content", 'class':'tree'}, _dbs.data[_dbs.lang].map(function(p){
// console.log("MAP _dbs", p);
return m(_Part,p);
})