added some fancy display and interactivity to dots
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user