{"id":28615465,"url":"https://github.com/notabhaykumar/simple-counter-app","last_synced_at":"2026-02-13T03:17:19.524Z","repository":{"id":296522913,"uuid":"993675473","full_name":"NotAbhayKumar/simple-counter-App","owner":"NotAbhayKumar","description":"A simple web app built with HTML, CSS, and JavaScript that features a counter which increases by one each time a button is clicked.","archived":false,"fork":false,"pushed_at":"2025-05-31T09:21:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-31T21:15:39.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/NotAbhayKumar.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,"zenodo":null}},"created_at":"2025-05-31T09:19:00.000Z","updated_at":"2025-05-31T09:21:18.000Z","dependencies_parsed_at":"2025-05-31T21:15:43.298Z","dependency_job_id":"7c6e4188-2039-492d-a4b4-9f0ad968b132","html_url":"https://github.com/NotAbhayKumar/simple-counter-App","commit_stats":null,"previous_names":["notabhaykumar/simple-counter-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NotAbhayKumar/simple-counter-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAbhayKumar%2Fsimple-counter-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAbhayKumar%2Fsimple-counter-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAbhayKumar%2Fsimple-counter-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAbhayKumar%2Fsimple-counter-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotAbhayKumar","download_url":"https://codeload.github.com/NotAbhayKumar/simple-counter-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAbhayKumar%2Fsimple-counter-App/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259382331,"owners_count":22848842,"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":[],"created_at":"2025-06-12T02:08:56.616Z","updated_at":"2026-02-13T03:17:18.723Z","avatar_url":"https://github.com/NotAbhayKumar.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Counter App\n\nA basic web application that allows users to increment a numerical counter. This project demonstrates fundamental HTML, CSS (with Tailwind CSS), and JavaScript concepts.\n\n## Project Overview\n\nThe application displays a counter, initialized at 0, and an \"Increment\" button. Each click on the button increases the counter's value by one.\n\n## Features\n\n* **Counter Display:** Shows the current count.\n* **Increment Button:** Increases the count when clicked.\n* **Simple \u0026 Clean UI:** Styled with Tailwind CSS for a modern look and feel.\n\n## Technologies Used\n\n* **HTML:** Structures the content of the web page.\n* **CSS (Tailwind CSS):** Styles the application for visual appeal and responsiveness. Tailwind CSS is loaded via a CDN.\n* **JavaScript:** Implements the counter logic and button functionality.\n\n## How to Run\n\n1.  **Save the Code:** Copy the HTML code from the `simple_counter_app` (or save it as an `index.html` file).\n2.  **Open in Browser:** Open the `index.html` file in any modern web browser (e.g., Chrome, Firefox, Safari, Edge).\n\nNo special build steps or dependencies are required beyond a web browser, as Tailwind CSS is included via a CDN.\n\n## Code Structure\n\n* **`index.html` (or the provided HTML block):**\n    * **`\u003chead\u003e`:**\n        * Includes metadata, the title of the page, and a link to the Tailwind CSS CDN.\n        * Contains a `\u003cstyle\u003e` block for any potential custom CSS (though primarily uses Tailwind).\n    * **`\u003cbody\u003e`:**\n        * Contains the main content of the application, centered on the page.\n        * A `div` element acts as a container for the counter's heading, display area, and button.\n        * The counter value is displayed in a `\u003cp\u003e` tag with the ID `countDisplay`.\n        * The increment functionality is triggered by a `\u003cbutton\u003e` with the ID `incrementButton`.\n    * **`\u003cscript\u003e`:**\n        * Located at the end of the `\u003cbody\u003e` to ensure HTML elements are loaded before the script runs.\n        * **`countDisplay`:** A constant that references the paragraph element where the count is shown.\n        * **`incrementButton`:** A constant that references the button element.\n        * **`count`:** A variable initialized to `0` to store the current counter value.\n        * **`updateDisplay()`:** A function that updates the `textContent` of `countDisplay` with the current `count`.\n        * **Event Listener:** An event listener is attached to `incrementButton`. On a 'click' event:\n            * The `count` is incremented (`count++`).\n            * `updateDisplay()` is called to reflect the new count on the page.\n\n## Future Enhancements (Optional)\n\n* Add a \"Decrement\" button.\n* Add a \"Reset\" button to set the counter back to 0.\n* Allow users to set a custom increment/decrement step.\n* Persist the count using `localStorage` so it's remembered across browser sessions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotabhaykumar%2Fsimple-counter-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotabhaykumar%2Fsimple-counter-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotabhaykumar%2Fsimple-counter-app/lists"}