styling stats
This commit is contained in:
parent
cf1af07e6b
commit
f22e2994ce
@ -8,7 +8,7 @@ function updateMonsterFamily() {
|
||||
.then(data => {
|
||||
// Update the HTML content with the monster family
|
||||
var familyContainer = document.getElementById("monsterFamilyContainer");
|
||||
familyContainer.innerHTML = `<h2>${data.Family}</h2>`;
|
||||
familyContainer.innerHTML = `<h2>Family: ${data.Family}</h2>`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error("Error fetching monster family:", error);
|
||||
|
@ -8,7 +8,7 @@ function updateMonsterName() {
|
||||
.then(data => {
|
||||
// Update the HTML content with the monster name
|
||||
var nameContainer = document.getElementById("monsterNameContainer");
|
||||
nameContainer.innerHTML = `<h2>${data.name}</h2>`;
|
||||
nameContainer.innerHTML = `<h2 class="text-3xl font-bold">${data.name}</h2>`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error("Error fetching monster name:", error);
|
||||
|
@ -8,13 +8,14 @@ function updateMonsterStats() {
|
||||
.then(data => {
|
||||
// Update the HTML content with the monster stats
|
||||
var statsContainer = document.getElementById("monsterStatsContainer");
|
||||
statsContainer.innerHTML = `<p>Agility: ${data.Agility}</p>
|
||||
<p>Attack: ${data.Attack}</p>
|
||||
<p>Defense: ${data.Defense}</p>
|
||||
statsContainer.innerHTML = `<p>Max Level: ${data["Max Level"]}</p>
|
||||
<p>Experience: ${data.Experience}</p>
|
||||
<p>Health Points: ${data["Health Points"]}</p>
|
||||
<p>Attack: ${data.Attack}</p>
|
||||
<p>Defense: ${data.Defense}</p>
|
||||
<p>Agility: ${data.Agility}</p>
|
||||
<p>Intelligence: ${data.Intelligence}</p>
|
||||
<p>Max Level: ${data["Max Level"]}</p>`;
|
||||
`;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error("Error fetching monster stats:", error);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -29,7 +29,8 @@
|
||||
>
|
||||
</iframe>
|
||||
|
||||
<div id="monsterNameContainer">
|
||||
<div class="grid-cols-1 p-2 ml-2 border-2 rounded-md border-slate-400">
|
||||
<div id="monsterNameContainer" class="text-center">
|
||||
<!-- Monster name will be displayed here -->
|
||||
</div>
|
||||
|
||||
@ -40,11 +41,14 @@
|
||||
<div id="monsterStatsContainer">
|
||||
<!-- Monster stats will be displayed here -->
|
||||
</div>
|
||||
|
||||
<!--TODO Add monster Skills to API-->
|
||||
<div id="monsterSkillsContainer">
|
||||
<!-- Monster Skills will be displayed here-->
|
||||
</div>
|
||||
<div id="monsterLocationContainer">
|
||||
<!-- Monster Location will be displayed here-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user