Fixed pikvm/pikvm#38: Closeable stream window

This commit is contained in:
Devaev Maxim
2020-08-16 10:35:29 +03:00
parent 2f069dbf91
commit 8c40029956
7 changed files with 57 additions and 14 deletions

View File

@@ -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">&times;</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>

View File

@@ -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

View File

@@ -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")

View File

@@ -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`)

View File

@@ -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") &times;
button(class="window-button-close") &times;
block
include window-stream.pug