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

86 lines
1.7 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>
<link rel="stylesheet" href="/assets/picluster-iframe.css">
<script>
function display_doc_markdown() {
var div = document.getElementById('docs-modal-body');
var docfile = document.doc_id;
(div && docfile) ? div.innerHTML(docfile): div;
return docfile;
}
console.log(display_doc_markdown());
function exec_docs_html() {
}
</script>
</head>
<body>
<div id="modal_container" class="modal">
<div class="modal-content modal-large">
<div class="modal-header">
<span class="close">&times;</span>
<h2>PiCluster Documentation</h2>
</div>
<div class="modal-body">
<p align=left>
<script>
display_doc_markdown()
</script>
</p>
</div>
</div>
</div>
<div id="output" class="modal">
<div class="modal-content modal-large">
<div class="modal-header">
<span class="close">&times;</span>
<h2>Command Output</h2>
</div>
<div id="docs-modal-body" class="modal-body">
Please wait.
</div>
</div>
</div>
<script>
var modal = document.getElementById('modal_container');
var span = document.getElementsByClassName("close")[0];
var output_modal = document.getElementById('output');
var output_span = document.getElementsByClassName("close")[1];
span.onclick = function () {
modal.style.display = "none";
}
output_span.onclick = function () {
output_modal.style.display = "none";
}
modal.style.display = "block";
$(function () {
var option = '';
$.get('/listdocs'), $('#doc_list').append(option);
console.log(option);
});
display_doc_markdown();
</script>
</html>