sticky titles ok, only level 1, more level seems to not be doable

This commit is contained in:
Bachir Soussi Chiadmi
2018-02-20 17:24:02 +01:00
parent 7d6ff629b5
commit c7beaf1e10
9 changed files with 134 additions and 137 deletions
+3 -3
View File
@@ -268,7 +268,7 @@ var _Part = {
this.enonces = vn.attrs.enonces;
},
view(vn){
// console.log(vn.attrs.enonces);
console.log("part enonces", vn.attrs.enonces);
return m("section", {
'id' :this.id,
'class' :'part'
@@ -278,7 +278,7 @@ var _Part = {
m("h1", {'class':'part-title', 'part':this.id}, m.trust(markdown.renderInline(this.title))),
// create text node
this.enonces.map(e => {
// console.log(e.type);
console.log(e.title +" - "+ e.type);
// var title = e.title || '';
switch (e.type) {
case "title":
@@ -342,7 +342,7 @@ module.exports = {
// // i18next.changeLanguage(vn.attrs.lang);
// },
view(vn){
// console.log('_ModeText view : lang', vn.attrs.lang);
// console.log('_ModeText view : _dbs.data', _dbs.data);
return m('main', {id:"content", 'class':'mode-text'}, _dbs.data[vn.attrs.lang].map((p) => {
// console.log("MAP _dbs", p);
if(p.id == 'intro'){