projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1413a5
)
dynamic h and w adjusted
author
Matteo Nastasi
<nastasi@alternativeoutput.it>
Sun, 3 May 2020 19:21:03 +0000
(21:21 +0200)
committer
Matteo Nastasi
<nastasi@alternativeoutput.it>
Sun, 3 May 2020 19:21:03 +0000
(21:21 +0200)
web/briskin5/dnd.js
patch
|
blob
|
history
diff --git
a/web/briskin5/dnd.js
b/web/briskin5/dnd.js
index
f17a2e5
..
309d197
100644
(file)
--- a/
web/briskin5/dnd.js
+++ b/
web/briskin5/dnd.js
@@
-46,11
+46,14
@@
var cards_we_n;
var takes_we_n;
/* width of images */
-var cards_width = 65;
+var cards_widths = {'xx': 65, 'yy': 54};
+var cards_heights = {'xx': 111, 'yy': 111};
+
+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 =
cards_heights[g_deck];
;
var cards_height_d2 = Math.ceil(cards_height / 2);
console.log('G_deck: ' + g_deck);