diff --git a/vnc_pve.html b/vnc_pve.html index 99aab80..aa8369a 100644 --- a/vnc_pve.html +++ b/vnc_pve.html @@ -23,26 +23,8 @@
- + + Canvas not supported. @@ -61,111 +43,48 @@ var rfb; function passwordRequired(rfb) { - var msg; - msg = '
= 1) { - xvpbuttons.style.display = 'inline'; - } else { - xvpbuttons.style.display = 'none'; - } + // do nothing } window.onscriptsload = function () { var host, port, password, path, token; - $D('sendCtrlAltDelButton').style.display = "inline"; - $D('sendCtrlAltDelButton').onclick = sendCtrlAltDel; - $D('xvpShutdownButton').onclick = xvpShutdown; - $D('xvpRebootButton').onclick = xvpReboot; - $D('xvpResetButton').onclick = xvpReset; - WebUtil.init_logging(WebUtil.getQueryVar('logging', 'warn')); document.title = unescape(WebUtil.getQueryVar('title', 'noVNC')); // By default, use the host and port of server that served this file host = WebUtil.getQueryVar('host', window.location.hostname); port = WebUtil.getQueryVar('port', window.location.port); - - // if port == 80 (or 443) then it won't be present and should be - // set manually - if (!port) { - if (window.location.protocol.substring(0,5) == 'https') { - port = 443; - } - else if (window.location.protocol.substring(0,4) == 'http') { - port = 80; - } - } - - // If a token variable is passed in, set the parameter in a cookie. - // This is used by nova-novncproxy. - token = WebUtil.getQueryVar('token', null); - if (token) { - WebUtil.createCookie('token', token, 1) - } - password = WebUtil.getQueryVar('password', ''); path = WebUtil.getQueryVar('path', 'websockify'); if ((!host) || (!port)) { - updateState('failed', - "Must specify host and port in URL"); + updateState('failed', "Must specify host and port in URL"); return; } @@ -185,13 +104,6 @@ $D("noVNC_screen").onmouseover = function(e) { window.focus(); }; - -// .mouseout(function() { -// rfb.get_keyboard().set_focused(false); -// }).mouseover(function() { -// rfb.get_keyboard().set_focused(true); -// }); - };