aboutsummaryrefslogtreecommitdiffstats
path: root/client/index.html
diff options
context:
space:
mode:
authorRoslot <pines@null.net>2019-05-09 08:37:13 +0200
committerRoslot <pines@null.net>2019-05-09 08:37:13 +0200
commit53e4968cb48f06393d0d5d1263a8cce549e2d406 (patch)
treeaaf2a6a348bec3a164505ff953c4a599d8f35820 /client/index.html
parentMerge pull request #64 from MinusGix/patch-5 (diff)
downloadhackchat-53e4968cb48f06393d0d5d1263a8cce549e2d406.tar.gz
hackchat-53e4968cb48f06393d0d5d1263a8cce549e2d406.zip
Added notifications and sound alerts in client.js
Diffstat (limited to 'client/index.html')
-rw-r--r--client/index.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/client/index.html b/client/index.html
index 9238c66..86a4c29 100644
--- a/client/index.html
+++ b/client/index.html
@@ -16,6 +16,9 @@
</head>
<body>
+ <audio style="display: none" id="notify-sound" preload="auto" src="audio/notify.ogg">
+ <source src="audio/notify.ogg" type="audio/ogg">
+ </audio>
<article class="container">
<div id="messages" class="messages"></div>
</article>
@@ -34,6 +37,14 @@
</p>
<h4>Settings</h4>
<p>
+ <input id="sound-switch" type="checkbox">
+ <label for="sound-switch">Sound notifications</label>
+ </p>
+ <p>
+ <input id="notify-switch" type="checkbox">
+ <label for="notify-switch">Screen notifcations</label>
+ </p>
+ <p>
<input id="joined-left" type="checkbox" checked>
<label for="joined-left">Join/left notify</label>
</p>
@@ -42,7 +53,7 @@
<label for="parse-latex">Parse LaTeX</label>
</p>
<p>
- <button id="clear-messages">Clear messages</button>
+ <button id="clear-messages">Clear all messages</button>
</p>
<h4>Color scheme</h4>
<select id="scheme-selector"></select>