Skip to content

Commit

Permalink
Add support in the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Oct 22, 2024
1 parent d809ba0 commit f3816b0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,17 @@
<label class="btn btn-xxwide" for="flowerGiftR">Flower Gift</label>
</div></td>
</tr>
<tr class="gen-specific g8 g9">
<td><div class="left" title="Is the Pok&eacute;mon affected by an ally's Steely Spirit?">
<div hidden id="selectSteelySpiritInstruction">Is the Pok&eacute;mon affected by an ally's Steely Spirit?</div>
<input aria-describedby="selectSteelySpiritInstruction" class="visually-hidden calc-trigger" type="checkbox" id="steelySpiritL" />
<label class="btn btn-xxwide" for="steelySpiritL">Steely Spirit</label>
</div></td>
<td><div class="right" title="Is the Pok&eacute;mon affected by an ally's Steely Spirit?">
<input aria-describedby="selectSteelySpiritInstruction" class="visually-hidden calc-trigger" type="checkbox" id="steelySpiritR" />
<label class="btn btn-xxwide" for="steelySpiritR">Steely Spirit</label>
</div></td>
</tr>
<tr class="gen-specific g5 g6 g7 g8 g9">
<td><div class="left" title="Is the Pok&eacute;mon protected by an ally's Friend Guard?">
<div hidden id="selectFriendGuardInstruction">Is the Pok&eacute;mon protected by an ally's Friend Guard?</div>
Expand Down
3 changes: 2 additions & 1 deletion src/js/shared_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ function createField() {
var isHelpingHand = [$("#helpingHandL").prop("checked"), $("#helpingHandR").prop("checked")];
var isTailwind = [$("#tailwindL").prop("checked"), $("#tailwindR").prop("checked")];
var isFlowerGift = [$("#flowerGiftL").prop("checked"), $("#flowerGiftR").prop("checked")];
var isSteelySpirit = [$("#steelySpiritL").prop("checked"), $("#steelySpiritR").prop("checked")]

Check failure on line 1191 in src/js/shared_controls.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing semicolon
var isFriendGuard = [$("#friendGuardL").prop("checked"), $("#friendGuardR").prop("checked")];
var isAuroraVeil = [$("#auroraVeilL").prop("checked"), $("#auroraVeilR").prop("checked")];
var isBattery = [$("#batteryL").prop("checked"), $("#batteryR").prop("checked")];
Expand All @@ -1200,7 +1201,7 @@ function createField() {
spikes: spikes[i], isSR: isSR[i], steelsurge: steelsurge[i],
vinelash: vinelash[i], wildfire: wildfire[i], cannonade: cannonade[i], volcalith: volcalith[i],
isReflect: isReflect[i], isLightScreen: isLightScreen[i],
isProtected: isProtected[i], isSeeded: isSeeded[i], isForesight: isForesight[i],
isProtected: isProtected[i], isSeeded: isSeeded[i], isForesight: isForesight[i], isSteelySpirit: isSteelySpirit[i],
isTailwind: isTailwind[i], isHelpingHand: isHelpingHand[i], isFlowerGift: isFlowerGift[i], isFriendGuard: isFriendGuard[i],
isAuroraVeil: isAuroraVeil[i], isBattery: isBattery[i], isPowerSpot: isPowerSpot[i], isSwitching: isSwitchingOut[i] ? 'out' : undefined
});
Expand Down
11 changes: 11 additions & 0 deletions src/randoms.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,17 @@
<label class="btn btn-xxwide" for="flowerGiftR">Flower Gift</label>
</div></td>
</tr>
<tr class="gen-specific g8 g9 hide">
<td><div class="left" title="Is the Pok&eacute;mon affected by an ally's Steely Spirit?">
<div hidden id="selectSteelySpiritInstruction">Is the Pok&eacute;mon affected by an ally's Steely Spirit?</div>
<input aria-describedby="selectSteelySpiritInstruction" class="visually-hidden calc-trigger" type="checkbox" id="steelySpiritL" />
<label class="btn btn-xxwide" for="steelySpiritL">Steely Spirit</label>
</div></td>
<td><div class="right" title="Is the Pok&eacute;mon affected by an ally's Steely Spirit?">
<input aria-describedby="selectSteelySpiritInstruction" class="visually-hidden calc-trigger" type="checkbox" id="steelySpiritR" />
<label class="btn btn-xxwide" for="steelySpiritR">Steely Spirit</label>
</div></td>
</tr>
<tr class="gen-specific g5 g6 g7 g8 g9">
<td><div class="left" title="Is the Pok&eacute;mon protected by an ally's Friend Guard?">
<div hidden id="selectFriendGuardInstruction">Is the Pok&eacute;mon protected by an ally's Friend Guard?</div>
Expand Down

0 comments on commit f3816b0

Please sign in to comment.