diff options
author | Samuel Mannehed <samuel@cendio.se> | 2018-08-21 11:29:39 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2018-08-28 10:42:39 +0200 |
commit | 1c945f812b1e4db4bba9b57fd2ddbc3c8235f45d (patch) | |
tree | 95e0a6bc7637ac4ac642a21095f1842da0457903 | |
parent | 8613f6f4ae0f048bdf13490b9a476641872a4035 (diff) | |
download | novnc-1c945f812b1e4db4bba9b57fd2ddbc3c8235f45d.tar.gz |
Add a screen element for vnc_lite.html
Makes it clearer where the remote screen will be created.
-rw-r--r-- | vnc_lite.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vnc_lite.html b/vnc_lite.html index 2398bea..898187a 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -55,6 +55,11 @@ cursor: pointer; } + #screen { + flex: 1; /* fill remaining space */ + overflow: hidden; + } + </style> <!-- Promise polyfill for IE11 --> @@ -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 @@ -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> |