mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
35 lines
663 B
JavaScript
35 lines
663 B
JavaScript
var cards = require("../../../../../../assets/data/cards");
|
|
var deck = require("../../../../../../assets/data/deck");
|
|
|
|
module.exports = {
|
|
|
|
template: require('../views/deck-builder.html'),
|
|
|
|
data: function() {
|
|
return {
|
|
cards: [],
|
|
deck: [],
|
|
|
|
leaders: [],
|
|
leader: null,
|
|
|
|
factionFilter: 'Northern Realm'
|
|
}
|
|
},
|
|
|
|
ready: function() {
|
|
this.cards = cards;
|
|
},
|
|
|
|
methods: {
|
|
changeDeck: function(deck) {
|
|
$('.all-cards').addClass('remove');
|
|
this.factionFilter = deck;
|
|
$('.all-cards').scrollTop(0);
|
|
|
|
setTimeout(function() {
|
|
$('.all-cards').removeClass('remove');
|
|
}, 600);
|
|
}
|
|
}
|
|
}; |