{"id":21916408,"url":"https://github.com/nguyenm-giau/javascript-calculator","last_synced_at":"2026-05-06T04:32:22.185Z","repository":{"id":262991766,"uuid":"859433149","full_name":"nguyenm-giau/JavaScript-Calculator","owner":"nguyenm-giau","description":"A sleek and functional calculator using HTML, CSS, and JavaScript.","archived":false,"fork":false,"pushed_at":"2024-09-19T13:09:32.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T09:32:51.823Z","etag":null,"topics":["calculator","calculator-javascript","calculator-js","css","html","javascript"],"latest_commit_sha":null,"homepage":"https://nguyenm-giau.github.io/JavaScript-Calculator/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nguyenm-giau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-18T16:46:47.000Z","updated_at":"2024-09-19T13:09:36.000Z","dependencies_parsed_at":"2024-11-15T13:28:26.564Z","dependency_job_id":"c3ee6196-b9f6-4301-8165-41d89beb2000","html_url":"https://github.com/nguyenm-giau/JavaScript-Calculator","commit_stats":null,"previous_names":["nguyenm-giau/javascript-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nguyenm-giau/JavaScript-Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenm-giau%2FJavaScript-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenm-giau%2FJavaScript-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenm-giau%2FJavaScript-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenm-giau%2FJavaScript-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nguyenm-giau","download_url":"https://codeload.github.com/nguyenm-giau/JavaScript-Calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenm-giau%2FJavaScript-Calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","calculator-javascript","calculator-js","css","html","javascript"],"created_at":"2024-11-28T19:17:58.494Z","updated_at":"2026-05-06T04:32:22.159Z","avatar_url":"https://github.com/nguyenm-giau.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Calculator\n\n[English](./README.md) | [Tiếng Việt](./README_vi.md)\n\n---\n\nWelcome to the **JavaScript Calculator** project! This is a simple and functional calculator built using HTML, CSS, and JavaScript. It supports basic arithmetic operations, decimal inputs, and keyboard interactions for a smooth user experience.\n\n![Calculator Preview](https://imgur.com/aJk1heK.gif) \u003c!-- Add a screenshot of your calculator here --\u003e\n\n## Features\n\n- **Basic Operations**: Addition, Subtraction, Multiplication, and Division\n- **Keyboard Support**: Use both mouse and keyboard to interact with the calculator\n- **Floating Point Calculations**: Supports decimal calculations\n- **Clear and Reset Functions**: Easily manage your calculations\n- **Press Styles**: Interactive button press effect for a better user experience\n- **Responsive Design**: Works seamlessly on different screen sizes\n\n## Demo\n\nYou can try the live demo of the calculator [here](https://nguyenm-giau.github.io/JavaScript-Calculator/).\n\n## Technologies Used\n\n- **HTML5**: For the basic structure of the calculator\n- **CSS3**: For styling and creating a responsive layout\n- **JavaScript (ES6)**: To handle the calculator logic and operations\n\n## Setup \u0026 Installation\n\nTo run this project locally, follow these steps:\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/nguyenm-giau/JavaScript-Calculator.git\n   ```\n\n2. Open `index.html` in your browser to see the calculator in action.\n\n## Usage\n\n- **Mouse Input**: Click the buttons to perform calculations.\n- **Keyboard Input**: Use the following keys:\n  - Numbers (0-9) for input\n  - `+`, `-`, `*`, `/` for operations\n  - `Enter` to calculate\n  - `Backspace` to delete the last digit\n  - `Escape` to clear the input\n\n## Lessons Learned\n\nDuring the development of this project, I learned:\n\n- Managing state in JavaScript using objects.\n- Handling floating-point precision in mathematical operations.\n- Implementing keyboard interactions for web applications.\n\n## Icons Used\n\n- **[Icons8](https://icons8.com)**\n- **[Flaticon](https://www.flaticon.com)**\n\n## Contributing\n\nContributions are welcome! If you'd like to contribute to the project, feel free to fork the repository and submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenm-giau%2Fjavascript-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenm-giau%2Fjavascript-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenm-giau%2Fjavascript-calculator/lists"}