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

Jump to navigation Jump to search
m (for now)
m (silly mediawiki)
entry.classList.add('arcanum-entry');
// add lines
json.lines.forEach(function(line =>) {
// create speaker element
const speaker = document.createElement('h4');
speaker.innerText = line.speaker;
// append the speaker and html from the line
entry.appendChild(entry);
entry.innerText += line.text;
});
// place container on page
console.log(entry);
})
})