diff --git a/LICENSE.txt b/LICENSE.txt index e04046c..755ace3 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -5,7 +5,7 @@ Please refer to the individual source files and/or to the noVNC commit history: https://github.com/kanaka/noVNC/commits/master noVNC is licensed under the LGPL (GNU Lesser General Public License) -version 3 with the following exceptions (all LGPL compatible): +version 3 with the following exceptions (all LGPL-3 compatible): include/input.js : LGPL-2 or any later version @@ -21,14 +21,13 @@ version 3 with the following exceptions (all LGPL compatible): images/ : Creative Commons Attribution-ShareAlike http://creativecommons.org/licenses/by-sa/3.0/ - Uses of the work must be attributed - to the noVNC project. -The LGPL-3 and OFL license texts are included at: +The license texts are included at: docs/LICENSE.LGPL-3 and docs/LICENSE.GPL-3 docs/LICENSE.OFL-1.1 -Or alternatively the LGPL-3 license text may be found here: +Or alternatively the license texts may be found here: http://www.gnu.org/licenses/lgpl.html and http://www.gnu.org/licenses/gpl.html + http://scripts.sil.org/OFL diff --git a/images/Logo.svg b/images/Logo.svg deleted file mode 100644 index 36a7ea6..0000000 --- a/images/Logo.svg +++ /dev/null @@ -1,687 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/clipboard.png b/images/clipboard.png index 571a909..24df33c 100644 Binary files a/images/clipboard.png and b/images/clipboard.png differ diff --git a/images/clipboard_sml.png b/images/clipboard_sml.png deleted file mode 100644 index 24df33c..0000000 Binary files a/images/clipboard_sml.png and /dev/null differ diff --git a/images/connect.png b/images/connect.png index 73c5704..79e71ad 100644 Binary files a/images/connect.png and b/images/connect.png differ diff --git a/images/connect_sml.png b/images/connect_sml.png deleted file mode 100644 index 79e71ad..0000000 Binary files a/images/connect_sml.png and /dev/null differ diff --git a/images/ctrlaltdel_sml.png b/images/ctrlaltdel.png similarity index 100% rename from images/ctrlaltdel_sml.png rename to images/ctrlaltdel.png diff --git a/images/disconnect.png b/images/disconnect.png index d2dcf9c..8832f5e 100644 Binary files a/images/disconnect.png and b/images/disconnect.png differ diff --git a/images/disconnect_sml.png b/images/disconnect_sml.png deleted file mode 100644 index 8832f5e..0000000 Binary files a/images/disconnect_sml.png and /dev/null differ diff --git a/images/drag_sml.png b/images/drag.png similarity index 100% rename from images/drag_sml.png rename to images/drag.png diff --git a/images/full_512x512.png b/images/full_512x512.png deleted file mode 100644 index 1868e22..0000000 Binary files a/images/full_512x512.png and /dev/null differ diff --git a/images/keyboard.png b/images/keyboard.png index f7c47ce..f797952 100644 Binary files a/images/keyboard.png and b/images/keyboard.png differ diff --git a/images/keyboard_sml.png b/images/keyboard_sml.png deleted file mode 100644 index f797952..0000000 Binary files a/images/keyboard_sml.png and /dev/null differ diff --git a/images/left_mouse.png b/images/mouse_left.png similarity index 100% rename from images/left_mouse.png rename to images/mouse_left.png diff --git a/images/middle_mouse.png b/images/mouse_middle.png similarity index 100% rename from images/middle_mouse.png rename to images/mouse_middle.png diff --git a/images/nobutton_mouse.png b/images/mouse_none.png similarity index 100% rename from images/nobutton_mouse.png rename to images/mouse_none.png diff --git a/images/right_mouse.png b/images/mouse_right.png similarity index 100% rename from images/right_mouse.png rename to images/mouse_right.png diff --git a/images/move.png b/images/move.png deleted file mode 100644 index b6156b5..0000000 Binary files a/images/move.png and /dev/null differ diff --git a/images/screen_640x435.png b/images/screen_640x435.png deleted file mode 100644 index 51228ff..0000000 Binary files a/images/screen_640x435.png and /dev/null differ diff --git a/images/settings.png b/images/settings.png index 3ff91d3..a43f5e1 100644 Binary files a/images/settings.png and b/images/settings.png differ diff --git a/images/settings_sml.png b/images/settings_sml.png deleted file mode 100644 index a43f5e1..0000000 Binary files a/images/settings_sml.png and /dev/null differ diff --git a/include/base.css b/include/base.css index 4404d01..268f738 100644 --- a/include/base.css +++ b/include/base.css @@ -47,21 +47,22 @@ html { /*Mobile buttons bar.*/ #noVNC-control-bar { position:fixed; - background: #b2bdcd; /* Old browsers */ -background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b2bdcd), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */ -background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b2bdcd', endColorstr='#6e84a3',GradientType=0 ); /* IE6-9 */ -background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */ + background: #b2bdcd; /* Old browsers */ + background: -moz-linear-gradient(top, #b2bdcd 0%, #899cb3 49%, #7e93af 51%, #6e84a3 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b2bdcd), color-stop(49%,#899cb3), color-stop(51%,#7e93af), color-stop(100%,#6e84a3)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* Opera11.10+ */ + background: -ms-linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b2bdcd', endColorstr='#6e84a3',GradientType=0 ); /* IE6-9 */ + background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */ + display:block; height:44px; left:0; top:0; width:100%; z-index:200; -} +} #noVNC_view_drag_button { display: none; @@ -143,8 +144,8 @@ background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100% } #noVNC_container, #noVNC_canvas { - margin: 0px; - padding: 0px; + margin: 0px; + padding: 0px; } #noVNC_canvas { @@ -197,9 +198,9 @@ background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100% left:50px; /* controls horizontal position */ border-width:20px 0 0 20px; /* vary these values to change the angle of the vertex */ border-style:solid; - border-color:#E0E0E0 transparent; + border-color:#E0E0E0 transparent; /* reduce the damage in FF3.0 */ - display:block; + display:block; width:0; } @@ -209,12 +210,12 @@ background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100% bottom:auto; left:auto; border-width:40px 40px 0 0; /* vary these values to change the angle of the vertex */ - border-color:transparent #E0E0E0; + border-color:transparent #E0E0E0; } /*Bubble contents divs*/ #noVNC_settings { - display:none; + display:none; margin-top:77px; right:20px; position:fixed; @@ -230,7 +231,7 @@ background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100% } #noVNC_clipboard { - display:none; + display:none; margin-top:77px; right:30px; position:fixed; @@ -307,25 +308,23 @@ background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100% filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b2bdcd', endColorstr='#6e84a3',GradientType=0 ); /* IE6-9 */ background: linear-gradient(top, #b2bdcd 0%,#899cb3 49%,#7e93af 51%,#6e84a3 100%); /* W3C */ /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/ - - } .noVNC_status_button_selected { - font-size: 12px; - padding: 4px 4px; - vertical-align: middle; - border:1px solid #4366a9; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - background: #779ced; /* Old browsers */ - background: -moz-linear-gradient(top, #779ced 0%, #3970e0 49%, #2160dd 51%, #2463df 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#779ced), color-stop(49%,#3970e0), color-stop(51%,#2160dd), color-stop(100%,#2463df)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* IE10+ */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#779ced', endColorstr='#2463df',GradientType=0 ); /* IE6-9 */ - background: linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* W3C */ + font-size: 12px; + padding: 4px 4px; + vertical-align: middle; + border:1px solid #4366a9; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + background: #779ced; /* Old browsers */ + background: -moz-linear-gradient(top, #779ced 0%, #3970e0 49%, #2160dd 51%, #2463df 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#779ced), color-stop(49%,#3970e0), color-stop(51%,#2160dd), color-stop(100%,#2463df)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* Opera11.10+ */ + background: -ms-linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#779ced', endColorstr='#2463df',GradientType=0 ); /* IE6-9 */ + background: linear-gradient(top, #779ced 0%,#3970e0 49%,#2160dd 51%,#2463df 100%); /* W3C */ /*box-shadow:inset 0.4px 0.4px 0.4px #000000;*/ } diff --git a/include/black.css b/include/black.css index 96a96b0..ce073dd 100644 --- a/include/black.css +++ b/include/black.css @@ -1,12 +1,12 @@ #noVNC-control-bar { - background: #4c4c4c; /* Old browsers */ - background: -moz-linear-gradient(top, #4c4c4c 0%, #2c2c2c 50%, #000000 51%, #131313 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c4c4c), color-stop(50%,#2c2c2c), color-stop(51%,#000000), color-stop(100%,#131313)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* IE10+ */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ - background: linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* W3C */ + background: #4c4c4c; /* Old browsers */ + background: -moz-linear-gradient(top, #4c4c4c 0%, #2c2c2c 50%, #000000 51%, #131313 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c4c4c), color-stop(50%,#2c2c2c), color-stop(51%,#000000), color-stop(100%,#131313)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Opera11.10+ */ + background: -ms-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ + background: linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* W3C */ } .triangle-right { @@ -21,28 +21,26 @@ .noVNC_status_button { font-size: 12px; - vertical-align: middle; border:1px solid #4c4c4c; - background: #4c4c4c; /* Old browsers */ - background: -moz-linear-gradient(top, #4c4c4c 0%, #2c2c2c 50%, #000000 51%, #131313 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c4c4c), color-stop(50%,#2c2c2c), color-stop(51%,#000000), color-stop(100%,#131313)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* IE10+ */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ - background: linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* W3C */ - + + background: #4c4c4c; /* Old browsers */ + background: -moz-linear-gradient(top, #4c4c4c 0%, #2c2c2c 50%, #000000 51%, #131313 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c4c4c), color-stop(50%,#2c2c2c), color-stop(51%,#000000), color-stop(100%,#131313)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* Opera11.10+ */ + background: -ms-linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ + background: linear-gradient(top, #4c4c4c 0%,#2c2c2c 50%,#000000 51%,#131313 100%); /* W3C */ } .noVNC_status_button_selected { - -background: #9dd53a; /* Old browsers */ -background: -moz-linear-gradient(top, #9dd53a 0%, #a1d54f 50%, #80c217 51%, #7cbc0a 100%); /* FF3.6+ */ -background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9dd53a), color-stop(50%,#a1d54f), color-stop(51%,#80c217), color-stop(100%,#7cbc0a)); /* Chrome,Safari4+ */ -background: -webkit-linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* Chrome10+,Safari5.1+ */ -background: -o-linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* Opera11.10+ */ -background: -ms-linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* IE10+ */ -filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9dd53a', endColorstr='#7cbc0a',GradientType=0 ); /* IE6-9 */ -background: linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* W3C */ + background: #9dd53a; /* Old browsers */ + background: -moz-linear-gradient(top, #9dd53a 0%, #a1d54f 50%, #80c217 51%, #7cbc0a 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9dd53a), color-stop(50%,#a1d54f), color-stop(51%,#80c217), color-stop(100%,#7cbc0a)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* Opera11.10+ */ + background: -ms-linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9dd53a', endColorstr='#7cbc0a',GradientType=0 ); /* IE6-9 */ + background: linear-gradient(top, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%); /* W3C */ } diff --git a/include/ui.js b/include/ui.js index 94ad9a0..74a0005 100644 --- a/include/ui.js +++ b/include/ui.js @@ -17,6 +17,7 @@ settingsOpen : false, connSettingsOpen : true, clipboardOpen: false, keyboardVisible: false, + // Render default UI and initialize settings menu load: function() { var html = '', i, sheet, sheets, llevels; @@ -39,26 +40,26 @@ load: function() { WebUtil.init_logging(UI.getSetting('logging')); UI.initSetting('stylesheet', 'default'); - WebUtil.selectStylesheet(null); + WebUtil.selectStylesheet(null); // call twice to get around webkit bug WebUtil.selectStylesheet(UI.getSetting('stylesheet')); /* Populate the controls if defaults are provided in the URL */ - UI.initSetting('host', ''); + UI.initSetting('host', ''); UI.initSetting('port', ''); UI.initSetting('password', ''); UI.initSetting('encrypt', false); UI.initSetting('true_color', true); UI.initSetting('cursor', false); - UI.initSetting('shared', true); + UI.initSetting('shared', true); UI.initSetting('connectTimeout', 2); - UI.initSetting('path', ''); + UI.initSetting('path', ''); UI.rfb = RFB({'target': $D('noVNC_canvas'), 'onUpdateState': UI.updateState, 'onClipboard': UI.clipReceive}); UI.updateVisualState(); - + // Unfocus clipboard when over the VNC area //$D('VNC_screen').onmousemove = function () { // var keyboard = UI.rfb.get_keyboard(); @@ -80,15 +81,15 @@ load: function() { UI.initSetting('clip', false); } - //iOS Safari does not support CSS position:fixed. - //This detects iOS devices and enables javascript workaround. + //iOS Safari does not support CSS position:fixed. + //This detects iOS devices and enables javascript workaround. if ((navigator.userAgent.match(/iPhone/i)) || - (navigator.userAgent.match(/iPod/i)) || + (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { //UI.setOnscroll(); - //UI.setResize(); + //UI.setResize(); } - + $D('noVNC_host').focus(); UI.setViewClip(); @@ -140,7 +141,7 @@ updateSetting: function(name, value) { } } } else { - /*Weird IE9 error leads to 'null' appearring + /*Weird IE9 error leads to 'null' appearring in textboxes instead of ''.*/ if (value === null) { value = ""; @@ -217,8 +218,8 @@ toggleConnectPanel: function() { $D('connectButton').className = "noVNC_status_button"; } if (UI.clipboardOpen == true) { - UI.toggleClipboardPanel(); - } + UI.toggleClipboardPanel(); + } //Toggle Connection Panel if (UI.connSettingsOpen == true) { @@ -263,8 +264,8 @@ toggleSettingsPanel: function() { // Open menu openSettingsMenu: function() { if (UI.clipboardOpen == true) { - UI.toggleClipboardPanel(); - } + UI.toggleClipboardPanel(); + } //Close connection settings if open if (UI.connSettingsOpen == true) { UI.toggleConnectPanel(); @@ -548,9 +549,9 @@ setViewDrag: function(drag) { if (UI.rfb_state === 'normal' && UI.rfb.get_display().get_viewport()) { - $D('noVNC_view_drag_button').style.display = "inline"; + vmb.style.display = "inline"; } else { - $D('noVNC_view_drag_button').style.display = "none"; + vmb.style.display = "none"; } if (typeof(drag) === "undefined") { @@ -558,10 +559,10 @@ setViewDrag: function(drag) { drag = !UI.rfb.get_viewportDrag(); } if (drag) { - $D('noVNC_view_drag_button').className = "noVNC_status_button_selected"; + vmb.className = "noVNC_status_button_selected"; UI.rfb.set_viewportDrag(true); } else { - $D('noVNC_view_drag_button').className = "noVNC_status_button"; + vmb.className = "noVNC_status_button"; UI.rfb.set_viewportDrag(false); } }, @@ -569,31 +570,26 @@ setViewDrag: function(drag) { // On touch devices, show the OS keyboard showKeyboard: function() { if(UI.keyboardVisible == false) { - $D('keyboardinput').focus(); - UI.keyboardVisible = true; - $D('showKeyboard').className = - "noVNC_status_button_selected"; + $D('keyboardinput').focus(); + UI.keyboardVisible = true; + $D('showKeyboard').className = "noVNC_status_button_selected"; } else if(UI.keyboardVisible == true) { - $D('keyboardinput').blur(); - $D('showKeyboard').className = - "noVNC_status_button"; - UI.keyboardVisible = false; + $D('keyboardinput').blur(); + $D('showKeyboard').className = "noVNC_status_button"; + UI.keyboardVisible = false; } - }, keyInputBlur: function() { - $D('showKeyboard').className = - "noVNC_status_button"; - //Weird bug in iOS if you change keyboardVisible - //here it does not actually occur so next time - //you click keyboard icon it doesnt work. - var t=setTimeout("UI.setKeyboard()",100) - + $D('showKeyboard').className = "noVNC_status_button"; + //Weird bug in iOS if you change keyboardVisible + //here it does not actually occur so next time + //you click keyboard icon it doesnt work. + setTimeout("UI.setKeyboard()",100) }, setKeyboard: function() { - UI.keyboardVisible = false; + UI.keyboardVisible = false; }, // iOS < Version 5 does not support position fixed. Javascript workaround: @@ -621,7 +617,7 @@ addOption: function(selectbox,text,value ) setBarPosition: function() { $D('noVNC-control-bar').style.top = (window.pageYOffset) + 'px'; $D('noVNC_mobile_buttons').style.left = (window.pageXOffset) + 'px'; - + var vncwidth = $D('noVNC_screen').style.offsetWidth; $D('noVNC-control-bar').style.width = vncwidth + 'px'; } diff --git a/vnc.html b/vnc.html index 5271040..281b4d3 100644 --- a/vnc.html +++ b/vnc.html @@ -1,8 +1,8 @@ - + - - + - + - +
-
- - - - - - @@ -81,25 +77,25 @@
- - - - -
@@ -165,7 +161,7 @@
Loading
- +

no
VNC

@@ -176,7 +172,7 @@
- +