From ee1d00a74c254831c009055108f84c73adbdc9f6 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 23 Oct 2015 21:25:55 -0400 Subject: [PATCH] Assign classes to deletions. --- 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 8e73a35f6..5b2e7c8f6 100644 --- a/prototype/UI/index.html +++ b/prototype/UI/index.html @@ -220,7 +220,12 @@ loadJSON('diff.json', function (json) { var diff = diffFromJSON(json.diff); var before = diff.map(function(value) { - return value.before != null ? termToDOM(value.before, "before", json["before"]) : ""; + var element; + if (value.before != null) { + element = termToDOM(value.before, "before", json["before"]); + element.classList.add("delete"); + } + return element || ""; }); var after = diff.map(function(value) { return value.after != null ? termToDOM(value.after, "after", json["after"]) : "";