image dependancy

This commit is contained in:
0ceanSlim 2024-02-05 11:13:22 -05:00
parent f7c68bd2c8
commit 879dfad1cf

View File

@ -1,5 +1,5 @@
function updateMonsterSprite() { function updateMonsterSprite() {
var selectedMonster = document.getElementById("monsterDropdown").value; var selectedMonster = document.getElementById("monsterDropdown").value.toLowerCase();
var spriteUrl = `/img/monster/${selectedMonster}.png`; var spriteUrl = `/img/monster/${selectedMonster}.png`;
var iframe = document.getElementById("monsterSpriteIframe"); var iframe = document.getElementById("monsterSpriteIframe");