Remove unused description
This commit is contained in:
parent
f0d9ab9698
commit
f9fff03719
|
@ -325,24 +325,6 @@ html {
|
|||
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 */
|
||||
#noVNC_popup_status {
|
||||
display: none;
|
||||
|
|
21
app/ui.js
21
app/ui.js
|
@ -94,16 +94,9 @@ var UI;
|
|||
UI.addClipboardHandlers();
|
||||
UI.addSettingsHandlers();
|
||||
|
||||
// Show description by default when hosted at for kanaka.github.com
|
||||
if (location.host === "kanaka.github.io") {
|
||||
// Open the description dialog
|
||||
document.getElementById('noVNC_description').style.display = "block";
|
||||
} else {
|
||||
// Show the connect panel on first load unless autoconnecting
|
||||
if (autoconnect === UI.connSettingsOpen) {
|
||||
if (!autoconnect && !UI.connSettingsOpen)
|
||||
UI.toggleConnectPanel();
|
||||
}
|
||||
}
|
||||
|
||||
UI.updateViewClip();
|
||||
UI.setBarPosition();
|
||||
|
@ -207,8 +200,6 @@ var UI;
|
|||
.addEventListener('click', UI.popupStatus);
|
||||
document.getElementById("noVNC_popup_status")
|
||||
.addEventListener('click', UI.closePopup);
|
||||
document.getElementById("noVNC_description_button")
|
||||
.addEventListener('click', UI.toggleConnectPanel);
|
||||
},
|
||||
|
||||
addTouchSpecificHandlers: function() {
|
||||
|
@ -563,8 +554,6 @@ var UI;
|
|||
|
||||
// Open menu
|
||||
openSettingsMenu: function() {
|
||||
// Close the description panel
|
||||
document.getElementById('noVNC_description').style.display = "none";
|
||||
// Close clipboard panel if open
|
||||
if (UI.clipboardOpen === true) {
|
||||
UI.toggleClipboardPanel();
|
||||
|
@ -593,8 +582,6 @@ var UI;
|
|||
// On open, settings are refreshed from saved cookies.
|
||||
// On close, settings are applied
|
||||
toggleSettingsPanel: function() {
|
||||
// Close the description panel
|
||||
document.getElementById('noVNC_description').style.display = "none";
|
||||
if (UI.settingsOpen) {
|
||||
UI.settingsApply();
|
||||
UI.closeSettingsMenu();
|
||||
|
@ -628,8 +615,6 @@ var UI;
|
|||
|
||||
// Show the XVP panel
|
||||
toggleXvpPanel: function() {
|
||||
// Close the description panel
|
||||
document.getElementById('noVNC_description').style.display = "none";
|
||||
// Close settings if open
|
||||
if (UI.settingsOpen === true) {
|
||||
UI.settingsApply();
|
||||
|
@ -676,8 +661,6 @@ var UI;
|
|||
|
||||
// Show the clipboard panel
|
||||
toggleClipboardPanel: function() {
|
||||
// Close the description panel
|
||||
document.getElementById('noVNC_description').style.display = "none";
|
||||
// Close settings if open
|
||||
if (UI.settingsOpen === true) {
|
||||
UI.settingsApply();
|
||||
|
@ -729,8 +712,6 @@ var UI;
|
|||
|
||||
// Show the connection settings panel/menu
|
||||
toggleConnectPanel: function() {
|
||||
// Close the description panel
|
||||
document.getElementById('noVNC_description').style.display = "none";
|
||||
// Close connection settings if open
|
||||
if (UI.settingsOpen === true) {
|
||||
UI.settingsApply();
|
||||
|
|
16
vnc.html
16
vnc.html
|
@ -190,22 +190,6 @@
|
|||
</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 -->
|
||||
<div id="noVNC_popup_status" class="">
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue