diff --git a/index.php b/index.php
index bd66212..b9b5927 100644
--- a/index.php
+++ b/index.php
@@ -873,13 +873,16 @@
//Fill the tables
document.getElementById("totalscard").innerHTML = "
Variable | Pts |
";
- party_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "" + party_variables_name[i] + "
" + "" + element + "
");
+ party_variables.forEach((element, i) => filltable(element, i);
encounter_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "" + encounter_variables_name[i] + "
" + "" + element + "
");
document.getElementById("totalscard").innerHTML += +"
";
}
+ function filltable(element, i) {
+ document.getElementById("totalscard").innerHTML += "" + party_variables_name[i] + " | " + element + " |
")
+ }
function setDiff(difficulty) {
$("#diff_image").attr("src", "img/diff_" + difficulty.substring(3, 0) + ".jpg");