Repository navigation
Own page per calculator, phone layout fixes, author in the header - #19
Merged
Merged
Conversation
- Every calculator now has its own page in each language (leaf-spring/, de/leaf-spring/, ...) with its own title, description, canonical and hreflang links and the theory notes as crawlable text; 85 pages in all, listed in sitemap.xml. The app opens the calculator named in data-calc, moves the URL to the calculator's page when switching, and sets the tab title per calculator. - Fix sideways scrolling on phones (all languages, 320 and 360 px): form and result columns can shrink, long words wrap. - Phones: Save, Export PDF and a "More..." toggle; the other actions open under it. Desktop is unchanged. - PDF export loads jsPDF next to js/, so it also works on the language pages (it looked for de/vendor/... before). - Header subtitle "by E. Tozlu"; site descriptions credit JPE Precision Point at the end instead of leading with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtSyM5HXUjVKVXDMRw2Hht
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Eren · project thread
What changes
Search: one page per calculator.
tools/build-pages.jsnow writes a page for every calculator in every language (leaf-spring/,de/leaf-spring/, …, 85 pages). Each has its own title (e.g. "Blattfeder berechnen | Rechner für Präzisionstechnik"), description, canonical/hreflang links and JSON-LD, and shows the theory notes as plain text for crawlers. sitemap.xml lists all of them. The home page list links to these pages.The app reads
data-calcon<html>to open that calculator, moves the URL to the calculator's own page when you switch (inputs stay in the hash, so share links keep working), and sets the tab title per calculator. The language switch keeps the calculator.Phones.
minmax(0, 1fr), and long words in labels, result rows and headings wrap.Bug fix. PDF export loaded
vendor/…relative to the page, so on/de/,/nl/and the other language pages it requestedde/vendor/…. It now resolves the path fromjs/pdf.js. Checked: a PDF downloads from/de/hertz-contact/.Branding. The header subtitle now reads "by E. Tozlu" (translated) instead of "formulas from JPE Precision Point". The site descriptions credit JPE at the end. Source links, the disclaimer and the corrections card are unchanged. Spot check: the JPE leaf spring article is almost all formulas, so the theory notes are this site's own text.
Testing
npm test: 827 passed (tests/i18n-keys.jsnow also scanstools/seo.config.js)Generated by Claude Code