diff --git a/index.php b/index.php index bbbed0b..bd66212 100644 --- a/index.php +++ b/index.php @@ -870,11 +870,14 @@ var encounter_variables_name = ["encounter_hp_score","encounter_cr_score","encounter_ac_score","encounter_dmg_score","encounter_dmgtype_score","encounter_onehit_score","encounter_multiattack_score","encounter_strategy_score","encounter_lair_action_score","encounter_legendairy_action_score","encounter_status_score","encounter_healing_score","encounter_stunning_score","encounter_condition_score"]; - party_variables.forEach((element, i) => console.log("" + party_variables_name[i] + "" + "" + element + "")); - encounter_variables.forEach((element, i) => console.log("" + encounter_variables_name[i] + "" + "" + element + "")); + //Fill the tables + document.getElementById("totalscard").innerHTML = ""; + + party_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "" + party_variables_name[i] + "" + "" + element + ""); + encounter_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "" + encounter_variables_name[i] + "" + "" + element + ""); + + document.getElementById("totalscard").innerHTML += +"
VariablePts
"; - //Fill the tables - document.getElementById("totalscard").innerHTML = ""+"
VariablePts
"; }