Single static HTML page
The page structure is defined in one HTML file, including the calculator UI, custom select markup, result display, help modal, and miner comparison modal.
A static calculator for estimating bitcoin mining energy costs. It combines plain HTML, CSS, and JavaScript with custom UI controls, bilingual translation support, modal help panels, and miner comparison data.
Live at: https://hashcost.sugiro.ai/
What is used in this mining cost calculator and how the pieces are split up.
The page structure is defined in one HTML file, including the calculator UI, custom select markup, result display, help modal, and miner comparison modal.
The visual layer is built with a standalone stylesheet rather than a CSS framework. It includes branded typography, custom form styling, result panels, and responsive behavior.
Unlike a one-file static app, this project separates concerns into multiple scripts for menu behavior, modal logic, translation handling, and calculator interaction.
The app includes a manual translation dictionary and page update flow, letting the same interface switch between English and Portuguese without a framework i18n library.
Miner comparison and default reference values are shipped directly in the frontend, so the calculator can work entirely offline after load without fetching catalog data.
The project is a browser-only calculator. It has no bundler, package manifest, backend API, or database layer, which keeps deployment and local usage extremely simple.
The app is assembled in the browser from one HTML page and several helper scripts.
index.html defines the structure for inputs, miner selection, result areas, language toggles, and modal content.
styles.css sets the layout, card look, typography, spacing, and adaptive behavior across screen sizes.
translate.js loads the current language, swaps labels and helper text, and coordinates the bilingual display logic.
menu.js and modal.js manage custom UI behavior such as overlays, picker interaction, and help or miner-reference popups.
User input drives browser-side calculations for energy cost estimation and updates the rendered results immediately without any server communication.
This is still a static app, but more modular than the simpler calculators in the workspace.
index.html styles.css menu.js modal.js translate.js tax.ico
This project shows a useful middle ground between raw inline JavaScript and a full framework: it is still static, but the interaction logic has been split into focused browser scripts.
The calculator is driven by embedded reference data and in-browser state.
Hashrate, power, efficiency, and tariff values are entered or prefilled from miner examples.
The calculator updates cost estimates directly in the browser.
No backend persistence or account system is involved.
The app is designed for quick what-if comparisons.
Miner examples are bundled into the frontend experience.
Translation strings are stored directly in JavaScript objects.
The app can run without network calls once loaded.
Interaction richness comes from custom scripts rather than external UI libraries.
No install step is required unless you prefer serving it over localhost.
open index.html # or python -m http.server
The project can be opened directly as a static page or served from a tiny local server if you want URL-based testing.
No dependency installation.
No environment variables.
No API keys.
No framework runtime.
Hash Cost Calculator is a modular static web app built with HTML, CSS, and multi-file vanilla JavaScript. Its standout trait is that it adds richer UI behavior, bilingual support, and reference data without crossing into a framework-based architecture.