mirror of
https://github.com/unraid/webgui.git
synced 2026-03-14 15:01:42 -05:00
45 lines
1.1 KiB
HTML
45 lines
1.1 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<link type="text/css" rel="stylesheet" href="/webGui/styles/default-fonts.css">
|
|
|
|
<script src="/webGui/javascript/dynamix.js"></script>
|
|
|
|
<style >
|
|
.logLine{font-family:bitstream;font-size:11px;text-align:left;}
|
|
legend{font-size:12px;font-weight:bold;}
|
|
</style>
|
|
|
|
<script>
|
|
var dots = [];
|
|
var span = [];
|
|
function show_Wait(id){
|
|
span[id] = document.getElementById("wait" + id);
|
|
dots[id] = setInterval(function() {
|
|
if ((span[id].innerHTML += '.').length == 18) {
|
|
span[id].innerHTML = 'Please wait ';
|
|
}}, 500);
|
|
}
|
|
|
|
function stop_Wait(id){
|
|
span[id].innerHTML = '';
|
|
clearInterval( dots[id] );
|
|
}
|
|
|
|
function addLog(logLine) {
|
|
$(".logLine:last").append(logLine + "<br>");
|
|
window.scrollTo(0,document.body.scrollHeight);
|
|
}
|
|
|
|
function loadLog(container, since) {
|
|
$.get(location.protocol+'//'+location.host+location.pathname,{action:'log',container:container,since:since},function(data){
|
|
if(data) $('.logLine:last').append(data);
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div style="margin:10;padding:0" id="content"><p class="logLine" id="logBody"></p></div>
|
|
</body>
|
|
</html>
|