feat: add responsive calc-02 HP48GX demo

This commit is contained in:
2026-05-15 18:45:44 +02:00
parent 95eb1d265f
commit 48a262eb87
7 changed files with 775 additions and 4 deletions
+8 -3
View File
@@ -22,9 +22,9 @@ The main class is `RpnCalculator`.
- `samples/calc-01/index.html`: active browser demo entry point
- `samples/calc-01/index.css`: demo styles
- `samples/calc-01/index.js`: demo UI and keyboard logic
- `samples/calc-01/index.html`: alternate browser demo entry point
- `samples/calc-01/index.css`: alternate demo styles
- `samples/calc-01/index.js`: alternate demo UI and keyboard logic
- `samples/calc-02/index.html`: new responsive HP48GX-style demo entry point
- `samples/calc-02/index.css`: new responsive demo styles
- `samples/calc-02/index.js`: new demo UI and keyboard logic
- `samples/calc-XX/`: placeholder name for future demo variants
## Public API
@@ -268,6 +268,11 @@ The current demo supports:
The demo also implements stack selection and stack-item move mode in its UI layer using the public calculator methods.
It keeps the calculator screen focused and updates the visible stack window as the selection moves.
## Calc 02 demo
`samples/calc-02/` is a new responsive HP48GX-inspired demo.
It adapts its layout to the browser window and switches between the supplied portrait and landscape arrangements.
## Exports
`RpnCalculator` is exposed in both environments: