From 7765c6af9f3dc5db329754cd0bc46ad30dcf4edb Mon Sep 17 00:00:00 2001 From: amy Date: Wed, 20 Nov 2024 18:53:12 +0330 Subject: [PATCH] theballs --- hacked/App.tsx | 5 ++--- hacked/index.html | 2 +- index.html | 2 +- review/index.html | 2 +- src/components/name.tsx | 21 +++------------------ 5 files changed, 8 insertions(+), 24 deletions(-) diff --git a/hacked/App.tsx b/hacked/App.tsx index f2d44dc..ad1fd4c 100644 --- a/hacked/App.tsx +++ b/hacked/App.tsx @@ -5,16 +5,15 @@ export default function App() {

websites that ive stolen

diff --git a/hacked/index.html b/hacked/index.html index 5cd0978..d849e37 100644 --- a/hacked/index.html +++ b/hacked/index.html @@ -4,7 +4,7 @@ - ehco + amy hacked diff --git a/index.html b/index.html index abcd966..79e8be4 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - ehco + amy diff --git a/review/index.html b/review/index.html index e39f24f..fb35304 100644 --- a/review/index.html +++ b/review/index.html @@ -5,7 +5,7 @@ - ehco + amy reviews diff --git a/src/components/name.tsx b/src/components/name.tsx index 6e13e53..1adc7ac 100644 --- a/src/components/name.tsx +++ b/src/components/name.tsx @@ -2,31 +2,17 @@ import { onCleanup } from "solid-js"; import { removethething } from "./utils.tsx"; -function getName(): string{ - return Math.random() < 0.2? "EHCO" : "ECHO" -} function HoverComponent() { let timerId: number|null; - // const [name, setname] = createSignal(true) - - // const startTimer = () => { - // timerId = setTimeout(() => { - // setname(!name()) - // }, 3000); - // }; - const clearTimer = () => { if (timerId) { clearTimeout(timerId); timerId = null; } }; - - // const handleMouseEnter = () => { - // startTimer(); - // }; + onCleanup(() => { clearTimer(); @@ -40,10 +26,9 @@ function HoverComponent() { if (e.target.textContent !== "ECHO") { e.target.textContent = "ECHO" } - }} - // onMouseLeave={clearTimer} + }} > - {getName()} + Amy ); }