luci-app-ttyd auto fit iframe height
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
a5a2740d7c
commit
cb22ff8ea2
@ -5,5 +5,9 @@
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
document.getElementById("terminal").src = "http://" + window.location.hostname + ":7681";
|
||||
document.getElementById("terminal").height = document.documentElement.clientHeight;
|
||||
window.onresize = function(){
|
||||
document.getElementById("terminal").height = document.documentElement.clientHeight;
|
||||
}
|
||||
</script>
|
||||
<%+footer%>
|
||||
<%+footer%>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user