Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
Line 25:
for (let i = 0; i < diffs.length; i++) {
console.log(`Processing diff ${i}:`, diffs[i]);
continue;▼
const [op, data] = diffs[i];
switch (op) {
case
html += '<ins style="background-color: #e6ffe6;">' + escapeHtml(data) + '</ins>';▼
break;▼
html += '<del style="background-color: #ffe6e6;">' + escapeHtml(data) + '</del>';
break;
case
▲ html += '<ins style="background-color: #e6ffe6;">' + escapeHtml(data) + '</ins>';
html += '<span>' + escapeHtml(data) + '</span>';
break;
|