diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 18:44:06 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 18:44:06 +0100 |
| commit | b9426877cfe30b74d03ec756b93bd047c402d7ad (patch) | |
| tree | 5977e284fe9dd1fc697fc4b0f750ba969c08df2f /docs/js/shards.js | |
| parent | 8b709705ba31e7e9c7f46c7c8d60fc143bfdccb3 (diff) | |
we have site
Diffstat (limited to 'docs/js/shards.js')
| -rw-r--r-- | docs/js/shards.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/js/shards.js b/docs/js/shards.js index 44d2ecd..6512e70 100644 --- a/docs/js/shards.js +++ b/docs/js/shards.js @@ -16,7 +16,10 @@ const shards = (function(){ bg_el.classList.remove('fade') } function bind(){ - document.querySelector('h1').addEventListener('click', rebuild) + document.querySelector('h1').addEventListener('click', () => { + sounds.play('click') + rebuild() + }) } function build(){ count = choice([5,7,7,11,11,13,13]) @@ -36,7 +39,7 @@ const shards = (function(){ function rebuild(){ if (rebuilding) return rebuilding = true - sounds.play('click') + // sounds.play('click') stars.rebuild() next() t = 0 @@ -48,7 +51,7 @@ const shards = (function(){ setTimeout(next, 20) bg_el.classList.remove('fade') rebuilding = false - sounds.play('click') + // sounds.play('click') }, 500) } function append(i){ |
