From d6362582e1476b7d684bb017cccac060b7dcc0cd Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 12 Mar 2025 15:30:37 +0100 Subject: fix: skip anim classes shouldnt be needed --- src/routes/shared.ts | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'src/routes/shared.ts') diff --git a/src/routes/shared.ts b/src/routes/shared.ts index dd7f959..0d198bf 100644 --- a/src/routes/shared.ts +++ b/src/routes/shared.ts @@ -37,37 +37,37 @@ export type RenderBlock = { italic?: boolean; underlined?: boolean; url?: - | `newtab:${string}` - | `currenttab:${string}` - | ((textObj: TTYText & { kind: 'text' }) => void); + | `newtab:${string}` + | `currenttab:${string}` + | ((textObj: TTYText & { kind: 'text' }) => void); bg?: string; raw?: boolean; dl?: string; }; export type TTYText = | { - kind: 'text'; - renderrestriction?: 'everywhere' | 'js-only' | 'noscript'; - value: RenderBlock[]; - id: string; - classes: string[]; - } + kind: 'text'; + renderrestriction?: 'everywhere' | 'js-only' | 'noscript'; + value: RenderBlock[]; + id: string; + classes: string[]; + } | { - kind: 'removeNode'; - removedId: string; - removedItemClassList: string[]; - } + kind: 'removeNode'; + removedId: string; + removedItemClassList: string[]; + } | { - kind: 'time'; - delay: number; - } + kind: 'time'; + delay: number; + } | { - kind: 'cursorVisibility'; - visible: boolean; - } + kind: 'cursorVisibility'; + visible: boolean; + } | { - kind: 'clear'; - }; + kind: 'clear'; + }; export type Only = { [k in Keys]: Obj[k]; }; @@ -580,6 +580,13 @@ export const ttyLines: TTYText[] = (() => { }, ], ]); + wait(100); + text([ + '\nDid you know: this is all pure css animation hell.', + { + colour: '#7a7a7a', + }, + ]); wait(5000); text([ ``, -- cgit v1.2.3