diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-07 23:01:11 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-07 23:01:11 +0100 |
| commit | 4777c058469847cbe02eb2a24634b21ee37384fc (patch) | |
| tree | 3fd87861241a75f59819bc0771eb3e97bd88e2f6 /docs/js/sounds.js | |
| parent | d317978119fc0936d9c342edf47e55be230cd215 (diff) | |
move docs
Diffstat (limited to 'docs/js/sounds.js')
| -rw-r--r-- | docs/js/sounds.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/docs/js/sounds.js b/docs/js/sounds.js deleted file mode 100644 index 39f725d..0000000 --- a/docs/js/sounds.js +++ /dev/null @@ -1,17 +0,0 @@ -const sounds = (function(){ - let sounds = {} - let els = {} - sounds.add = (fn) => { - const el = document.createElement('audio') - el.src = 'sounds/' + fn + '.mp3' - els[fn] = el - } - sounds.play = (fn) => { - const el = els[fn] - el.currentTime = 0 - el.volume = 0.8 - el.play() - } - sounds.add('click') - return sounds -})() |
