# Foldstead 1.0.0 — the complete free jQuery accordion kit
Open app/index.html. No build/install/account/internet needed. If your browser blocks local downloads, serve this extracted folder with `python3 -m http.server 8080 --bind 127.0.0.1` and open http://127.0.0.1:8080/app/. All artwork, scripts and export assets are local. No photos or person data.

## Build your collection
The preview has four original illustrated stories. Click a closed story header or use Arrow Right/Down, Arrow Left/Up, Home/End. Enter/Space activate the focused native button. Exactly one panel is expanded in enhanced mode. Narrow layouts stack the same panels and keep the open story fully readable; no inner scroll is required.
Edit collection title, style (Gallery/Story/Quiet text), initial panel (1-based in builder), duration0–1200ms and rotation2000–15000ms, then panel title/eyebrow/description/illustration/optional link. Apply changes commits atomically. Invalid fields leave applied preview and exports unchanged; correct the form and apply again. Unsaved edits are deliberately not exported. Add up to12panels; minimum2. Remove is undoable. Undo/Redo retains40applied versions during this tab session. There is no automatic storage: save JSON before closing.
Save JSON project downloads the editable version1project. Open project uses your downloaded .foldstead.json file and restores content/order/options. Unsupported, invalid, oversized>64KB or unsafe-link JSON is rejected without replacing applied work. Text is escaped; no arbitrary HTML/SVG upload. HTTP(S) links without embedded credentials only; links are user-chosen external destinations and are not fetched by the editor.
Download HTML is a finished self-contained interactive collection: exact original artwork/CSS/jQuery/plugin/options included, no external resources. Open it directly in a modern browser; native image/media or other software is not needed. JSON is the editable project; exported HTML does not include the workshop UI. Default autoplay is OFF. Play collection starts rotation only when the collection is not hovered/focused, document is visible and reduced motion is not requested. Pause stops it. A manual panel click/arrow pauses rotation. This prevents taking focus away during reading. No motion is essential to access content.

## Integrate the real jQuery plugin
Copy app/foldstead.css, app/jquery.foldstead.js and jQuery3.7.1 (or your existing compatible jQuery) to your page. Add your markup using the shape in samples/embed.html: `.foldstead > .fs-panel > .fs-heading > button.fs-trigger`, followed by `.fs-body` inside each panel. Keep heading levels suitable for your surrounding page. Arbitrary host markup must be trusted developer content; the builder escapes user text. No-JS markup shows every body and all text/images/links. Enhancement adds `.fs-ready`, region IDs, aria-controls/expanded/labelledby and roving tabindex. Do not author hidden states ahead of initialization.
Load jQuery first, then jquery.foldstead.js after the DOM. Initialize `$('.my-collection').foldstead({initial:0,duration:450,interval:5000})`. All methods and options use0-based indexes (builder labels use1-based numbers). Each matched instance owns its index/timer/event namespace/region IDs. Initialization is idempotent. `foldstead('open',2)` selects panel3. `'next'`, `'previous'`, `'play'`, `'pause'` are mutations. `'state'` returns the first matched instance's index/id/playing/suspended. `.on('foldstead:change',(event,state)=>...)` observes panel selection, and `foldstead:play` observes play/pause. `'destroy'` cancels timers/listeners and restores the original markup/class/style. State getters return a fresh object. Invalid indexes/timing/methods throw and do not mutate initialized components. `.fs-gallery`, `.fs-story` and `.fs-quiet` style your wrapper; horizontal gallery stacks below700px.
For the whole workshop, app/runtime.js includes local jQuery, plugin, core, exact export assets and studio in order, after the DOM. On a site that already has jQuery, use individual files; do not load runtime.js again. No private jQuery copy is required. `python3 scripts/build.py` from extracted kit root rebuilds runtime.js using supplied sources, byte-for-byte. Python is needed only for rebuild. samples/journeys.html is the finished original sample and samples/journeys.foldstead.json the editable example. samples/embed.html demonstrates two independent collections. Source/package internal technical tests are excluded from customer ZIP; this is a source component kit, not a hosted service.

## Rights, privacy and limits
The complete base kit is free; no paywall, teaser tier or payment integration. Use in personal/commercial projects and share finished output under the approved LICENSE.txt; do not redistribute/resell the source package as a standalone product or claim authorship. jQuery3.7.1 remains MIT, notice app/vendor/jquery-LICENSE.txt and THIRD_PARTY.md. Nishvault original code and landscape illustrations do not use competitor files or brand assets. No guaranteed individual support, SLA, update timetable or results. Custom integration is a separate unpriced service, not part of this download.
Offline studio, samples and generated HTML have no analytics/fetch/beacon or external font/image/CDN dependency. hosted/adapter.js is separate publisher preparation and is excluded; consent/internal/DNT/GPC gates and content-free payload tested locally, but real hosted persistence/privacy and public release are independent gates. Viewport1440/390 evidence is separate from physical touch/every-engine or full assistive-technology certification. Uses modern matchMedia.addEventListener, CSS flex/grid, standard native buttons and Blob/File APIs; legacyIE is not claimed. No server, login, send, checkout or uploaded customer dataset.
