|
|
@ -115,12 +115,14 @@ $('document').ready(function () {
|
|
|
|
$('#launch .fa-spin').removeClass('hide');
|
|
|
|
$('#launch .fa-spin').removeClass('hide');
|
|
|
|
|
|
|
|
|
|
|
|
$.post('/launch', function () {
|
|
|
|
$.post('/launch', function () {
|
|
|
|
var checker = setInterval(function () {
|
|
|
|
var successCount = 0;
|
|
|
|
|
|
|
|
setInterval(function () {
|
|
|
|
$.get('/admin').done(function () {
|
|
|
|
$.get('/admin').done(function () {
|
|
|
|
clearInterval(checker);
|
|
|
|
if (successCount >= 5) {
|
|
|
|
setTimeout(function () {
|
|
|
|
|
|
|
|
window.location = 'admin';
|
|
|
|
window.location = 'admin';
|
|
|
|
}, 2000);
|
|
|
|
} else {
|
|
|
|
|
|
|
|
successCount += 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, 750);
|
|
|
|
}, 750);
|
|
|
|
});
|
|
|
|
});
|
|
|
|