[go: nahoru, domu]

Skip to content

Commit

Permalink
Add a screen element for vnc_lite.html
Browse files Browse the repository at this point in the history
Makes it clearer where the remote screen will be created.
  • Loading branch information
samhed committed Aug 28, 2018
1 parent 8613f6f commit 1c945f8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vnc_lite.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
cursor: pointer;
}

#screen {
flex: 1; /* fill remaining space */
overflow: hidden;
}

</style>

<!-- Promise polyfill for IE11 -->
Expand Down Expand Up @@ -172,7 +177,7 @@
url += '/' + path;

// 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 } });

// Add listeners to important events from the RFB module
Expand All @@ -192,5 +197,8 @@
<div id="status">Loading</div>
<div id="sendCtrlAltDelButton">Send CtrlAltDel</div>
</div>
<div id="screen">
<!-- This is where the remote screen will appear -->
</div>
</body>
</html>

0 comments on commit 1c945f8

Please sign in to comment.