From: Matteo Nastasi Date: Sun, 3 May 2020 19:14:03 +0000 (+0200) Subject: g_deck test X-Git-Tag: v5.10.0~12 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=92011f35879da5026a15f8eb733b4f32c1131c41;p=brisk.git g_deck test --- diff --git a/web/briskin5/dnd.js b/web/briskin5/dnd.js index 04b158e..f17a2e5 100644 --- a/web/briskin5/dnd.js +++ b/web/briskin5/dnd.js @@ -45,25 +45,15 @@ var takes_nw_n; var cards_we_n; var takes_we_n; -/* width of images */ -/* -var cards_width = 55 + 2; -var cards_width_d2 = 27; -*/ - -/* height of images */ -/* -var cards_height = 101 + 2; -var cards_height_d2 = 51; -*/ - /* width of images */ var cards_width = 65; -var cards_width_d2 = 33; +var cards_width_d2 = Math.ceil(cards_width / 2); /* height of images */ var cards_height = 111; -var cards_height_d2 = 56; +var cards_height_d2 = Math.ceil(cards_height / 2); + +console.log('G_deck: ' + g_deck); /* width of hands area */ var hands_width = 400;