index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-02 12:12:44 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-02 12:12:44 -0700 |
commit | e0019128a04933870c74740b47016cfed85e6065 (patch) | |
tree | 0042f859231a52024dd7d472170cdde1276f730d | |
parent | 0e2ddffc82a8fed48d5edd7be42be1d06a035314 (diff) |
Fix bad path set for object data prop
-rw-r--r-- | public/index.html | 10 | ||||
-rw-r--r-- | src/index.js | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/public/index.html b/public/index.html index 03a4d53..7b45d65 100644 --- a/public/index.html +++ b/public/index.html @@ -120,7 +120,7 @@ <span class="inning-top">◓</span> <span class="inning-bottom">◒</span> </span> - <button id="show-dialog">Change scenario</button> + <button id="show-dialog">Change map</button> <span style="white-space: nowrap;"> Prone: <input type="checkbox" id="toggle-prone-counter" /> <button type="button" class="set-firing-arc" data-size="small"> @@ -176,11 +176,11 @@ <form> <p> <label> - Scenario: + Map: <select> - <option value="map1">Scenario 1: Side Show</option> - <option value="map2">Scenario 2: Dragon Hunting</option> - <option value="map3">Scenario 3: Race Against Time</option> + <option value="map1">BattleTroops Scenario 1: Side Show</option> + <option value="map2">BattleTroops Scenario 2: Dragon Hunting</option> + <option value="map3">BattleTroops Scenario 3: Race Against Time</option> <option value="map4">Test</option> </select> </label> diff --git a/src/index.js b/src/index.js index 01ebd89..1f8f2c1 100644 --- a/src/index.js +++ b/src/index.js @@ -132,5 +132,5 @@ object.addEventListener('load', load); objectDataObserver.observe(object, { attributeFilter: ['data'] }); if (object.getAttribute('data') !== fileName) { - object.data = `assets/images/${fileName}`; + object.data = fileName; } |