//hardcoded contents
content.NEWLINE = "\n\n";
Object.keys(content).forEach(k => {
document.querySelectorAll("#content"+k).forEach(contentContainer => {
if(contentContainer){
contentContainer.textContent = content[k];
}else{
console.log("MISSING CONTAINER FOR #content"+k);
}
});
});
hljs.initHighlightingOnLoad();
document.querySelectorAll("pre code").forEach(n => {
let lines = n.innerHTML.split("\n");
let prefixChar = ''
prefixChar += '';
if(n.classList.contains('add')){
prefixChar += ' + ';
}else if(n.classList.contains('remove')){
prefixChar += ' - ';
}else{
prefixChar += ' ';
}
prefixChar += '';
if(lines.length){
let lineHtml = lines[0];
//ignore first and last lines
for(let i=1;i