aboutsummaryrefslogtreecommitdiffstats
path: root/client/index.html
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2019-05-16 02:18:35 +0200
committerGitHub <noreply@github.com>2019-05-16 02:18:35 +0200
commit78a09f8b482447ef04d47311abd675d558752c6e (patch)
tree312b0db7cd0a2323efc354ce46e71d38fa01b3ea /client/index.html
parentMerge pull request #64 from MinusGix/patch-5 (diff)
parentFixed permission requesting, notifications off by default (diff)
downloadhackchat-78a09f8b482447ef04d47311abd675d558752c6e.tar.gz
hackchat-78a09f8b482447ef04d47311abd675d558752c6e.zip
Merge pull request #65 from Roslot/master
Added notifications and sound alerts in client.js
Diffstat (limited to '')
-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..6931451 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.mp3">
+ <source src="audio/notify.mp3" 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>