Difference between revisions of "User:Fbstj/gadget/history-test.js"

m
try this
m (hmm)
m (try this)
console.log('Entry '+ entry, json);
// create containing element
const entryentry_el = document.createElement('article');
entryentry_el.classList.add('arcanum-entry');
// add lines
json.lines.forEach(function(line) {
speaker.innerText = line.speaker;
// append the speaker and html from the line
entryentry_el.appendChild(entryspeaker);
entryentry_el.innerText += line.text;
});
// place container on page
console.log(entryentry_el);
});
});