summaryrefslogtreecommitdiff
path: root/webcards/scripts/cards/card.js
diff options
context:
space:
mode:
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