Files
youtube-dl/lib/system/templates/system_restart.html

40 lines
843 B
HTML
Raw Normal View History

2022-10-02 20:18:05 +09:00
{% extends "base.html" %}
{% block content %}
<script type="text/javascript">
2022-10-11 17:00:55 +09:00
//hideMenu();
2022-10-02 20:18:05 +09:00
</script>
<div>
<h4>
{% if sub == 'restart' %}
시스템 재시작 중입니다. <br>
완료시 이전 페이지로 이동합니다.
{% elif sub == 'shutdown' %}
시스템이 종료되었습니다.
{% endif %}
</h4>
</div>
{% if sub == 'restart' %}
<script type="text/javascript">
var referer = "{{referer}}";
$(document).ready(function() {
if (MODULE_NAME == 'restart') {
$('#loading').show();
setTimeout(function(){
2022-10-12 19:17:22 +09:00
var protocol = window.location.protocol;
var restartSocket = io.connect(window.location.href);
restartSocket.on('connect', function(data){
console.log('접속 받음')
window.location.href = referer;
});
}, 3000);
2022-10-02 20:18:05 +09:00
}
})
</script>
{% endif %}
{% endblock %}