picluster/web/heartbeat.html
Verita84 48111c89c0 fix
2021-08-25 08:44:55 -06:00

50 lines
1.4 KiB
HTML

<html>
<head>
<script src="/assets/jquery.min.js"></script>
<link rel="stylesheet" href="/assets/jquery-ui.css">
<script src="/assets/jquery-ui.js"></script>
<script src="/assets/distLogo.js"></script>
<link rel="stylesheet" href="/assets/picluster-iframe.css">
<script>
function exec() {
$.get("/hb?token=" + parent.token, function(data) {
var div = document.getElementById('heartbeat-modal-body');
div.innerHTML = '\nSent request to do a manual heartbeat. Check the logs for the latest information.' + data;
});
}
</script>
</head>
<body>
<div id="output" class="modal">
<div class="modal-content modal-large">
<div class="modal-header">
<span class="close">&times;</span>
<h2>Running a heartbeat check on all containers</h2>
</div>
<div id="heartbeat-modal-body" class="modal-body">
Please wait.
</div>
</div>
</div>
<script>
var output_modal = document.getElementById('output');
var output_span = document.getElementsByClassName("close")[0];
output_span.onclick = function() {
output_modal.style.display = "none";
}
output_span.onclick = function() {
output_modal.style.display = "none";
}
output_modal.style.display = "block";
exec();
</script>
</html>