X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fdnd.js;h=309d197657608afb6b2b0f9d8a41673de74060f8;hb=70c6f9026392344e2ac98c10e3dff2cb5d91aa6a;hp=04b158ecb2d6cc2a1aa94a46f7b4e909d1a74f43;hpb=9fcaaa406e6cb9ae9ff64674d89236a8cade096b;p=brisk.git diff --git a/web/briskin5/dnd.js b/web/briskin5/dnd.js index 04b158e..309d197 100644 --- a/web/briskin5/dnd.js +++ b/web/briskin5/dnd.js @@ -46,24 +46,17 @@ 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; -*/ +var cards_widths = {'xx': 65, 'yy': 54}; +var cards_heights = {'xx': 111, 'yy': 111}; -/* width of images */ -var cards_width = 65; -var cards_width_d2 = 33; +var cards_width = cards_widths[g_deck]; +var cards_width_d2 = Math.ceil(cards_width / 2); /* height of images */ -var cards_height = 111; -var cards_height_d2 = 56; +var cards_height = cards_heights[g_deck];; +var cards_height_d2 = Math.ceil(cards_height / 2); + +console.log('G_deck: ' + g_deck); /* width of hands area */ var hands_width = 400;