Remove unused description
This commit is contained in:
parent
f0d9ab9698
commit
f9fff03719
|
@ -325,24 +325,6 @@ html {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Description Panel */
|
|
||||||
#noVNC_description {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
|
|
||||||
top: 73px;
|
|
||||||
right: 20px;
|
|
||||||
left: 20px;
|
|
||||||
padding: 15px;
|
|
||||||
color: #000;
|
|
||||||
background: #eee; /* default background for browsers without gradient support */
|
|
||||||
|
|
||||||
border: 2px solid #E0E0E0;
|
|
||||||
-webkit-border-radius: 10px;
|
|
||||||
-moz-border-radius: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Popup Status */
|
/* Popup Status */
|
||||||
#noVNC_popup_status {
|
#noVNC_popup_status {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
25
app/ui.js
25
app/ui.js
|
@ -94,16 +94,9 @@ var UI;
|
||||||
UI.addClipboardHandlers();
|
UI.addClipboardHandlers();
|
||||||
UI.addSettingsHandlers();
|
UI.addSettingsHandlers();
|
||||||
|
|
||||||
// Show description by default when hosted at for kanaka.github.com
|
// Show the connect panel on first load unless autoconnecting
|
||||||
if (location.host === "kanaka.github.io") {
|
if (!autoconnect && !UI.connSettingsOpen)
|
||||||
// Open the description dialog
|
UI.toggleConnectPanel();
|
||||||
document.getElementById('noVNC_description').style.display = "block";
|
|
||||||
} else {
|
|
||||||
// Show the connect panel on first load unless autoconnecting
|
|
||||||
if (autoconnect === UI.connSettingsOpen) {
|
|
||||||
UI.toggleConnectPanel();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
UI.updateViewClip();
|
UI.updateViewClip();
|
||||||
UI.setBarPosition();
|
UI.setBarPosition();
|
||||||
|
@ -207,8 +200,6 @@ var UI;
|
||||||
.addEventListener('click', UI.popupStatus);
|
.addEventListener('click', UI.popupStatus);
|
||||||
document.getElementById("noVNC_popup_status")
|
document.getElementById("noVNC_popup_status")
|
||||||
.addEventListener('click', UI.closePopup);
|
.addEventListener('click', UI.closePopup);
|
||||||
document.getElementById("noVNC_description_button")
|
|
||||||
.addEventListener('click', UI.toggleConnectPanel);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
addTouchSpecificHandlers: function() {
|
addTouchSpecificHandlers: function() {
|
||||||
|
@ -563,8 +554,6 @@ var UI;
|
||||||
|
|
||||||
// Open menu
|
// Open menu
|
||||||
openSettingsMenu: function() {
|
openSettingsMenu: function() {
|
||||||
// Close the description panel
|
|
||||||
document.getElementById('noVNC_description').style.display = "none";
|
|
||||||
// Close clipboard panel if open
|
// Close clipboard panel if open
|
||||||
if (UI.clipboardOpen === true) {
|
if (UI.clipboardOpen === true) {
|
||||||
UI.toggleClipboardPanel();
|
UI.toggleClipboardPanel();
|
||||||
|
@ -593,8 +582,6 @@ var UI;
|
||||||
// On open, settings are refreshed from saved cookies.
|
// On open, settings are refreshed from saved cookies.
|
||||||
// On close, settings are applied
|
// On close, settings are applied
|
||||||
toggleSettingsPanel: function() {
|
toggleSettingsPanel: function() {
|
||||||
// Close the description panel
|
|
||||||
document.getElementById('noVNC_description').style.display = "none";
|
|
||||||
if (UI.settingsOpen) {
|
if (UI.settingsOpen) {
|
||||||
UI.settingsApply();
|
UI.settingsApply();
|
||||||
UI.closeSettingsMenu();
|
UI.closeSettingsMenu();
|
||||||
|
@ -628,8 +615,6 @@ var UI;
|
||||||
|
|
||||||
// Show the XVP panel
|
// Show the XVP panel
|
||||||
toggleXvpPanel: function() {
|
toggleXvpPanel: function() {
|
||||||
// Close the description panel
|
|
||||||
document.getElementById('noVNC_description').style.display = "none";
|
|
||||||
// Close settings if open
|
// Close settings if open
|
||||||
if (UI.settingsOpen === true) {
|
if (UI.settingsOpen === true) {
|
||||||
UI.settingsApply();
|
UI.settingsApply();
|
||||||
|
@ -676,8 +661,6 @@ var UI;
|
||||||
|
|
||||||
// Show the clipboard panel
|
// Show the clipboard panel
|
||||||
toggleClipboardPanel: function() {
|
toggleClipboardPanel: function() {
|
||||||
// Close the description panel
|
|
||||||
document.getElementById('noVNC_description').style.display = "none";
|
|
||||||
// Close settings if open
|
// Close settings if open
|
||||||
if (UI.settingsOpen === true) {
|
if (UI.settingsOpen === true) {
|
||||||
UI.settingsApply();
|
UI.settingsApply();
|
||||||
|
@ -729,8 +712,6 @@ var UI;
|
||||||
|
|
||||||
// Show the connection settings panel/menu
|
// Show the connection settings panel/menu
|
||||||
toggleConnectPanel: function() {
|
toggleConnectPanel: function() {
|
||||||
// Close the description panel
|
|
||||||
document.getElementById('noVNC_description').style.display = "none";
|
|
||||||
// Close connection settings if open
|
// Close connection settings if open
|
||||||
if (UI.settingsOpen === true) {
|
if (UI.settingsOpen === true) {
|
||||||
UI.settingsApply();
|
UI.settingsApply();
|
||||||
|
|
16
vnc.html
16
vnc.html
|
@ -190,22 +190,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Description Panel -->
|
|
||||||
<!-- Shown by default when hosted at for kanaka.github.com -->
|
|
||||||
<div id="noVNC_description" class="">
|
|
||||||
noVNC is a browser based VNC client implemented using HTML5 Canvas
|
|
||||||
and WebSockets. You will either need a VNC server with WebSockets
|
|
||||||
support (such as <a href="http://libvncserver.sourceforge.net/">libvncserver</a>)
|
|
||||||
or you will need to use
|
|
||||||
<a href="https://github.com/kanaka/websockify">websockify</a>
|
|
||||||
to bridge between your browser and VNC server. See the noVNC
|
|
||||||
<a href="https://github.com/kanaka/noVNC">README</a>
|
|
||||||
and <a href="http://kanaka.github.com/noVNC">website</a>
|
|
||||||
for more information.
|
|
||||||
<br />
|
|
||||||
<input id="noVNC_description_button" type="button" value="Close" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Popup Status -->
|
<!-- Popup Status -->
|
||||||
<div id="noVNC_popup_status" class="">
|
<div id="noVNC_popup_status" class="">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue