Switch element selector to be both images instead of first image for toggle disabled

This commit is contained in:
Junior 2026-07-30 18:48:51 -04:00
parent 166f7ef985
commit 9a09e2d87c

View File

@ -44,7 +44,7 @@ $(document).ready(function() {
getCard(PREVIOUS); getCard(PREVIOUS);
}); });
$(".diceroll").on("click", function() { rollDice(); }); $(".diceroll").on("click", function() { rollDice(); });
$("#firstimg").longPress({ $(".card-image").longPress({
holdTime: 1000, holdTime: 1000,
onHoldStart: function() { onHoldStart: function() {
toggleState($(this)); toggleState($(this));