luci-app-ttyd auto fit iframe height (#6821)

This commit is contained in:
Bob zhang 2021-05-14 12:32:48 +08:00 committed by GitHub
parent 1549187fc5
commit 5d9e12eba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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%>