rajouter la racine des ul dans index.html
This commit is contained in:
@@ -43,9 +43,15 @@ function afficherArbre()
|
|||||||
var heritage = [ 'XXX' ];
|
var heritage = [ 'XXX' ];
|
||||||
var m14_ul = [ document.getElementById('smeti_list') ];
|
var m14_ul = [ document.getElementById('smeti_list') ];
|
||||||
var m14_span = [ null ];
|
var m14_span = [ null ];
|
||||||
|
var ul = document.createElement('ul');
|
||||||
|
|
||||||
while(m14_ul[0].firstChild) m14_ul[0].removeChild(m14_ul[0].firstChild);
|
while(m14_ul[0].firstChild) m14_ul[0].removeChild(m14_ul[0].firstChild);
|
||||||
|
|
||||||
|
// Ajouter la racine des UL
|
||||||
|
ul.setAttribute('class','ul_no_list');
|
||||||
|
m14_ul[m14_ul.length-1].appendChild(ul);
|
||||||
|
m14_ul.push(ul);
|
||||||
|
|
||||||
liste_instructions.forEach(function(element){
|
liste_instructions.forEach(function(element){
|
||||||
// if (element.instruction != 'M14') return true;
|
// if (element.instruction != 'M14') return true;
|
||||||
// if (element.type != courant) return true;
|
// if (element.type != courant) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user