index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index cb746f4..617e953 100644 --- a/src/index.js +++ b/src/index.js @@ -75,6 +75,12 @@ const RecordSheet = new function () { }; }; +const mapPlaceholder = document.querySelector('.map-placeholder'); +document.querySelector('object').addEventListener('load', function () { + mapPlaceholder.remove(); + this.style.opacity = 1; +}); + window.addEventListener('load', () => { const svg = document.querySelector('object').contentDocument.querySelector('svg'), game = new Game(svg); |