From dde647a769a79d472500f8bd35481794595d052f Mon Sep 17 00:00:00 2001 From: Evan Gress <106449014+evangress@users.noreply.github.com> Date: Thu, 12 Nov 2026 20:42:00 -0500 Subject: [PATCH] Demo page: show what 0.2.0 added Header details dropdown, link into a closed FAQ answer, link selecting a tab, --share, hidden search-results list with Ctrl+K, select all, a plain number column, URL-synced filter with highlight and status line, remembered sort, data-tag-match, help text after a password field, image thumbnails, a destructive confirm button, and an image viewer set. Loads tagbrush@2. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 +++ index.html | 72 +++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1c0d41..8db75e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- The demo page shows what 0.2.0 added: a `
` dropdown in the header nav, a link that opens a closed FAQ answer, a link that selects a tab, a Share button (`command="--share"`), search results from a hidden list with a Ctrl+K shortcut, select-all checkboxes, a plain number column lined up on the right, a filter kept in the address (`name="q"`) with its highlight and "No matches" line, a remembered sort (`data-tag-remember` on the table), a confirm-password field (`data-tag-match`), help text after a password field, an image file input with thumbnails, a red Delete in the confirm dialog, and two pictures in one figure that the viewer steps through. It now loads TagBrush.css 2 (`tagbrush@2`), which styles the header dropdown, tabs, selected rows, and toggle buttons these use. + ## 0.2.0 (2026-11-12) Behaviors for the patterns TagBrush.css gained (dropdowns from `
`, the phone menu), and things visitors expect on any site. diff --git a/index.html b/index.html index e8b5d1f..e440c59 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ TagAction: plain HTML that behaves - + @@ -26,6 +26,16 @@ TagAction
  • Install
  • +
  • Examples + +
    • README
    • @@ -46,33 +56,52 @@

      Plain HTML that behaves

      Install

      Add one line to <head>. Copy it with the button.

      <script src="https://cdn.jsdelivr.net/npm/tagaction@0/tagaction.min.js" defer></script>
      -

      Released . Times with a timezone, like , show in your own. Tap PE on a phone to read it.

      +

      Released . Times with a timezone, like , show in your own. Tap PE on a phone to read it. Using htmx? It works with it: the link opens the answer below.

      +

      Release notes for 0.2.0

      + + -

      Tables

      -

      Click a column header to sort. Type to filter.

      - - - +

      Tables

      +

      Click a column header to sort; the order is kept when you come back. Type to filter: matches are highlighted, the filter goes into the address so you can share it, and a line under the table says when nothing matches. Columns of numbers line up on the right. Check the header box to select every shown row, or Shift-click a range.

      + +
      CustomerTotalPlacedStatus
      + - - - - + + + +
      CustomerItemsTotalPlacedStatus
      Maya Lin$1,240.00Paid
      Alex Chen$95.00Pending
      Zoë Park$310.50Paid
      Bo Ito$18.00Refunded
      Maya Lin12$1,240.00Paid
      Alex Chen1$95.00Pending
      Zoë Park4$310.50Paid
      Bo Ito2$18.00Refunded
      -

      Forms

      -

      Submit with mistakes to see messages under the fields. Ctrl+Enter (⌘+Enter) in the bio sends the form too. Choose several files, or drop them on the label.

      +

      Forms

      +

      Submit with mistakes to see messages under the fields. The second password must match the first. Ctrl+Enter (⌘+Enter) in the bio sends the form too. Choose several files, or drop them on the label; pictures show a thumbnail.

      We never share it. + At least 8 characters. + + + + @@ -92,26 +121,26 @@

      Guests

      -

      Dialogs and menus

      +

      Dialogs and menus

      The button opens the dialog with no script. Click the backdrop to close it.

      Delete project?

      This removes every file. It can't be undone.

      -
      +
      -

      Details

      -

      These answers open one at a time, and the page remembers which one was open.

      +

      Details

      +

      These answers open one at a time, and the page remembers which one was open. A link to an answer opens it, and a printout includes every answer.

      Does it work without JavaScript?

      Yes. Every page works plainly; TagAction only adds behavior.

      Does it work with htmx?

      Yes. Content swapped in later is enhanced automatically.

      -

      Tabs, copy, and theme

      -

      Tabs show one panel at a time; arrow keys move between them. Without JavaScript, every panel shows.

      +

      Tabs, copy, and theme

      +

      Tabs show one panel at a time; arrow keys move between them. Without JavaScript, every panel shows. A link to a panel selects its tab: install from npm.

      @@ -122,10 +151,11 @@

      Tabs, copy, and theme

      -

      Images

      +

      Images

      A river between mountains -
      Click to see it larger.
      + Mountain ridges above a forest +
      Click a picture to see it larger; the arrow keys step through both.