mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-27 03:46:54 +00:00
26 lines
458 B
JavaScript
26 lines
458 B
JavaScript
|
var router = require('./../routes');
|
||
|
|
||
|
module.exports = {
|
||
|
|
||
|
template: require('../views/landing.html'),
|
||
|
|
||
|
inherit: true,
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
};
|