summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorpatrick kettner <[email protected]>2021-10-05 19:32:38 -0400
committerGitHub <[email protected]>2021-10-06 02:32:38 +0300
commit463237229dbb4f65d5c62ed471f7100f1de4b0ce (patch)
tree7fd50822644f9a3bb7bd24f8db87f976a14ff9e8 /web
parent756a6c6066f9fbc5817aad43f1552f0bc486a871 (diff)
don't show message about keyboards not working when you are following its recomendations to fix it (#70)
Diffstat (limited to 'web')
-rw-r--r--web/index.html22
-rw-r--r--web/index.pug15
-rw-r--r--web/share/css/index/index.css7
3 files changed, 27 insertions, 17 deletions
diff --git a/web/index.html b/web/index.html
index 2e4fce32..c0cf343f 100644
--- a/web/index.html
+++ b/web/index.html
@@ -73,15 +73,17 @@
<div id="apps-box">
<h4>Loading ...</h4>
</div>
- <hr>
- <p class="text">
- Please note that when you are working with a KVM session or another application that captures the keyboard,
- you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser).
- </p>
- <p class="text">To override this limitation you can use <a target="_blank" href="https://google.com/chrome">Google Chrome</a>
- or <a target="_blank" href="https://chromium.org/Home">Chromium</a> in application mode.
- </p>
- <div class="code" id="app-text"></div>
+ <div class="keyboard-warning">
+ <hr>
+ <p class="text">
+ Please note that when you are working with a KVM session or another application that captures the keyboard,
+ you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser).
+ </p>
+ <p class="text">To override this limitation you can use <a target="_blank" href="https://google.com/chrome">Google Chrome</a>
+ or <a target="_blank" href="https://chromium.org/Home">Chromium</a> in application mode.
+ </p>
+ <div class="code" id="app-text"></div>
+ </div>
<hr>
<p class="text">
Full documentation, the source code, and the legal information
@@ -90,4 +92,4 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/web/index.pug b/web/index.pug
index 2ba9297a..458d718a 100644
--- a/web/index.pug
+++ b/web/index.pug
@@ -27,14 +27,15 @@ block start
div(id="apps-box")
h4 Loading ...
- hr
- p(class="text")
- | Please note that when you are working with a KVM session or another application that captures the keyboard,
- | you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser).
+ div(class="keyboard-warning")
+ hr
+ p(class="text")
+ | Please note that when you are working with a KVM session or another application that captures the keyboard,
+ | you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser).
p(class="text")
- | To override this limitation you can use #[a(target="_blank" href="https://google.com/chrome") Google Chrome]
- | or #[a(target="_blank" href="https://chromium.org/Home") Chromium] in application mode.
- div(id="app-text" class="code")
+ | To override this limitation you can use #[a(target="_blank" href="https://google.com/chrome") Google Chrome]
+ | or #[a(target="_blank" href="https://chromium.org/Home") Chromium] in application mode.
+ div(id="app-text" class="code")
hr
p(class="text")
diff --git a/web/share/css/index/index.css b/web/share/css/index/index.css
index a22df685..847a1ab2 100644
--- a/web/share/css/index/index.css
+++ b/web/share/css/index/index.css
@@ -89,3 +89,10 @@ tr.server {
font-weight: bold;
font-family: monospace;
}
+
+@media all and (display-mode: standalone) {
+ div.keyboard-warning {
+ display: none;
+ }
+}
+