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 {
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -59,6 +59,11 @@ const UI = {
|
|||
// Translate the DOM
|
||||
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
|
||||
if (isTouchDevice) {
|
||||
document.documentElement.classList.add("noVNC_touch");
|
||||
|
|
|
|||
Loading…
Reference in New Issue