Loading repository data…
Loading repository data…
Bogglo / repository
A single-page, responsive BMI (Body Mass Index) calculator built with plain HTML, CSS and JavaScript. Designed to default to dark mode, work well on both mobile and desktop, and include an inline SVG chart + radial gauge. Uses a PNG favicon placed at the project root.
A single-page, responsive BMI (Body Mass Index) calculator built with plain HTML, CSS and JavaScript.
Designed to default to dark mode, work well on both mobile and desktop, and include an inline SVG chart + radial gauge. Uses a PNG favicon placed at the project root.
Live preview / demo
Place these files as shown:
project-root/
├─ index.html # Main app (HTML + inline CSS/JS)
├─ README.md # This file
├─ favicon.png # Recommended favicon (place at project root)
├─ favicon-32x32.png # optional (better browser coverage)
├─ favicon-16x16.png # optional
├─ apple-touch-icon.png # optional (180×180)
├─ images/ # optional: other images if needed
│ └─ (e.g. bmi-chart.png) # optional graphic, not required for current UI
└─ assets/ # optional: if you want to split CSS/JS
├─ css/
└─ js/
Notes:
favicon.png at project root and the HTML uses:
<link rel="icon" type="image/png" href="favicon.png">
images/ is optional — the inline SVG chart is used by default. Add static chart PNGs only if you want.index.html into your project root.favicon.png into the project root (see the "Favicon" section for guidance).index.html in your browser (double-click or serve via a static server).No build step is required.
We recommend using a PNG favicon (project root favicon.png). Suggested workflow:
magick convert favicon-1024.png -resize 512 favicon-512.png
magick convert favicon-1024.png -resize 256 favicon-256.png
magick convert favicon-1024.png -resize 128 favicon-128.png
magick convert favicon-1024.png -resize 64 favicon-64.png
magick convert favicon-1024.png -resize 32 favicon-32x32.png
magick convert favicon-1024.png -resize 16 favicon-16x16.png
# choose one as the "favicon.png" (e.g. 32x32)
cp favicon-32x32.png favicon.png
magick convert favicon.svg -resize 1024 favicon-1024.png
favicon.png at the project root. Optionally include favicon-32x32.png and favicon-16x16.png for better compatibility.Optional head markup to include multiple sizes:
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
If you prefer an automated tool, use:
localStorage.theme.images/ and update the .chartWrap block to use:
<img src="images/bmi-chart.png" alt="BMI range chart" class="chartImg" loading="lazy">
assets/css/ and assets/js/ and include links in index.html. See assets/README-ASSETS.txt if present.python -m http.server 8000
npx serve .
favicon.png changes (browsers aggressively cache favicons).Use as you wish. If you publish or share, a short attribution is appreciated.
If you want, I can: