Update index.php
This commit is contained in:
parent
0b77d86d1c
commit
3eb99a2e45
@ -867,12 +867,9 @@
|
||||
var party_variables = [,party_skill_strategies_score,party_skill_attention_score,party_skill_knowledge_score,party_health_score];
|
||||
var encounter_variables = [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 => console.log("<tr>" + Object.keys(element)[0] + "</tr>" + "<tr>" + element + "</tr>"));
|
||||
encounter_variables.forEach(element => console.log("<tr>" + Object.keys(element)[0] + "</tr>" + "<tr>" + element + "</tr>"));
|
||||
|
||||
//Fill the tables
|
||||
console.log(
|
||||
"<table><thead><tr><th>Variable</th><th>Pts</th></tr></thead><tbody>"+"</tbody></table>"
|
||||
document.getElementById("totalscard").innerHTML = "<table><thead><tr><th>Variable</th><th>Pts</th></tr></thead><tbody>"+party_variables.forEach(element => console.log("<tr>" + Object.keys(element)[0] + "</tr>" + "<tr>" + element + "</tr>"))+encounter_variables.forEach(element => console.log("<tr>" + Object.keys(element)[0] + "</tr>" + "<tr>" + element + "</tr>"))+"</tbody></table>"
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user