summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-06-18 22:46:51 +0200
committermms <michal@sapka.me>2024-06-18 22:46:51 +0200
commit98e2d716d16fba47671bc3bd37ba4dea9393d7bd (patch)
tree74c9f2daf91ee3154407e01751486547500d3dfe
parentf19460aa82c7f924ecbdb3552d7f424b32eabd1e (diff)
feat: moneyshot
-rw-r--r--layouts/blog/baseof.html27
-rw-r--r--layouts/partials/single/dates.html2
2 files changed, 28 insertions, 1 deletions
diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html
index 7b86dd3..f0a02ad 100644
--- a/layouts/blog/baseof.html
+++ b/layouts/blog/baseof.html
@@ -363,6 +363,20 @@
{{- $img1x := $img.Resize "100x webp" }}
{{- $img2x := $img.Resize "200x webp" }}
right: [ {{ $img1x.Permalink }}, {{ $img2x.Permalink }} ],
+ },
+ state4:{
+ {{- $img := resources.Get "blog/logo/grim.png" }}
+ {{- $img1x := $img.Resize "100x webp" }}
+ {{- $img2x := $img.Resize "200x webp" }}
+ front: [ {{ $img1x.Permalink }}, {{ $img2x.Permalink }} ],
+ {{- $img := resources.Get "blog/logo/right.png" }}
+ {{- $img1x := $img.Resize "100x webp" }}
+ {{- $img2x := $img.Resize "200x webp" }}
+ left: [ {{ $img1x.Permalink }}, {{ $img2x.Permalink }} ],
+ {{- $img := resources.Get "blog/logo/left.png" }}
+ {{- $img1x := $img.Resize "100x webp" }}
+ {{- $img2x := $img.Resize "200x webp" }}
+ right: [ {{ $img1x.Permalink }}, {{ $img2x.Permalink }} ],
}
}
@@ -371,6 +385,19 @@
const faceImg = document.getElementById('face');
+ setTimeout(() => {
+ const moneyLink = document.getElementById('moneyLink');
+
+ moneyLink.addEventListener( 'mouseover', function() {
+ health = "300"
+ state = "state4"
+
+ updateFace(getStateFaces().front);
+ })
+ }, 100)
+
+
+
faceImg.addEventListener( 'click', function() {
health--;
diff --git a/layouts/partials/single/dates.html b/layouts/partials/single/dates.html
index c8877e1..94913c3 100644
--- a/layouts/partials/single/dates.html
+++ b/layouts/partials/single/dates.html
@@ -23,7 +23,7 @@
{{ end }}
This page is licensed under a <a href="https://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0 Deed</a> license.
- If you found this site interesting, you can <a href="https://ko-fi.com/mmspl">buy me a coffee</a>.
+ If you found this site interesting, you can <a id="moneyLink" href="https://ko-fi.com/mmspl">buy me a coffee</a>.
You can contact me via <a href="/me/contact/">email</a> or using <a href="https://emacs.ch/@mms">mastodon</a>.
</aside>