From ddef4641b1c03a253e5882c5ebf7c4771220b256 Mon Sep 17 00:00:00 2001 From: MikhaD Date: Wed, 10 Mar 2021 20:58:24 +0200 Subject: [PATCH] gave ele defs pos/neg coloring & declared encoding --- atlas.html | 1 + crafter.html | 1 + customizer.html | 1 + display.js | 1 + index.html | 1 + items.html | 1 + items_2.html | 1 + 7 files changed, 7 insertions(+) diff --git a/atlas.html b/atlas.html index dd41f3e..ff711cf 100644 --- a/atlas.html +++ b/atlas.html @@ -1,6 +1,7 @@ + diff --git a/crafter.html b/crafter.html index 7213001..fadba41 100644 --- a/crafter.html +++ b/crafter.html @@ -1,6 +1,7 @@ + diff --git a/customizer.html b/customizer.html index 3062d3a..7c5cf0c 100644 --- a/customizer.html +++ b/customizer.html @@ -1,6 +1,7 @@ + diff --git a/display.js b/display.js index c2e9fb5..7f4a7ea 100644 --- a/display.js +++ b/display.js @@ -1671,6 +1671,7 @@ function displayDefenseStats(parent_elem, build, insertSummary){ let boost = document.createElement("td"); boost.textContent = eledefs[i]; + boost.classList.add(eledefs[i] >= 0 ? "positive" : "negative"); boost.classList.add("right"); eledefElemRow.appendChild(boost); diff --git a/index.html b/index.html index a3418e3..ca7c6d5 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + diff --git a/items.html b/items.html index 6b42690..018ba4c 100644 --- a/items.html +++ b/items.html @@ -1,6 +1,7 @@ + diff --git a/items_2.html b/items_2.html index 839e0d3..9931d09 100644 --- a/items_2.html +++ b/items_2.html @@ -1,6 +1,7 @@ +