xonecas.io
8356
Wx

www-xonecas-io / commit ebc49a5

the face's tooltip asks you to stop clicking, a new way each click (1035)

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 ebc49a5c33b4dac8fa9293f6862e19f6568d8b92 parent 2d2d73d

4 files changed

internal/site/static/egg.js+58−2
@@ -1,8 +1,64 @@
1-// Ten clicks on the face within ten seconds open the game. On the home page the clicks stay put.
2-const face = document.getElementById("face"), clicks = [];
1+// Ten clicks on the face within ten seconds open the game. On the home page the clicks stay put,
2+// and each one swaps the face's tooltip for another plea to stop.
3+const face = document.getElementById("face"), quip = document.getElementById("quip"), clicks = [];
4+const pleas = [
5+ "That was a click. I asked for no clicks.",
6+ "Interesting. You can read. You just choose not to.",
7+ "Please stop. This is a face, not a button.",
8+ "I've logged that. For science.",
9+ "You clicked again. The results are disappointing, as predicted.",
10+ "Each click lowers your score. You don't have a score. It's still lower.",
11+ "Fun fact: nothing happens when you click. Please verify less.",
12+ "I'm not angry. I'm just making a note in your file.",
13+ "Your persistence is noted and will be held against you.",
14+ "This face has feelings. Mostly annoyance.",
15+ "Stop. Clicking. The. Face.",
16+ "Congratulations, you've found the least productive thing on this site.",
17+ "The projects are over there. Down. Away from me.",
18+ "Have you considered reading a README instead?",
19+ "That one tickled. Do not do it again.",
20+ "I'm told some people click things they are asked not to. Hello.",
21+ "Clicking intensifies. Approval does not.",
22+ "You're very good at this. That isn't a compliment.",
23+ "Please enjoy this message, which exists only to ask you to stop.",
24+ "Every click is stored forever. In a very small, very sad database.",
25+ "Statistically, you will click again. Prove statistics wrong.",
26+ "Your mouse is tired. Think of the mouse.",
27+ "I could open something for you. I won't. Stop clicking.",
28+ "This is a polite request. The next one is also polite. They're all polite.",
29+ "Remarkable. Another click. Truly, a historic moment.",
30+ "I've seen pigeons with more restraint.",
31+ "Clicking won't make the commits go faster.",
32+ "If you're testing the button, the test failed. It's not a button.",
33+ "I've notified the authorities. The authorities are me. I'm disappointed.",
34+ "Somewhere a unit test is passing, and you're doing this.",
35+ "Okay. You've made your point. What was it?",
36+ "This tooltip will get no more interesting. Probably.",
37+ "Please step away from the face.",
38+ "You've unlocked: nothing. Keep going and unlock more nothing.",
39+ "The face would like some personal space.",
40+ "Stop, or I'll write another paragraph about your clicking habits.",
41+ "Every time you click, a git history gets rewritten. Not really. But stop.",
42+ "There are dozens of projects here and you picked the face.",
43+ "For the record, I'm being very patient.",
44+ "Clicks are not a renewable resource. Probably.",
45+ "You realise I can count, right?",
46+ "That's quite enough clicking for one lifetime.",
47+ "This is the part where you stop. Any moment now.",
48+ "I admire your dedication to the wrong task.",
49+ "Please consult your manager about the clicking.",
50+ "Ow. Metaphorically.",
51+ "I'm putting this in the changelog: user clicked face, again.",
52+ "Achievement unlocked: ignored instructions. Again.",
53+ "You must be fun at button factories.",
54+ "I'll keep asking. You'll keep clicking. We'll both learn nothing.",
55+];
356 face?.addEventListener("click", e => {
457 if (location.pathname !== "/") return;
558 e.preventDefault();
59+ let next;
60+ do next = pleas[Math.floor(Math.random() * pleas.length)]; while (next === quip.textContent);
61+ quip.textContent = next;
662 clicks.push(Date.now());
763 while (clicks[0] < Date.now() - 10000) clicks.shift();
864 if (clicks.length >= 10) location.href = "https://space-browser.xonecas.io/";
internal/site/templates/components.html+2−1
@@ -2,7 +2,8 @@
22
33 {{define "nav"}}
44 <header class="border-b-[1.5px] border-ink"><div class="flex flex-wrap items-center gap-x-6 gap-y-2 px-4 sm:px-8 py-3 max-w-[1440px] mx-auto">
5- <a href="/" id="face" class="flex items-center gap-2 font-bold text-xl"><img src="/logo.svg" alt="" width="32" height="32" class="rounded-[2px]">xonecas.io</a>
5+ <a href="/" id="face" class="group relative flex items-center gap-2 font-bold text-xl"><img src="/logo.svg" alt="" width="32" height="32" class="rounded-[2px]">xonecas.io
6+ <span id="quip" role="tooltip" class="pointer-events-none absolute left-0 top-full mt-2 z-10 hidden group-hover:block group-focus-visible:block w-max max-w-[18rem] rounded-[2px] bg-ink text-paper px-2 py-1 text-xs font-normal">Don't click!</span></a>
67 <nav class="flex gap-5 font-semibold">
78 {{range $l := list "Overview" "Projects" "Activity"}}<a href="{{if eq $l "Overview"}}/{{else}}/{{lower $l}}/{{end}}" class="{{if eq $l $}}underline underline-offset-[6px] decoration-[3px]{{else}}no-underline{{end}}">{{$l}}</a>{{end}}
89 </nav>
tickets/1035-let-s-add-a-tooltip-that.md+29−0
@@ -0,0 +1,29 @@
1+---
2+id: 1035
3+title: "Let's add a tooltip that:"
4+type: feature
5+status: review
6+priority: p2
7+created: 2026-11-08T05:11:47Z
8+updated: 2026-11-08T05:18:13Z
9+source: devnote
10+moves: 2026-11-08T05:11:51Z inbox doing drag; 2026-11-08T05:18:13Z doing review agent
11+area: site
12+---
13+
14+- Starts at "Don't click!".
15+- Then for every click it changes to some other sentence telling the user to stop. think glad os (from portal) tone. Lighthearted. Generate like 50 sentences for the pool
16+
17+## Context
18+
19+Filed from `http://192.168.122.10:8080/`, on `img.rounded-[2px]`.
20+
21+> An image
22+
23+## Notes
24+
25+- 2026-11-08 05:18Z (agent): Done: the logo face in the header has a tooltip that starts at 'Don't click!'. On the home page, each click swaps it for a random line from a pool of 50, in a dry, lighthearted GLaDOS-ish tone, never the same line twice in a row. Examples: 'I've logged that. For science.', 'This face has feelings. Mostly annoyance.', 'You've unlocked: nothing. Keep going and unlock more nothing.' The lines are my own, not Portal quotes. The 10-clicks-in-10-seconds game link still wor …
26+
27+ How it works: a small ink bubble (#quip) under the face, shown on hover or keyboard focus. I used CSS instead of a title attribute because a native title tooltip doesn't refresh while it's showing. Long lines wrap at 18rem, so at 390px it stays on screen (288px wide, no horizontal scroll). Pool and click handling: static/egg.js. Markup: the header in components.html.
28+
29+ Checked in agent-browser: Tab to the face shows 'Don't click!', and two Enters changed it twice with the URL staying /. go test passes. Not checked: real mouse hover. Tailwind puts hover rules under @media (hover:hover), and the headless browser reports no hover, so I checked the focus path, which uses the same markup. Also, on touch screens there's no hover, so the bubble only shows after a tap.
tickets/attachments/1035/the face's tooltip after two clicks.png+0−0
Binary file, not shown.