diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-17 11:36:25 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-17 11:36:25 +0200 |
| commit | 15dce86326b053f92f9911ee212afb5729511c34 (patch) | |
| tree | d90e38024f3c6ce3b1592ad91af8c59063a17f79 /themes | |
| parent | 5a14cd3ab6da0205dbbc4e1c7ddce2ea71a4b1b3 (diff) | |
| download | danixxyz-15dce86326b053f92f9911ee212afb5729511c34.tar.gz danixxyz-15dce86326b053f92f9911ee212afb5729511c34.zip | |
fix: add type="button" to all buttons to prevent form submission behavior
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/404.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/404.html b/themes/danix-xyz-hacker/layouts/404.html index 16cbb22..2bf212d 100644 --- a/themes/danix-xyz-hacker/layouts/404.html +++ b/themes/danix-xyz-hacker/layouts/404.html @@ -91,6 +91,7 @@ window.articlesData = [ <!-- Easter Egg Trigger --> <div class="mt-12 pt-8 border-t border-border"> <button + type="button" @click="toggleEasterEgg()" class="text-sm text-text-dim hover:text-accent transition-colors underline" > @@ -117,6 +118,7 @@ window.articlesData = [ <div class="space-y-4"> <button + type="button" @click="showEasterEgg = false; window.location.href = '{{ .Site.BaseURL }}'" class="w-full btn btn-primary" > @@ -124,6 +126,7 @@ window.articlesData = [ </button> <button + type="button" @click="goToRandomArticle()" class="w-full btn btn-secondary" > @@ -132,6 +135,7 @@ window.articlesData = [ </div> <button + type="button" @click="showEasterEgg = false" class="absolute top-4 right-4 text-text-dim hover:text-text dark:hover:text-text transition-colors" aria-label="Close modal" |
