<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<!--
This is a self-contained file which doesn't import WebUtil or external CSS.
- Copyright (C) 2012 Joel Martin
- Copyright (C) 2018 Samuel Mannehed for Cendio AB
+ Copyright (C) 2018 The noVNC Authors
noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
<meta charset="utf-8">
- <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
- Remove this if you use the .htaccess -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-
- <style type="text/css">
+ <style>
body {
margin: 0;
cursor: pointer;
}
+ #screen {
+ flex: 1; /* fill remaining space */
+ overflow: hidden;
+ }
+
</style>
<!-- Promise polyfill for IE11 -->
window.addEventListener("load", function() {
if (window._noVNC_has_module_support) return;
const loader = document.createElement("script");
- loader.src = "vendor/browser-es-module-loader/dist/browser-es-module-loader.js";
+ loader.src = "vendor/browser-es-module-loader/dist/" +
+ "browser-es-module-loader.js";
document.head.appendChild(loader);
});
</script>
return defaultValue;
}
- document.getElementById('sendCtrlAltDelButton').onclick = sendCtrlAltDel;
+ document.getElementById('sendCtrlAltDelButton')
+ .onclick = sendCtrlAltDel;
// Read parameters specified in the URL query string
// By default, use the host and port of server that served this file
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>