How mohamedathif-web/bmi-calculator works
This is a small, browser-based BMI calculator. The documented workflow is to enter weight and height, validate them, convert height to meters, calculate BMI, and display its value and category. The JavaScript excerpt confirms the calculation and result updates; the README documents the broader workflow and responsive design. The HTML and CSS were not excerpted, so their runtime wiring is not independently verified.
Main entry points: index.html Calculator page · script.js Input validation · css Responsive styling
Components 6
User interface
- Calculator page
index.html - Responsive styling
css - Value and category
js/script.js
BMI logic
- Input validation
js/script.js - BMI calculation
js/script.js
Other components
- User
Connections 5
- User → Calculator page: enters measurements
README.md - Calculator page → Input validation: validates input
README.md - Input validation → BMI calculation: then calculates
README.md - BMI calculation → Value and category: updates display
js/script.js - Calculator page → Responsive styling: styled by