Skip to content

Commit

Permalink
Hover docs
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Nov 16, 2024
1 parent 23b0554 commit 9e3944b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App.civet
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ export function App()
<h2>Input: Wang Tiles
<h3>{glues()} Glues
<.glues>
<button onClick=
<button title="Halve the number of glues" onClick=
(e) => setColors Math.max 2, . %/ 2
>−
<button onClick=
<button title="Double the number of glues" onClick=
(e) => setColors (2*)
>+
<For each=[0...glues()]>
(glue) =>
<Glue color=glue>
<h3>{tiles#} Tiles
<.tiles>
<button onClick=
<button title="Remove last Wang tile" onClick=
(e) => setNumTiles Math.max 1, . - 1
>−
<button onClick=
<button title="Add a Wang tile" onClick=
(e) =>
setNumTiles (1+)
if numTiles() > tiles#
Expand Down

0 comments on commit 9e3944b

Please # to comment.