From: Matteo Nastasi Date: Sun, 3 May 2020 08:35:18 +0000 (+0200) Subject: assign sprites to owned cards X-Git-Tag: v5.10.0~32 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=8212130cd9847e01c650d5e8f5389ccd29645715;p=brisk.git assign sprites to owned cards --- diff --git a/web/briskin5/dnd.js b/web/briskin5/dnd.js index 76e4fab..12b4b47 100644 --- a/web/briskin5/dnd.js +++ b/web/briskin5/dnd.js @@ -513,7 +513,8 @@ function card_setours(zer,uno,due,tre,qua,cin,sei,set) var arg = new Array(zer,uno,due,tre,qua,cin,sei,set); for (i = 0 ; i < CARD_HAND ; i++) { - $("card"+i).src = getcard(arg[i], 0); + var id = (arg[i] < 10 ? '0' + arg[i] : '' + arg[i]); + $("card"+i).setAttribute('data-card-id', id); $("card"+i).briskid = arg[i]; } } diff --git a/web/briskin5/index.php b/web/briskin5/index.php index f73bea7..8f0813e 100644 --- a/web/briskin5/index.php +++ b/web/briskin5/index.php @@ -145,54 +145,6 @@ window.onload = function() {
- - @@ -239,8 +191,6 @@ window.onload = function() { - -