index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -583,7 +583,7 @@ const RecordSheet = new function() { unclipped.forEach(el => { let { troopNumber, troopAllegiance } = el.dataset; - el.setAttributeNS(null, 'clip-path', `url(#${troopAllegiance}-${troopNumber})`); + el.setAttributeNS(null, 'clip-path', `url(#clip-path-${troopAllegiance}-${troopNumber})`); }); }; @@ -825,7 +825,7 @@ document.querySelectorAll('.set-firing-arc').forEach(el => el.addEventListener(' clipShape.setAttributeNS(null, 'r', 100); let clipPath = document.createElementNS(svgns, 'clipPath'); - clipPath.setAttributeNS(null, 'id', `${troopAllegiance}-${troopNumber}`); + clipPath.setAttributeNS(null, 'id', `clip-path-${troopAllegiance}-${troopNumber}`); clipPath.dataset.troopNumber = troopNumber; clipPath.dataset.troopAllegiance = troopAllegiance; clipPath.appendChild(clipShape); |