diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-11 12:53:53 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-11 12:53:53 +0100 |
| commit | a8e26dce73b694aeeefc0be52147a36ced5975c9 (patch) | |
| tree | 9a2d94a2d7924ca508087233198bc6ba83fc4395 /webAO | |
| parent | 4b918084e413933cfc819bd1a1246c6a1ac13e31 (diff) | |
move volume into 1 file
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 3 | ||||
| -rw-r--r-- | webAO/dom/changeSFXVolume.js | 10 | ||||
| -rw-r--r-- | webAO/dom/changeVolume.js (renamed from webAO/dom/changeShoutVolume.js) | 9 |
3 files changed, 10 insertions, 12 deletions
diff --git a/webAO/client.js b/webAO/client.js index e7a1606..a0dd895 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -22,8 +22,7 @@ import iniParse from './iniParse'; import getCookie from './utils/getCookie.js'; import setCookie from './utils/setCookie.js'; import request from './services/request.js'; -import { changeShoutVolume } from './dom/changeShoutVolume.js'; -import { changeSFXVolume } from './dom/changeSFXVolume.js'; +import { changeShoutVolume, changeSFXVolume } from './dom/changeVolume.js'; import setEmote from './client/setEmote.js'; import fileExists from './utils/fileExists.js'; import queryParser from './utils/queryParser.js'; diff --git a/webAO/dom/changeSFXVolume.js b/webAO/dom/changeSFXVolume.js deleted file mode 100644 index 0c3009f..0000000 --- a/webAO/dom/changeSFXVolume.js +++ /dev/null @@ -1,10 +0,0 @@ -import setCookie from '../utils/setCookie'; - -/** - * Triggered by the sound effect volume slider. - */ - -export function changeSFXVolume() { - setCookie('sfxVolume', document.getElementById('client_sfxaudio').volume); -} -window.changeSFXVolume = changeSFXVolume; diff --git a/webAO/dom/changeShoutVolume.js b/webAO/dom/changeVolume.js index db67e2d..4ef3027 100644 --- a/webAO/dom/changeShoutVolume.js +++ b/webAO/dom/changeVolume.js @@ -1,6 +1,15 @@ import setCookie from '../utils/setCookie'; /** + * Triggered by the sound effect volume slider. + */ + +export function changeSFXVolume() { + setCookie('sfxVolume', document.getElementById('client_sfxaudio').volume); +} +window.changeSFXVolume = changeSFXVolume; + +/** * Triggered by the shout volume slider. */ |
