-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
86 lines (76 loc) · 2.03 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Load Report Viewer</title>
<link rel=stylesheet type=text/css href="bootstrap.min.css" />
<!-- jQuery library -->
<script src="jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
var remaining;
var remainingTimeout;
function reload() {
$.ajax({
url: "/main-container",
cache: false,
success: function(data) {
clearTimeout(remainingTimeout);
$("#main-container").html(data);
remaining = 20;
update_remaining();
}
});
}
function update_remaining() {
remaining--;
if (remaining <= 0) {
$('#pre-remaining').html("any time now.");
if (remaining < 0) {
$('#remaining').html("(delayed by " + (-remaining));
$('#post-remaining').html("s)");
}
else {
$('#remaining').html("");
$('#post-remaining').html("");
}
} else {
$('#pre-remaining').html(" in about ");
$('#remaining').html(remaining);
$('#post-remaining').html(" s");
}
remainingTimeout = setTimeout(update_remaining, 1000);
}
$(document).ready(function(){
setInterval(reload, 20000);
remaining = 20;
update_remaining();
});
</script>
<!-- giving space from top when necessary - like before process table or partition rows-->
<style>
.top_spacing { margin-top:8px; }
</style>
<!-- make sure process table is displayed correctly with small screen size. -->
<style>
td { word-break:break-all; }
</style>
<!-- so that progress bars aren't so thin ( I don't know why they are. )
not sure if using px as a unit is good idea in 2017 unless you know
what you are doing and I for sure don't. -->
<style>
.progress .progress-bar {
font-size: 15px;
padding-top: 4px;
}
.progress {
height: 20px;
}
</style>
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>