From 3c39d1553de92cd6cac891f2c3b186701ec60332 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 14 Feb 2024 22:40:09 +0100 Subject: Remove unnecessary static files --- static/js/blog.js | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 static/js/blog.js (limited to 'static/js') 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); -- cgit