From e1744d25f9d1c1273cb941b444c845c5af62f21e Mon Sep 17 00:00:00 2001 From: James <9213561+Gensokian@users.noreply.github.com> Date: Fri, 30 Sep 2022 08:20:12 +0200 Subject: [PATCH] Update index.php --- index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index b9b5927..8542a4f 100644 --- a/index.php +++ b/index.php @@ -873,15 +873,16 @@ //Fill the tables document.getElementById("totalscard").innerHTML = ""; - party_variables.forEach((element, i) => filltable(element, i); - encounter_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "" + encounter_variables_name[i] + "" + "" + element + ""); + party_variables.forEach((element, i) => filltable(party_variables_name, element, i)); + encounter_variables.forEach((element, i) => filltable(encounter_variables_name, element, i)); + //encounter_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "" + encounter_variables_name[i] + "" + "" + element + ""); document.getElementById("totalscard").innerHTML += +"
VariablePts
"; } - function filltable(element, i) { - document.getElementById("totalscard").innerHTML += "" + party_variables_name[i] + "" + element + "") + function filltable(namespace, element, i) { + document.getElementById("totalscard").innerHTML += "" + namespace[i] + "" + element + "") } function setDiff(difficulty) {