1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00
not-gwent-online/site/client/app/modules/deck-builder/components/deck-builder.js

35 lines
663 B
JavaScript
Raw Normal View History

2015-06-24 05:09:16 +00:00
var cards = require("../../../../../../assets/data/cards");
var deck = require("../../../../../../assets/data/deck");
2015-06-23 08:36:29 +00:00
module.exports = {
2015-06-24 05:09:16 +00:00
template: require('../views/deck-builder.html'),
data: function() {
return {
cards: [],
2015-06-24 10:44:10 +00:00
deck: [],
leaders: [],
leader: null,
factionFilter: 'Northern Realm'
2015-06-24 05:09:16 +00:00
}
},
ready: function() {
2015-06-24 10:44:10 +00:00
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);
}
2015-06-24 05:09:16 +00:00
}
2015-06-23 08:36:29 +00:00
};