From 20201f77b5cf5cbb1c70b1cc51c4108d620a3202 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 17 May 2020 20:31:10 -0400 Subject: [Webcards] styles and some fixes + Fixed draging transformed cards + Fixed mobile styles + Theme template complete --- webcards/client.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'webcards/client.html') diff --git a/webcards/client.html b/webcards/client.html index 069a041..e9cf664 100644 --- a/webcards/client.html +++ b/webcards/client.html @@ -45,7 +45,7 @@ -
+
@@ -120,7 +120,7 @@ // Live testing purposes only - var d = new MultiDrag(); + var md = new MultiDrag(); var c1 = new Card({ all: [ { @@ -145,14 +145,16 @@ } ] }); + var d = new Deck(); + d.appendCard(c2); + d.appendCard(c1); function test() { - c1.e.addEventListener("mousedown", d.startDragging.bind(d)); - c1.e.addEventListener("mouseup", d.stopDraggingAll.bind(d)); - c2.e.addEventListener("mousedown", d.startDragging.bind(d)); - c2.e.addEventListener("mouseup", d.stopDraggingAll.bind(d)); + c1.e.addEventListener("mousedown", md.startDragging.bind(md)); + c1.e.addEventListener("mouseup", md.stopDraggingAll.bind(md)); + c2.e.addEventListener("mousedown", md.startDragging.bind(md)); + c2.e.addEventListener("mouseup", md.stopDraggingAll.bind(md)); - game.tab.root.append(c1.e); - game.tab.root.append(c2.e); + game.tab.root.append(d.e); game.tab.openTable(); } -- cgit v1.2.3