From 70006a6ebdd214ea6fc7e1e05f5c9aa7052e1fc2 Mon Sep 17 00:00:00 2001 From: PotatoGamo Date: Sun, 5 Oct 2025 04:41:19 -0700 Subject: [PATCH] added meme --- uwu_detector/index.html | 2 ++ uwu_detector/sketch.js | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/uwu_detector/index.html b/uwu_detector/index.html index d903fa1..4cd7886 100644 --- a/uwu_detector/index.html +++ b/uwu_detector/index.html @@ -29,6 +29,8 @@

No uwu detected

+

diff --git a/uwu_detector/sketch.js b/uwu_detector/sketch.js index 1027f96..8df2521 100644 --- a/uwu_detector/sketch.js +++ b/uwu_detector/sketch.js @@ -29,15 +29,18 @@ function draw() { rightHand.index_finger_tip.x, rightHand.index_finger_tip.y ); if (fDist < 50 && leftHand.thumb_tip.y < leftHand.index_finger_tip.y && rightHand.thumb_tip.y < rightHand.index_finger_tip.y) { - detector.innerText = "uwu\nšŸ‘‰šŸ‘ˆ"; + detector.innerHTML = "uwu\nšŸ‘‰šŸ‘ˆ"; + meme.style.display = 'block'; } else { - detector.innerText = "No uwu detected"; + detector.innerHTML = "No uwu detected"; + meme.style.display = 'none'; } } else { - detector.innerText = "No uwu detected"; + detector.innerHTML = "No uwu detected"; + meme.style.display = 'none'; } - // debug.innerText = `Hands detected: ${hands.length}\ndistance: ${hands.length == 2 ? fDist : "N/A"}`; + // debug.innerHTML = `Hands detected: ${hands.length}\ndistance: ${hands.length == 2 ? fDist : "N/A"}`; } const clamp = (min, num, max) => Math.min(Math.max(num, min), max); \ No newline at end of file