index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'public/assets/images/scenario-dragon_hunting.svg')
-rw-r--r-- | public/assets/images/scenario-dragon_hunting.svg | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/public/assets/images/scenario-dragon_hunting.svg b/public/assets/images/scenario-dragon_hunting.svg index cb33581..5f16d7a 100644 --- a/public/assets/images/scenario-dragon_hunting.svg +++ b/public/assets/images/scenario-dragon_hunting.svg @@ -1,6 +1,7 @@ <?xml version="1.0" standalone="no"?> <svg viewBox="-15.639999389648438 -129.2300262451172 2320.879638671875 4871.5654296875" xmlns="http://www.w3.org/2000/svg"> - <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="http://localhost:8080/assets/css/map.css" type="text/css" /> + <!-- <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="http://localhost:8080/assets/css/map.css" type="text/css" /> --> + <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="../css/map.css" type="text/css" /> <style> g[data-edge="north"] { --i: -2; } g[data-edge="south"] { --i: 78; } @@ -60,9 +61,9 @@ <rect id="background"/> <g class="gameboard"> - <use data-href="http://localhost:8080/assets/images/mapsheets.svg#map2"/> - <use data-href="http://localhost:8080/assets/images/mapsheets.svg#map1" style="transform: translate(0, 390.25px);"/> - <use data-href="http://localhost:8080/assets/images/mapsheets.svg#map3" style="transform: translate(0, 780.5px);"/> + <use data-href="mapsheets.svg#map2"/> + <use data-href="mapsheets.svg#map1" style="transform: translate(0, 390.25px);"/> + <use data-href="mapsheets.svg#map3" style="transform: translate(0, 780.5px);"/> <rect id="dots" fill="url(#asterisk)"/> @@ -122,19 +123,6 @@ <g class="grid"/> </g> - <script>//<![CDATA[ - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random#getting_a_random_integer_between_two_values_inclusive - function getRandomIntInclusive(min, max) { - const minCeiled = Math.ceil(min); - const maxFloored = Math.floor(max); - return Math.floor(Math.random() * (maxFloored - minCeiled + 1) + minCeiled); // The maximum is inclusive and the minimum is inclusive - } - - const cacheBuster = Array(20).fill(null).map(() => getRandomIntInclusive(0, 9)).join(''); - - document.querySelectorAll('[data-href]').forEach(el => { - el.setAttributeNS(null, 'href', el.dataset.href.split('#').join(`?v=${cacheBuster}#`)); - }); - //]]></script> - <script data-cols="33" data-rows="77" href="http://localhost:8080/map.js"/> + <script href="../../import_mapsheets.js"/> + <script data-cols="33" data-rows="77" href="../../map.js"/> </svg> |