summaryrefslogtreecommitdiff
path: root/webcards/scripts/cards/card.js
diff options
context:
space:
mode:
authorKyle Gunger <corechg@gmail.com>2020-05-17 20:31:10 -0400
committerKyle Gunger <corechg@gmail.com>2020-05-17 20:31:10 -0400
commit20201f77b5cf5cbb1c70b1cc51c4108d620a3202 (patch)
tree30e2871b60ac12f5b3ac2df5a1176faf682ce3ac /webcards/scripts/cards/card.js
parentb48f0adccb11619680a47cac5fa9c68f638bd489 (diff)
[Webcards] styles and some fixes
+ Fixed draging transformed cards + Fixed mobile styles + Theme template complete
Diffstat (limited to 'webcards/scripts/cards/card.js')
-rw-r--r--webcards/scripts/cards/card.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/webcards/scripts/cards/card.js b/webcards/scripts/cards/card.js
index 0f045fe..932a22c 100644
--- a/webcards/scripts/cards/card.js
+++ b/webcards/scripts/cards/card.js
@@ -94,5 +94,10 @@ Card.prototype = {
generateErrorCard: function(el)
{
this.generateBasicCard("Card Error: data", el);
+ },
+
+ setPos: function(p)
+ {
+ this.e.style.setProperty("--cpos", p);
}
}; \ No newline at end of file