summaryrefslogtreecommitdiff
path: root/share/web_surfaces/index.html
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-04-10 08:35:00 +0200
committerRobin Gareus <robin@gareus.org>2020-04-11 22:30:40 +0200
commitd219cde926647fbee80b4139e9e982dad9a70b23 (patch)
treec12177ded7936d9e3f3c8fa28b8e8a0f447a9093 /share/web_surfaces/index.html
parented427e5704668436d245bba8e7db56fb18d9b64e (diff)
WebSockets: better handle errors in web-based surfaces index
Diffstat (limited to 'share/web_surfaces/index.html')
-rw-r--r--share/web_surfaces/index.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/share/web_surfaces/index.html b/share/web_surfaces/index.html
index e5bcfce013..df8726a109 100644
--- a/share/web_surfaces/index.html
+++ b/share/web_surfaces/index.html
@@ -10,14 +10,18 @@
<img id="logo" src="img/logo.png">
</div>
<div id="content">
- <h1>Available Web Surfaces</h1>
- <div class="surface-list">
- <h2>Built-In</h2>
- <ul id="builtin"></ul>
- </div>
- <div class="surface-list">
- <h2>User</h2>
- <ul id="user"></ul>
+ <h2 id="loading">Loading...</h2>
+ <pre id="error" style="display:none"></pre>
+ <div id="index" style="display:none">
+ <h1>Available Web Surfaces</h1>
+ <div class="surface-list">
+ <h2>Built-In</h2>
+ <ul id="builtin"></ul>
+ </div>
+ <div class="surface-list">
+ <h2>User</h2>
+ <ul id="user"></ul>
+ </div>
</div>
</div>
<script src="js/main.js"></script>