RSNewWebUI/webui-src/app/assets/index.html
2019-01-05 00:03:09 +01:00

37 lines
1.0 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>rswebui6</title>
<link rel="stylesheet" href="app.css">
<script src="app.js"></script>
</head>
<body onload="load_ui();">
<div id="pouet">
<h3>
This is the node's certificate:
</h3>
<textarea rows="30" cols="64" placeholder="Node certificate should appear here!" id="node_certificate" maxlength="10000"></textarea>
<textarea rows="30" cols="64" placeholder="Downloads" id="downloads" maxlength="10000"></textarea>
<script type="text/javascript">
function load_cert(cert) {
document.getElementById("node_certificate").value = cert
}
function load_downloads(dls) {
document.getElementById("downloads").value = dls
}
function load_ui(){
var ui = require("rswebui");
ui.requestCertificate(load_cert);
var dl = require("downloads");
dl.view(load_downloads);
}
</script>
<noscript>Sorry but JavaScript is needed here! Please enable it in your browser.</noscript>
</div>
</body>
</html>