+++ /dev/null
-canvas {
- width: 64px;
- height: 64px;
- display: inline-block;
- background-color: gainsboro;
-}
-
-@media (prefers-color-scheme: dark) {
- body {
- color: white;
- background-color: black;
- }
-
- a {
- color: #5dc1fd;
- }
-
- a:visited {
- color: #ed6eff;
- }
-}
+++ /dev/null
-'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);