Update index.php
This commit is contained in:
parent
5362a73308
commit
e1744d25f9
@ -873,15 +873,16 @@
|
||||
//Fill the tables
|
||||
document.getElementById("totalscard").innerHTML = "<table><thead><tr><th>Variable</th><th>Pts</th></tr></thead><tbody>";
|
||||
|
||||
party_variables.forEach((element, i) => filltable(element, i);
|
||||
encounter_variables.forEach((element, i) => document.getElementById("totalscard").innerHTML += "<tr>" + encounter_variables_name[i] + "</tr>" + "<tr>" + element + "</tr>");
|
||||
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 += "<tr>" + encounter_variables_name[i] + "</tr>" + "<tr>" + element + "</tr>");
|
||||
|
||||
document.getElementById("totalscard").innerHTML += +"</tbody></table>";
|
||||
|
||||
}
|
||||
|
||||
function filltable(element, i) {
|
||||
document.getElementById("totalscard").innerHTML += "<tr><td>" + party_variables_name[i] + "</td><td>" + element + "</td></tr>")
|
||||
function filltable(namespace, element, i) {
|
||||
document.getElementById("totalscard").innerHTML += "<tr><td>" + namespace[i] + "</td><td>" + element + "</td></tr>")
|
||||
}
|
||||
|
||||
function setDiff(difficulty) {
|
||||
|
Loading…
Reference in New Issue
Block a user