This directory contains a modularised version of the polymer identification tool, ready to be published as a standalone open-source repository. Markup, styles, application logic, translations, and third-party snippets now live in separate files for easier maintenance.
- Serve the folder with any static HTTP server (for example
python3 -m http.server) to avoid module loading restrictions. - Open
http://localhost:8000/source/index.html(adjust the port and path if you host elsewhere). - Use the language toggle to switch between Russian and English, explore the flowchart, and review the classic fallback via
classic.html.
- Ensure Node.js 14+ is installed.
- Run
node server.jsfrom the project root. OverridePORTandHOSTif needed (for example,PORT=8080 node server.js). - Open
http://localhost:3000(or your chosen port) to view the map.
- Styles: Edit
assets/css/main.cssto tweak layout, theming, or responsive rules. - Translations: Extend
assets/lang/translations.jswith additional locales. Pair it withassets/data/flow-data.jsto add translated nodes. - Flow Logic: Update
assets/data/flow-data.jsto add or edit decision points and materials. - Vendor Scripts: Remove or replace
assets/js/vendor/yandex-metrika.jsif you do not need analytics.
For a directory overview, see STRUCTURE.md.
- HTML5 and modern CSS (custom layout, gradients, glassmorphism effects).
- Vanilla JavaScript for rendering, state management, and gesture handling.
- Yandex.Metrika snippet for optional analytics.
- No external build tooling or runtime dependencies.
This project is released under the MIT License. See LICENSE for details.