mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
luci-app-ttyd auto fit iframe height (#6821)
This commit is contained in:
parent
1549187fc5
commit
5d9e12eba4
@ -5,5 +5,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.getElementById("terminal").src = "http://" + window.location.hostname + ":7681";
|
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>
|
</script>
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
Loading…
Reference in New Issue
Block a user