Files
boxweb/templates/common.html
T
zolliker 50a707e88e setting to active no longer reloads the page
else we have a conflict with the tunneled option
2026-07-31 13:42:42 +02:00

40 lines
995 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Control Panel</title>
<style>
{% include css %}
</style>
</head>
<body>
<div class="content-container">
{% include svg %}
<div class="control-panel">
<div>
<input type=radio id="readonly", onClick="setWritable(0);" checked>view only
<input type=radio id="writable", onClick="setWritable(1);"">ACTIVE
</div>
<p> Status messages </p>
<textarea name="outputtext" id="outputtext" rows="10" cols="30" readonly></textarea>
</div>
</div>
</body>
<script>
const urlParams = new URLSearchParams(window.location.search);
var wsaddr = "ws://{{ wsaddr }}";
var writable = false;
function setWritable(flag) {
document.getElementById('readonly').checked = ! flag;
document.getElementById('writable').checked = flag;
writable = flag;
}
{% include js %}
</script>
</body>
</html>