mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 17:41:54 +08:00
Fixed pikvm/pikvm#38: Closeable stream window
This commit is contained in:
@@ -402,8 +402,9 @@
|
||||
</li>
|
||||
</ul>
|
||||
<div class="window" id="stream-window">
|
||||
<div class="window-header" id="stream-window-header" style="z-index:1">
|
||||
<div class="window-header" id="stream-window-header">
|
||||
<div class="window-grab">Stream</div>
|
||||
<button class="window-button-close">×</button>
|
||||
</div>
|
||||
<div id="stream-info"></div>
|
||||
<div class="stream-box-inactive" id="stream-box"><img class="stream-image-inactive" id="stream-image" src="/share/png/blank-stream.png"></div>
|
||||
|
||||
@@ -9,7 +9,7 @@ mixin about_tab(name, title, checked=false)
|
||||
else
|
||||
span(class="code-comment") No data
|
||||
|
||||
+window("about-window", "About", true, false)
|
||||
+window("about-window", "About", false)
|
||||
div(id="about")
|
||||
table
|
||||
tr
|
||||
|
||||
@@ -15,7 +15,7 @@ mixin empty_key(width=0)
|
||||
mixin lamp(cls)
|
||||
img(class=`inline-lamp ${cls} led-gray` src=`${svg_dir}/led-square.svg`)
|
||||
|
||||
+window("keyboard-window", "Virtual Keyboard", true, true)
|
||||
+window("keyboard-window", "Virtual Keyboard", true)
|
||||
div(id="keyboard-desktop" class="keypad" align="center")
|
||||
div(class="keypad-block")
|
||||
div(class="keypad-row")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
+window("stream-window", "Stream", false, true)
|
||||
+window("stream-window", "Stream", true)
|
||||
div(id="stream-info")
|
||||
div(id="stream-box" class="stream-box-inactive")
|
||||
img(id="stream-image" class="stream-image-inactive" src=`${png_dir}/blank-stream.png`)
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
mixin window(id, title, closeable=true, with_header_id=false)
|
||||
mixin window(id, title, with_header_id=false)
|
||||
div(id=id class="window")
|
||||
div(id=(with_header_id ? `${id}-header` : "") class="window-header" style=(closeable ? "" : "z-index:1"))
|
||||
div(id=(with_header_id ? `${id}-header` : "") class="window-header")
|
||||
div(class="window-grab") #{title}
|
||||
if closeable
|
||||
button(class="window-button-close") ×
|
||||
button(class="window-button-close") ×
|
||||
block
|
||||
|
||||
include window-stream.pug
|
||||
|
||||
Reference in New Issue
Block a user