From 5362a733084e3cbf3954c4df20583a6cf43a3bf8 Mon Sep 17 00:00:00 2001 From: James <9213561+Gensokian@users.noreply.github.com> Date: Fri, 30 Sep 2022 08:12:16 +0200 Subject: [PATCH] Update index.php --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = ""; - 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 += +"
VariablePts
"; } + 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");