2023-11-03 16:41:23 -04:00
|
|
|
{% extends ../base.html %}
|
|
|
|
|
|
|
|
{% block meta %}
|
|
|
|
{% end %}
|
|
|
|
|
|
|
|
{% block title %}Crafty Controller Starting{% end %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="content-wrapper">
|
2024-08-13 23:08:00 +02:00
|
|
|
<div class="card-header justify-content-between align-items-center border-0">
|
2024-08-06 23:38:02 +02:00
|
|
|
<div id="image-div" class="w-100">
|
2024-08-13 23:08:00 +02:00
|
|
|
<img class="img-center clearfix" id="logo-animate" src="../static/assets/images/crafty-logo-square-1024.png" alt="Crafty Logo, Crafty is loading" width="20%">
|
2023-11-03 16:41:23 -04:00
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</br>
|
2024-08-06 23:38:02 +02:00
|
|
|
<div id="text-div" class="w-100 text-center">
|
|
|
|
<h2 id="status" class="d-block" data-init="{{ translate('startup', 'serverInit', data['lang']) }}" data-server="{{ translate('startup', 'server', data['lang']) }}" data-internet="{{ translate('startup', 'internet', data['lang']) }}" data-tasks="{{ translate('startup', 'tasks', data['lang']) }}" data-internals="{{ translate('startup', 'internals', data['lang']) }}" data-almost="{{ translate('startup', 'almost', data['lang']) }}" data-cache="{{ translate('startup', 'cache', data['lang'])}}">
|
|
|
|
{{ translate('startup', 'starting', data['lang']) }}
|
|
|
|
</h2>
|
2023-11-03 16:41:23 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.img-center {
|
|
|
|
display: block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
function rotateImage(degree) {
|
|
|
|
$('#logo-animate').animate({ transform: degree }, {
|
|
|
|
step: function (now, fx) {
|
|
|
|
$(this).css({
|
|
|
|
'-webkit-transform': 'rotate(' + now + 'deg)',
|
|
|
|
'-moz-transform': 'rotate(' + now + 'deg)',
|
|
|
|
'transform': 'rotate(' + now + 'deg)'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
setTimeout(function () {
|
|
|
|
rotateImage(360);
|
|
|
|
}, 2000);
|
|
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
rotateImage(360);
|
|
|
|
}, 2000);
|
|
|
|
if (webSocket) {
|
|
|
|
webSocket.on('update', function (data) {
|
2023-11-30 12:14:09 -05:00
|
|
|
if ("server" in data) {
|
|
|
|
$("#status").html(`${$("#status").data(data.section)} ${data.server}...`);
|
|
|
|
} else {
|
|
|
|
$("#status").html($("#status").data(data.section));
|
|
|
|
}
|
2023-11-03 16:41:23 -04:00
|
|
|
});
|
|
|
|
webSocket.on('send_start_reload', function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
location.href = '/panel/dashboard'
|
|
|
|
}, 5000);
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
2024-05-09 17:36:56 -04:00
|
|
|
{% end %}
|