Add version number to UI
This commit is contained in:
parent
21ac6ca0f2
commit
e7d8f93952
|
|
@ -564,6 +564,14 @@ select:active {
|
||||||
|
|
||||||
#noVNC_control_bar .noVNC_logo {
|
#noVNC_control_bar .noVNC_logo {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noVNC_version {
|
||||||
|
margin: 0;
|
||||||
|
font-size: small;
|
||||||
|
text-align: center;
|
||||||
|
color: #ffa500;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root:not(.noVNC_connected) #noVNC_view_drag_button {
|
:root:not(.noVNC_connected) #noVNC_view_drag_button {
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,11 @@ const UI = {
|
||||||
// Translate the DOM
|
// Translate the DOM
|
||||||
l10n.translateDOM();
|
l10n.translateDOM();
|
||||||
|
|
||||||
|
WebUtil.fetchJSON('../package.json')
|
||||||
|
.then((packageInfo) => {
|
||||||
|
Array.from(document.getElementsByClassName('noVNC_version')).forEach(el => el.innerText = packageInfo.version);
|
||||||
|
});
|
||||||
|
|
||||||
// Adapt the interface for touch screen devices
|
// Adapt the interface for touch screen devices
|
||||||
if (isTouchDevice) {
|
if (isTouchDevice) {
|
||||||
document.documentElement.classList.add("noVNC_touch");
|
document.documentElement.classList.add("noVNC_touch");
|
||||||
|
|
|
||||||
1
vnc.html
1
vnc.html
|
|
@ -92,6 +92,7 @@
|
||||||
<div class="noVNC_scroll">
|
<div class="noVNC_scroll">
|
||||||
|
|
||||||
<h1 class="noVNC_logo" translate="no"><span>no</span><br>VNC</h1>
|
<h1 class="noVNC_logo" translate="no"><span>no</span><br>VNC</h1>
|
||||||
|
<h2 class="noVNC_version" translate="no"></h2>
|
||||||
|
|
||||||
<!-- Drag/Pan the viewport -->
|
<!-- Drag/Pan the viewport -->
|
||||||
<input type="image" alt="viewport drag" src="app/images/drag.svg"
|
<input type="image" alt="viewport drag" src="app/images/drag.svg"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue