aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-07-13 18:37:36 +0200
committersD <stoned@derpymail.org>2020-07-13 18:37:36 +0200
commit573b4bc2e82145d0c092daf964711a062d8fba9d (patch)
treed6a3dc01b77eaab90f2e29daf5b54dede4bb00af /webAO/client.js
parente0ef7ad9a89854e0268b03203f5b00c9ddd49a40 (diff)
remember the cookie
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 938c566..4f3d4fc 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -418,6 +418,8 @@ class Client extends EventEmitter {
changeSFXVolume();
document.getElementById("client_shoutaudio").volume = getCookie("shoutVolume") || 1;
changeShoutVolume();
+ document.getElementById("client_testimonyaudio").volume = getCookie("testimonyVolume") || 1;
+ changeTestimonyVolume();
document.getElementById("client_bvolume").value = getCookie("blipVolume") || 1;
changeBlipVolume();
@@ -2183,6 +2185,14 @@ export function changeShoutVolume() {
window.changeShoutVolume = changeShoutVolume;
/**
+ * Triggered by the testimony volume slider.
+ */
+export function changeTestimonyVolume() {
+ setCookie("testimonyVolume", document.getElementById("client_testimonyaudio").volume);
+}
+window.changeTestimonyVolume = changeTestimonyVolume;
+
+/**
* Triggered by the blip volume slider.
*/
export function changeBlipVolume() {