-
spell4
-
Spell 4
+
-
diff --git a/js/sq2bs.js b/js/sq2bs.js
index 518243d..dce7eba 100644
--- a/js/sq2bs.js
+++ b/js/sq2bs.js
@@ -252,10 +252,13 @@ function show_tab(tab) {
}
function toggle_spell_tab(tab) {
+ let arrow_img = document.querySelector("#" + "arrow_" + tab + "Avg");
if (document.querySelector("#"+tab).style.display == "none") {
document.querySelector("#"+tab).style.display = "";
+ arrow_img.src = arrow_img.src.replace("down", "up");
} else {
document.querySelector("#"+tab).style.display = "none";
+ arrow_img.src = arrow_img.src.replace("up", "down");
}
}
diff --git a/js/sq2display.js b/js/sq2display.js
index 471072f..07715d5 100644
--- a/js/sq2display.js
+++ b/js/sq2display.js
@@ -1412,6 +1412,13 @@ function displaysq2SpellDamage(parent_elem, overallparent_elem, build, spell, sp
part_divavg.append(overallaverageLabel);
}
}
+
+ //up and down arrow - done ugly
+ let arrow = document.createElement("img");
+ arrow.id = "arrow_" + overallparent_elem.id;
+ arrow.style.maxWidth = document.body.clientWidth > 900 ? "3rem" : "10rem";
+ arrow.src = "../media/icons/" + (newIcons ? "new" : "old") + "/toggle_down.png";
+ overallparent_elem.appendChild(arrow);
}
function displaysq2EquipOrder(parent_elem, buildOrder){
diff --git a/media/icons/new/toggle_down.png b/media/icons/new/toggle_down.png
new file mode 100644
index 0000000..4154d3d
Binary files /dev/null and b/media/icons/new/toggle_down.png differ
diff --git a/media/icons/new/toggle_up.png b/media/icons/new/toggle_up.png
new file mode 100644
index 0000000..1fd8186
Binary files /dev/null and b/media/icons/new/toggle_up.png differ
diff --git a/media/icons/old/toggle_down.png b/media/icons/old/toggle_down.png
new file mode 100644
index 0000000..4154d3d
Binary files /dev/null and b/media/icons/old/toggle_down.png differ
diff --git a/media/icons/old/toggle_up.png b/media/icons/old/toggle_up.png
new file mode 100644
index 0000000..1fd8186
Binary files /dev/null and b/media/icons/old/toggle_up.png differ