summaryrefslogtreecommitdiff
path: root/web/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'web/kvm')
-rw-r--r--web/kvm/index.html14
-rw-r--r--web/kvm/navbar-system.pug3
-rw-r--r--web/kvm/window-webterm.pug8
-rw-r--r--web/kvm/windows.pug1
4 files changed, 26 insertions, 0 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index aa0e5fce..dc5779a5 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -205,6 +205,10 @@
<hr>
<button disabled id="wol-wakeup-button">&bull; Wake-on-LAN server</button>
</div>
+ <div class="buttons feature-disabled" id="webterm">
+ <hr>
+ <button data-force-hide-menu id="show-webterm-button">&bull; Show terminal</button>
+ </div>
</div>
</li>
<li class="right feature-disabled" id="atx-dropdown"><a class="menu-button" href="#"><img class="led-gray" data-dont-hide-menu id="atx-power-led" src="/share/svg/led-atx-power.svg"><img class="led-gray" data-dont-hide-menu id="atx-hdd-led" src="/share/svg/led-atx-hdd.svg">ATX</a>
@@ -1744,6 +1748,16 @@
</p>
</div>
</div>
+ <div class="window window-resizable" id="webterm-window" data-show-by-button="show-webterm-button" style="width: 640px; height: 480px">
+ <div class="window-header">
+ <div class="window-grab">Terminal</div>
+ <button class="window-button-close">&times;</button>
+ <button class="window-button-maximize">&#9744;</button>
+ <!-- Терминал глючит из-за зажимаемой клавиши ESC для выхода-->
+ <!-- button(class="window-button-full-screen") &#10530;-->
+ </div>
+ <iframe id="webterm-iframe" src="" style="width: 100%; height: 100%"></iframe>
+ </div>
<ul class="footer">
<li class="footer-left" id="kvmd-meta-server-host"></li>
<li class="footer-right"><a target="_blank" href="https://pikvm.org">Pi-KVM Project</a></li>
diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug
index 2f85416c..186bdef7 100644
--- a/web/kvm/navbar-system.pug
+++ b/web/kvm/navbar-system.pug
@@ -66,3 +66,6 @@ li(class="right")
div(id="wol" class="buttons feature-disabled")
hr
button(disabled id="wol-wakeup-button") &bull; Wake-on-LAN server
+ div(id="webterm" class="buttons feature-disabled")
+ hr
+ button(data-force-hide-menu id="show-webterm-button") &bull; Show terminal
diff --git a/web/kvm/window-webterm.pug b/web/kvm/window-webterm.pug
new file mode 100644
index 00000000..e6c1d196
--- /dev/null
+++ b/web/kvm/window-webterm.pug
@@ -0,0 +1,8 @@
+div(id="webterm-window" class="window window-resizable" data-show-by-button="show-webterm-button" style="width: 640px; height: 480px")
+ div(class="window-header")
+ div(class="window-grab") Terminal
+ button(class="window-button-close") &times;
+ button(class="window-button-maximize") &#9744;
+ // Терминал глючит из-за зажимаемой клавиши ESC для выхода
+ // button(class="window-button-full-screen") &#10530;
+ iframe(id="webterm-iframe" src="" style="width: 100%; height: 100%")
diff --git a/web/kvm/windows.pug b/web/kvm/windows.pug
index 898a8562..b2d32dad 100644
--- a/web/kvm/windows.pug
+++ b/web/kvm/windows.pug
@@ -1,3 +1,4 @@
include window-stream.pug
include window-keyboard.pug
include window-about.pug
+include window-webterm.pug