X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/397444675d7156acd6495223a3b15175d6853589..3c39d1553de92cd6cac891f2c3b186701ec60332:/static/js/blog.js diff --git a/static/js/blog.js b/static/js/blog.js deleted file mode 100644 index a49a72f..0000000 --- a/static/js/blog.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -/* globals window */ - -((window) => { - - const internals = { - kEntryPoint: '.event-details', - - // Application entry point, for now just band to keyboard - - main() { - - window.document.addEventListener('keydown', internals._onKeyDown); - }, - - // Handles key events to point to the correct blog post. - - _onKeyDown(event) { - - if (['1','2','3'].indexOf(event.key) > -1) { - window.location.hash = event.key; - } - } - }; - - window.addEventListener('load', internals.main); -})(window);