How ampedeath/devcalc works
Project type and purpose
• DevCalc is a static, client-side, single-page web application (no backend services) whose purpose is to perform arithmetic and base-conversion operations across binary, octal, decimal, and hexadecimal systems. It uses HTML, CSS (including Bootstrap), and JavaScript.
File structure
• Top level
• index.html – the entry point and UI shell
• README.md – project overview and tech stack
• .gitignore
• CSS/
• reset.css – browser reset rules
• standard.css – project-wide base styles
• styles.css – component-specific or override styles
• JS/
• app.js – core calculation and conversion logic
• script.js – UI event handlers, DOM interaction, and wiring to app.js
README
• Confirms client-side only architecture
• Mentions use of Bootstrap for responsive design
• Describes four numeral systems and basic operations
Main components
a. Client Browser (User Interface)
• index.html: lays out the calculator UI
• Bootstrap CSS/JS (external library) for responsive grid and components
• Custom CSS modules (reset, standard, styles)
b. JavaScript Logic
• script.js: captures user input, invokes conversion and arithmetic operations
• app.js: implements base conversion algorithms and math functions
c. Data Flow & Interactions
1. User clicks buttons or enters numbers on the UI
2. script.js handles DOM events and passes inputs to app.js
3. app.js returns computed results or converted values
4. script.js updates the DOM with results
d. External Dependencies
• Bootstrap (CSS and optional JS)
• No backend or external API calls
Architectural patterns and principles
• Separation of concerns:
• HTML for structure,
• CSS for presentation,
• JS for behavior and business logic
• Modular JS: app.js (pure logic) vs. script.js (UI glue)
• Static asset organization: CSS/, JS/, IMG/