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

implement login view

This commit is contained in:
devfake
2015-06-23 09:44:14 +02:00
parent f3759f78cb
commit ba0965c016
8 changed files with 61 additions and 11 deletions

View File

@@ -1,11 +1,5 @@
module.exports = {
template: "<h2>deckbuilder hier</h2>",
data: function() {
return {
}
}
template: require('../views/deckBuilder.html')
};

View File

@@ -6,6 +6,16 @@ module.exports = {
inherit: true,
data: function() {
return {
modal: false
}
},
components: {
login: require('./modals/login')
},
ready: function() {
setTimeout(function() {
$('.container-form-landing').addClass('active')
@@ -20,6 +30,14 @@ module.exports = {
setTimeout(function() {
window.location.href = './lobby';
}, 500);
},
openLogin: function() {
this.modal = true;
setTimeout(function() {
$('.login-username').focus();
}, 500);
}
}

View File

@@ -0,0 +1,11 @@
module.exports = {
template: require('../../views/modals/login.html'),
inherit: true,
methods: {
}
};