]> danix's work - danix.xyz-2.git/commitdiff
debug: add console.log to test Alpine.js component registration
authorDanilo M. <redacted>
Fri, 17 Apr 2026 09:36:00 +0000 (11:36 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 09:36:00 +0000 (11:36 +0200)
themes/danix-xyz-hacker/assets/js/not-found-page.js

index ec427080fec50981b42a01449ee4192529345118..6ec8895ed0ea3f023e9fb48814d578bb23d2185a 100644 (file)
@@ -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');
 });