]> git.r.bdr.sh - rbdr/blog/blobdiff - static/js/blog.js
Trim some resources
[rbdr/blog] / static / js / blog.js
index a49a72f4d2cb2da376c0af993d853bf6ff4f0094..68c13dacbeb1d35be9f94884a2f3d4ce9d492f75 100644 (file)
@@ -2,27 +2,25 @@
 
 /* globals window */
 
-((window) => {
+((w) => {
 
   const internals = {
-    kEntryPoint: '.event-details',
-
     // Application entry point, for now just band to keyboard
 
     main() {
 
-      window.document.addEventListener('keydown', internals._onKeyDown);
+      w.document.addEventListener('keydown', internals._onKeyDown);
     },
 
     // Handles key events to point to the correct blog post.
 
-    _onKeyDown(event) {
+    _onKeyDown(e) {
 
-      if (['1','2','3'].indexOf(event.key) > -1) {
-        window.location.hash = event.key;
+      if (['1','2','3'].indexOf(e.key) > -1) {
+        w.location.hash = e.key;
       }
     }
   };
 
-  window.addEventListener('load', internals.main);
+  w.addEventListener('load', internals.main);
 })(window);