From 5a14cd3ab6da0205dbbc4e1c7ddce2ea71a4b1b3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 17 Apr 2026 11:36:00 +0200 Subject: debug: add console.log to test Alpine.js component registration --- themes/danix-xyz-hacker/assets/js/not-found-page.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'themes') diff --git a/themes/danix-xyz-hacker/assets/js/not-found-page.js b/themes/danix-xyz-hacker/assets/js/not-found-page.js index ec42708..6ec8895 100644 --- a/themes/danix-xyz-hacker/assets/js/not-found-page.js +++ b/themes/danix-xyz-hacker/assets/js/not-found-page.js @@ -18,7 +18,9 @@ document.addEventListener('alpine:init', () => { }, toggleEasterEgg() { + console.log('toggleEasterEgg called, current state:', this.showEasterEgg); this.showEasterEgg = !this.showEasterEgg; + console.log('new state:', this.showEasterEgg); }, goToRandomArticle() { @@ -28,4 +30,6 @@ document.addEventListener('alpine:init', () => { } } })); + + console.log('notFoundPage Alpine component registered'); }); -- cgit v1.2.3