aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/shared.ts
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-12 15:30:37 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-12 15:30:37 +0100
commitd6362582e1476b7d684bb017cccac060b7dcc0cd (patch)
tree4f9d6a9e22e6e3fce8af30f2669f2da5bd372654 /src/routes/shared.ts
parentc282cd56a26d18dccee31bbc5508e929bd81e390 (diff)
downloadmem-estrogen-zone-d6362582e1476b7d684bb017cccac060b7dcc0cd.tar.gz
mem-estrogen-zone-d6362582e1476b7d684bb017cccac060b7dcc0cd.tar.bz2
mem-estrogen-zone-d6362582e1476b7d684bb017cccac060b7dcc0cd.tar.lz
mem-estrogen-zone-d6362582e1476b7d684bb017cccac060b7dcc0cd.zip

fix: skip anim classes shouldnt be needed

Diffstat (limited to 'src/routes/shared.ts')
-rw-r--r--src/routes/shared.ts49
1 files changed, 28 insertions, 21 deletions
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<Obj, Keys extends keyof Obj> = {
[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([
`<button style="padding: 12px 12px;background: #fff2;margin-top: 0.4rem;border-radius: 0.7rem;opacity:0.1;margin-top:3rem;" data-el="le funny button">have a button :3</button>`,