1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-10-09 07:39:08 +00:00

test styling

This commit is contained in:
devfake
2015-06-24 12:44:10 +02:00
parent 3a40824fcc
commit 2b5f67b5e9
4 changed files with 49 additions and 17 deletions

View File

@@ -8,21 +8,28 @@ module.exports = {
data: function() {
return {
cards: [],
deck: []
deck: [],
leaders: [],
leader: null,
factionFilter: 'Northern Realm'
}
},
ready: function() {
this.cards = $.map(cards, function(n) {
if(n.faction == 'Northern Realm' && n.type != 3) return n;
});
this.cards = cards;
},
$.map(deck, (n, i) => {
if(i == 'northern_realm') {
for(var m in n) {
this.deck.push(this.cards[m]);
}
}
});
methods: {
changeDeck: function(deck) {
$('.all-cards').addClass('remove');
this.factionFilter = deck;
$('.all-cards').scrollTop(0);
setTimeout(function() {
$('.all-cards').removeClass('remove');
}, 600);
}
}
};