diff --git a/static/js/updateMonsterFamily.js b/static/js/updateMonsterFamily.js index 40fda5c..2a70cbf 100644 --- a/static/js/updateMonsterFamily.js +++ b/static/js/updateMonsterFamily.js @@ -8,7 +8,7 @@ function updateMonsterFamily() { .then(data => { // Update the HTML content with the monster family var familyContainer = document.getElementById("monsterFamilyContainer"); - familyContainer.innerHTML = `
Agility: ${data.Agility}
-Attack: ${data.Attack}
-Defense: ${data.Defense}
-Experience: ${data.Experience}
-Health Points: ${data["Health Points"]}
+ statsContainer.innerHTML = `Max Level: ${data["Max Level"]}
+Experience: ${data.Experience}
+Health Points: ${data["Health Points"]}
+Attack: ${data.Attack}
+Defense: ${data.Defense}
+Agility: ${data.Agility}
Intelligence: ${data.Intelligence}
-Max Level: ${data["Max Level"]}
`; + `; }) .catch(error => { console.error("Error fetching monster stats:", error); diff --git a/static/style/output.css b/static/style/output.css index 1b8f4ac..52f71a1 100644 --- a/static/style/output.css +++ b/static/style/output.css @@ -585,6 +585,10 @@ video { margin-top: 1rem; } +.ml-2 { + margin-left: 0.5rem; +} + .block { display: block; } @@ -626,6 +630,10 @@ video { grid-template-columns: repeat(2, minmax(0, 1fr)); } +.content-center { + align-content: center; +} + .items-center { align-items: center; } diff --git a/templates/app.html b/templates/app.html index bcc9ee8..bec11b6 100644 --- a/templates/app.html +++ b/templates/app.html @@ -29,22 +29,26 @@ > -