]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Add a screen element for vnc_lite.html
authorSamuel Mannehed <samuel@cendio.se>
Tue, 21 Aug 2018 09:29:39 +0000 (11:29 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Tue, 28 Aug 2018 08:42:39 +0000 (10:42 +0200)
Makes it clearer where the remote screen will be created.

vnc_lite.html

index 2398bea2cbbc810804abe6af54fe4f687dfe341a..898187a8e6438a215e503ad407fbe940ec7ed2c8 100644 (file)
             cursor: pointer;
         }
 
+        #screen {
+            flex: 1; /* fill remaining space */
+            overflow: hidden;
+        }
+
     </style>
 
     <!-- Promise polyfill for IE11 -->
         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
         <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>