Skip to content

修 Style A (电子杂志) · deck lock 联动 CSS 过渡,端到端 #4

Description

@raawaa

Parent

#2 (ADR 0001)

What to build

Apply the same fix from #3 (Style C) to Style A's template. The go() function in assets/template.html has the identical lock=true;setTimeout(()=>lock=false,700); pattern, so the change is mechanical.

Code change

Add deckLockMs() helper just above go() (same snippet as #3). Replace setTimeout(()=>lock=false, 700) in go() with setTimeout(()=>lock=false, deckLockMs()).

Files

  • assets/template.html — go() function and add deckLockMs() helper
  • references/checklist.md — add a self-check item in the Style A section. Note: this file covers both Style A and Style B; place the new item where Style A rules are clustered (look for "## 🔴 P0" header and any Style A specific section). The exact location should be a new subsection; consult the file's existing organization.

Verification

Style A has no generated example in this repo, so the regression test is: build a tiny throwaway Style A deck (1 cover + 1 content page) following references/components.md and references/layouts.md, run agent-browser against it, and confirm the same behavior as #3's verification steps. The throwaway deck does not need to be committed.

Acceptance criteria

  • assets/template.html go() uses deckLockMs() instead of literal 700
  • assets/template.html no longer contains the literal setTimeout(()=>lock=false,700)
  • references/checklist.md has a new item covering this regression (Style A section)
  • Throwaway Style A deck + agent-browser regression: static mode 4 rapid → presses all advance

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions