Display Build and Spell Stats only if the build is calculated

This commit is contained in:
dr-carlos 2021-01-13 12:08:13 +10:30
parent 70cfa98fbd
commit 04e6613b79
2 changed files with 6 additions and 2 deletions

View file

@ -427,6 +427,10 @@ function calculateBuild(save_skp, skp){
}
document.getElementById("level-choice").value = level;
for (let i of document.getElementsByClassName("hide-container")) {
i.style.visibility = "visible";
}
console.log(equipment);
player_build = new Build(level, equipment, powderings);
console.log(player_build.toString());

View file

@ -388,13 +388,13 @@
</div>
</div>
</div>
<div class="build-overall-container">
<div class="build-overall-container hide-container" style="visibility: hidden;">
<div class = "center build-overall" id = "build-overall">
<br/>
<div class = "center" id = "build-overall-stats"></div>
</div>
</div>
<div class="spell-info-container">
<div class="spell-info-container hide-container" style="visibility: hidden;">
<div class="spell-info">
<div class="center" id="build-melee-statsAvg">melee</div>
</div>