From 63708ff5a87be1574d96331a376351b5eff098e7 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 15 Jun 2010 17:47:01 -0500 Subject: [PATCH] Add CtrlAltDel send button to status bar. Some default_controls.js jslinting. Needs to be some modularity between controls you probably always want (like sending CtrlAltDel) and how the interface is presented and controlled. --- include/black.css | 26 ++++++++++++++++++++++---- include/default_controls.js | 30 +++++++++++++++++++++--------- include/plain.css | 23 ++++++++++++++++++++--- include/vnc.js | 28 +++++++++++++++++++++++++++- vnc_auto.html | 23 +++++++++++++++++------ 5 files changed, 107 insertions(+), 23 deletions(-) diff --git a/include/black.css b/include/black.css index b5b939ec..2d9d0add 100644 --- a/include/black.css +++ b/include/black.css @@ -45,11 +45,29 @@ body { width: 100px; } -#VNC_status { - padding: 1em; - font-weight: bold; - text-align: center; +#VNC_status_bar td { + padding: 0px; + margin: 0px; } +#VNC_status_bar div { + font-size: 12px; + font-weight: bold; + text-align: center; + margin: 0px; + padding: 1em; +} +#VNC_status_bar input { + font-size: 10px; + margin: 0px; + padding: 0px; +} +#VNC_status { + text-align: center; +} +#VNC_buttons { + text-align: right; +} + .VNC_status_normal { color: #fff; } diff --git a/include/default_controls.js b/include/default_controls.js index bff2e2c6..b108931b 100644 --- a/include/default_controls.js +++ b/include/default_controls.js @@ -6,20 +6,20 @@ * See README.md for usage and integration instructions. */ "use strict"; +/*global console, $, RFB, Canvas, VNC_uri_prefix, Element, Fx */ // Load mootools (function () { - var prefix = (typeof VNC_uri_prefix !== "undefined") ? + var pre = (typeof VNC_uri_prefix !== "undefined") ? VNC_uri_prefix : "include/"; - document.write("