File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2626 import { m } from " $lib/paraglide/messages.js" ;
2727 import { log } from " $lib/util/logger.js" ;
2828
29- let { children, data } = $props ();
29+ let { children } = $props ();
3030 let enablePlausible = $state (false );
31+ let isAprilFools = $state (false );
3132
3233 let scrollPositions = new Map <string , number >();
3334
6768 };
6869
6970 onMount (() => {
71+ const now = new Date ();
72+ isAprilFools = now .getDate () === 1 && now .getMonth () === 3 ;
73+
7074 initAnimStores ();
7175
7276 const handleResize = () => {
166170 src =" {PUB_PLAUSIBLE_URL }/js/script.js"
167171 ></script >
168172 {/if }
169- {#if data . isAprilFools }
173+ {#if isAprilFools }
170174 <style >
171175 * {
172176 font-family : " Comic Sans MS" , " Comic Sans" , cursive !important ;
You can’t perform that action at this time.
0 commit comments