# Window Desk

Original HTML/CSS component kit by Back to the 90s. MIT License.

Open demo.html in a browser. ui.css defines the visuals; demo.js adds interactions to the authored desktop. Copy the components you need into your own project and keep their labels and semantic elements.

## Components
- `.wd-window`, `.wd-title`, `.wd-content`: a labelled section with title bar.
- `.wd-toolbar`, `.wd-status`, `.wd-actions`: groups of controls or concise status text.
- `.wd-field`, `.wd-choice`, `.wd-range`, `.wd-progress`: labelled native controls.
- `.wd-table-wrap` and `.wd-table`: an overflow wrapper and ordinary data table.
- `.wd-dialog`: a native modal dialog, opened with showModal().

## Behaviour
Hide buttons hide one section and move focus to its restore button. Restore buttons show the section and focus its first button. The dialog uses native modal behaviour and a method=dialog close form. The colour and spacing controls update the demo immediately. The notebook saves plain text in localStorage only when the visitor clicks Save on this device. Clear note removes the saved key.

## Customise
Edit the colour custom properties at the top of ui.css. Keep each title's foreground legible. Put section headings in the title bars. Use buttons for actions and anchors for navigation. Keep a label with every input. Add application behaviour explicitly; CSS styles a control while JavaScript performs its action.

## Review checklist
- Open all windows and hide/restore each with the keyboard.
- Tab through controls and inspect focus in each palette.
- Open the dialog, press Escape, reopen it and close with its button.
- Change range, select, radio and checkbox controls.
- Save a disposable note, reload, clear it and reload again.
- Inspect the page at 320px width and with zoom.
- Check forced-colours mode and a screen reader in the target browsers.

Current references:
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog
https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Your_first_form

98.css is a separate established library: https://jdan.github.io/98.css/
This package contains original component code and artwork.
