From 6a76b1d97ed603b0f60dcb39499cc8705a08fdd4 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 23 Oct 2015 21:27:11 -0400 Subject: [PATCH] Assign classes to insertions. --- prototype/UI/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prototype/UI/index.html b/prototype/UI/index.html index 5b2e7c8f6..60216ca8f 100644 --- a/prototype/UI/index.html +++ b/prototype/UI/index.html @@ -228,7 +228,12 @@ return element || ""; }); var after = diff.map(function(value) { - return value.after != null ? termToDOM(value.after, "after", json["after"]) : ""; + var element; + if (value.after != null) { + element = termToDOM(value.after, "after", json["after"]); + element.classList.add("insert") + } + return element || ""; }); document.getElementById("before").appendChild(diffToDOM(before, "before", json["before"])); document.getElementById("after").appendChild(diffToDOM(after, "after", json["after"]));