Add a screen element for vnc_lite.html

Makes it clearer where the remote screen will be created.
This commit is contained in:
Samuel Mannehed 2018-08-21 11:29:39 +02:00
parent 8613f6f4ae
commit 1c945f812b
1 changed files with 9 additions and 1 deletions

View File

@ -55,6 +55,11 @@
cursor: pointer; cursor: pointer;
} }
#screen {
flex: 1; /* fill remaining space */
overflow: hidden;
}
</style> </style>
<!-- Promise polyfill for IE11 --> <!-- Promise polyfill for IE11 -->
@ -172,7 +177,7 @@
url += '/' + path; url += '/' + path;
// Creating a new RFB object will start a new connection // Creating a new RFB object will start a new connection
rfb = new RFB(document.body, url, rfb = new RFB(document.getElementById('screen'), url,
{ credentials: { password: password } }); { credentials: { password: password } });
// Add listeners to important events from the RFB module // Add listeners to important events from the RFB module
@ -192,5 +197,8 @@
<div id="status">Loading</div> <div id="status">Loading</div>
<div id="sendCtrlAltDelButton">Send CtrlAltDel</div> <div id="sendCtrlAltDelButton">Send CtrlAltDel</div>
</div> </div>
<div id="screen">
<!-- This is where the remote screen will appear -->
</div>
</body> </body>
</html> </html>