176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
fix: the phone bar no longer shows in the finder when Back lands there while its search box has keyboard focus
matin3ed83755757e
diff --git a/index.html b/index.htmlindex 2da6fafe..e81092f5 100644--- a/index.html+++ b/index.html@@ -2895,8 +2895,8 @@ const q=$('q'),q2=$('q2'),qClear=$('q-clear'),titleEl=$('results-title'),subEl=$emptyEl=$('empty'),emptyTitle=$('empty-title'),moreBox=$('more'),moreLabel=$('more-label');let moreAction='all';const pinbar=$('pinbar');-// The phone bar is there while a view other than Start or the finder is open and while its own search box has focus, so emptying the box does not take the box away.-const syncBar=()=>resultsEl.classList.toggle('filtered',(isFiltered()&&state.view!=='find')||document.activeElement===q2);+// The phone bar is there while a view other than Start or the finder is open and while its own search box has focus, so emptying the box does not take the box away; never in the finder.+const syncBar=()=>resultsEl.classList.toggle('filtered',state.view!=='find'&&(isFiltered()||document.activeElement===q2));// A pressed button that goes away with the view hands keyboard focus to the results heading. No scrolling: the callers that move the page scroll it themselves.const toTitle=()=>titleEl.focus({preventScroll:true});const gone=el=>!el.getClientRects().length;diff --git a/tests/finder.test.js b/tests/finder.test.jsindex 8e651a35..2e810f4b 100644--- a/tests/finder.test.js+++ b/tests/finder.test.js@@ -511,6 +511,17 @@ test("the page check's patterns for See N matches and the results line take eachfor (const wrong of ['1 best matches.', '2 best match.', '5 best matches and 1 close matches.', '1 best match and 2 close match.']) assert.ok(!results.test(wrong), wrong);});+test('the phone bar never shows in the finder, even while its own search box has keyboard focus', () => {+ const q2 = {}, bar = { on: null }, page = vm.createContext({ q2, resultsEl: { classList: { toggle: (name, on) => { bar.on = on; } } }, document: { activeElement: q2 } });+ for (const from of ['const isFiltered=', 'const syncBar=']) vm.runInContext(statement(from), page);+ for (const [view, focused, want] of [['find', q2, false], ['find', null, false], ['all', null, true], ['', q2, true], ['', null, false]]) {+ page.state = { ...NONE, view };+ page.document.activeElement = focused;+ vm.runInContext('syncBar()', page);+ assert.equal(bar.on, want, `${view || 'the start'}, ${focused ? 'its box focused' : 'its box not focused'}`);+ }+});+// ── Every card's answers and the test set ──// The reviewed answers: every answer given to some card, the rules every page of a kind shares, and the spec's 28 described effects.