summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-02-20 11:13:00 +0100
committermetamuffin <yvchraiqi@protonmail.com>2022-02-20 11:13:00 +0100
commitf03a6b1571958dfdc6362bcbe49f43b6b1c70489 (patch)
tree34d4ad107d1a41c512424fa0cfa17f1ec35509e5
parenta80a1a61fb4fb62cff2af44ba4b96f2a48ba9741 (diff)
downloadmetamuffin-website-f03a6b1571958dfdc6362bcbe49f43b6b1c70489.tar
metamuffin-website-f03a6b1571958dfdc6362bcbe49f43b6b1c70489.tar.bz2
metamuffin-website-f03a6b1571958dfdc6362bcbe49f43b6b1c70489.tar.zst
update + annoying javascript
-rw-r--r--views/about.pug17
-rw-r--r--views/disable.js27
-rw-r--r--views/projects.pug9
-rw-r--r--views/services.pug1
4 files changed, 41 insertions, 13 deletions
diff --git a/views/about.pug b/views/about.pug
index d4a783e..2fdbf23 100644
--- a/views/about.pug
+++ b/views/about.pug
@@ -4,14 +4,9 @@ extends layout
block content
h2 about
p
- | hello.
- | i am a muffin.
- | i enjoy starting projects and never finishing them.
- | i am also interested in the free software movement.
- | i am *not* interested to use capitalization on this page.
-
-
- h3 notes
- p
- | this webpage is optimized to be viewed with non-graphical browser. #[br]
- | also styling is left as an exercise to the reader. #[br]
+ | hello.
+ | i am a muffin.
+ | i enjoy starting projects and never finishing them.
+ | i am also interested in the free software movement.
+ p
+ | also styling of this page is left as an exercise to the reader.
diff --git a/views/disable.js b/views/disable.js
index a34aead..f00b6ea 100644
--- a/views/disable.js
+++ b/views/disable.js
@@ -2,4 +2,29 @@
// This piece of javascript reminds you to disable javascript.
eval("") // make librejs block this
-document.body.textContent = "Please disable JavaScript to view this site."
+window.onload = () => {
+ hide(true)
+ const text = document.createElement("p")
+ const link = document.createElement("a")
+ text.textContent = "A friendly reminder to disable JavaScript by default. "
+ link.textContent = "Continue anyway"
+ link.href = "#"
+ link.addEventListener("click", () => {
+ text.remove()
+ hide(false)
+
+ let t = "#this-messes-with-your-history-navigation-buttons-on-purpose"
+ while (t.length > 0) {
+ window.location.href = t
+ t = t.split("-").slice(0, -1).join("-")
+ }
+ })
+ text.append(link)
+ document.body.append(text)
+}
+
+function hide(v) {
+ for (const e of document.body.children) {
+ e.hidden = v
+ }
+}
diff --git a/views/projects.pug b/views/projects.pug
index 735ea68..8015f07 100644
--- a/views/projects.pug
+++ b/views/projects.pug
@@ -3,5 +3,12 @@ extends layout
block content
h2 projects
- span todo
+
+ ul
+ li: a(href="https://s.metamuffin.org/games/lunar-lander/") lunar lander]
+ li: a(href="https://s.metamuffin.org/projects/covid-mobility/output/") covid mobility data charts using google's data
+
+ pre // TODO this list is not comlpete
+
+
diff --git a/views/services.pug b/views/services.pug
index a2d227b..b1d0b6a 100644
--- a/views/services.pug
+++ b/views/services.pug
@@ -7,5 +7,6 @@ block content
ul
li #[a(href="https://lsvp.metamuffin.org") lsvp.metamuffin.org] - libresyncedvideoplayer
li #[a(href="https://meet.metamuffin.org") meet.metamuffin.org] - keks-meet
+ li #[a(href="https://s.metamuffin.org") s.metamuffin.org] - static file hosting (see #[a(href="/projects") projects])
p if you have any suggestions for improvements, #[a(href="./contact") contact me].