diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 22:40:09 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 22:40:09 +0100 |
| commit | 3c39d1553de92cd6cac891f2c3b186701ec60332 (patch) | |
| tree | 8d7fa72e1b70c33ed6b01b45e724338df3ea5ab7 /static/js | |
| parent | 10a76a5bf0a9d051aa9432566088034c5ced714b (diff) | |
Remove unnecessary static files
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/blog.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/static/js/blog.js b/static/js/blog.js deleted file mode 100644 index 68c13da..0000000 --- a/static/js/blog.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -/* globals window */ - -((w) => { - - const internals = { - // Application entry point, for now just band to keyboard - - main() { - - w.document.addEventListener('keydown', internals._onKeyDown); - }, - - // Handles key events to point to the correct blog post. - - _onKeyDown(e) { - - if (['1','2','3'].indexOf(e.key) > -1) { - w.location.hash = e.key; - } - } - }; - - w.addEventListener('load', internals.main); -})(window); |