aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-01-22 22:13:01 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-01-22 22:13:01 +0100
commit467390bc032585f28da6203f891764f4a66c33b7 (patch)
tree88073d30acbecc64b80fe3cefddf0d112d5d1da2
parent0568acf1efdfb8fa4bc12a52f918de9e6ce8d267 (diff)
Trim some resources
-rw-r--r--static/css/style.css5
-rw-r--r--static/js/blog.js14
2 files changed, 6 insertions, 13 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 8b1d921..4dfcaed 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -17,10 +17,6 @@ p {
font-size: 1.125em;
}
-img {
- max-width: 100%;
-}
-
@media (prefers-color-scheme: dark) {
body {
color: white;
@@ -35,4 +31,3 @@ img {
color: #ed6eff;
}
}
-
diff --git a/static/js/blog.js b/static/js/blog.js
index a49a72f..68c13da 100644
--- a/static/js/blog.js
+++ b/static/js/blog.js
@@ -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);