{"id":22402844,"url":"https://github.com/wambita/js-calculator","last_synced_at":"2025-07-25T01:10:31.434Z","repository":{"id":252206900,"uuid":"839689927","full_name":"Wambita/js-calculator","owner":"Wambita","description":"just a simple calculator in js. i know, no one makes them  anymore. ","archived":false,"fork":false,"pushed_at":"2024-08-08T11:25:29.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T06:23:47.798Z","etag":null,"topics":["aesthetic","calculator","dark-mode","javascript","pastel","responsive","responsive-web-design"],"latest_commit_sha":null,"homepage":"https://wambita.github.io/js-calculator/","language":"HTML","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/Wambita.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-08T06:13:28.000Z","updated_at":"2024-08-08T11:31:03.000Z","dependencies_parsed_at":"2025-02-01T06:34:04.435Z","dependency_job_id":null,"html_url":"https://github.com/Wambita/js-calculator","commit_stats":null,"previous_names":["wambita/js-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wambita%2Fjs-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wambita%2Fjs-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wambita%2Fjs-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wambita%2Fjs-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wambita","download_url":"https://codeload.github.com/Wambita/js-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760923,"owners_count":20667893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aesthetic","calculator","dark-mode","javascript","pastel","responsive","responsive-web-design"],"created_at":"2024-12-05T09:15:05.390Z","updated_at":"2025-03-27T00:43:57.473Z","avatar_url":"https://github.com/Wambita.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Calculator\n\nThis is a simple calculator application built with HTML, CSS, and JavaScript. It provides basic arithmetic operations like addition, subtraction, multiplication, and division.\n\n## Table of Contents\n- [Demo](#demo)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Technologies Used](#technologies-used)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Demo\n\nYou can view a live demo of the calculator [here](https://wambita.github.io/js-calculator/).\n\n## Features\n\n- Addition, subtraction, multiplication, and division operations\n- Responsive design for various screen sizes\n- User-friendly interface\n- Light mode and dark mode\n\n## Installation\n\nTo get a local copy up and running, follow these simple steps:\n\n1. Clone the repository\n    ```sh\n    git clone https://github.com/Wambita/js-calculator.git\n    ```\n2. Open the `index.html` file in your favorite browser.\n\n## Usage\n\n1. Open the `index.html` file in a web browser.\n2. Use the calculator buttons to perform calculations.\n\n## Technologies Used\n\n- HTML\n- CSS\n- JavaScript\n\n## CSS Breakdown\n\nThe CSS file includes styles for the calculator's layout and appearance. Media queries are used to ensure the calculator is responsive on screens below 550px width.\n\n### Key CSS Classes and IDs\n\n- `body`: Styles for the overall page, including flexbox layout and background color.\n- `h2`: Styles for the header, including font size, color, and decoration.\n- `#calculator`: Styles for the calculator container, including background color and border radius.\n- `#display`: Styles for the display area of the calculator, including padding, font size, and background color.\n- `#keys`: Styles for the grid layout of the calculator buttons.\n- `button`: Styles for the buttons, including size, color, and hover/active states.\n- `.operator-btn`: Additional styles for operator buttons.\n\n### Javascript \nHas 3 functions:\n + `appendToDisplay()` it displays the numbers that have been input and operand to the display so as to view the equation.\n\n + `clearDisplay()` - it clears the display so that a new equation can be added\n\n + `calculte()` - does the calculation of the problem using `eval` function and also has error handling to catch errors\n\n## Contributing\n\nContributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwambita%2Fjs-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwambita%2Fjs-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwambita%2Fjs-calculator/lists"}