1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00
not-gwent-online/site/client/app/components/landing.js

44 lines
727 B
JavaScript
Raw Normal View History

2015-06-22 09:57:22 +00:00
var router = require('./../routes');
module.exports = {
template: require('../views/landing.html'),
inherit: true,
2015-06-23 07:44:14 +00:00
data: function() {
return {
modal: false
}
},
components: {
login: require('./modals/login')
},
2015-06-22 09:57:22 +00:00
ready: function() {
setTimeout(function() {
$('.container-form-landing').addClass('active')
}, 300);
},
methods: {
asGuest: function() {
// set localstorage for guest
$('.icon-guest-load').show();
setTimeout(function() {
window.location.href = './lobby';
}, 500);
2015-06-23 07:44:14 +00:00
},
openLogin: function() {
this.modal = true;
setTimeout(function() {
$('.login-username').focus();
}, 500);
2015-06-22 09:57:22 +00:00
}
}
};