diff options
Diffstat (limited to 'docs/assets/js/site.js')
| -rw-r--r-- | docs/assets/js/site.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/assets/js/site.js b/docs/assets/js/site.js index b3e9e39..6549405 100644 --- a/docs/assets/js/site.js +++ b/docs/assets/js/site.js @@ -28,6 +28,10 @@ const site = (function(){ }, 0) toArray(document.querySelectorAll('.menu a')).forEach(a => { a.addEventListener("click", e => { + if (e.target.getAttribute('href').indexOf('#') === -1) { + sounds.play('click') + return + } e.preventDefault() sounds.play('click') console.log(e.target) |
