{"id":26050246,"url":"https://github.com/angryhtml/registration-form","last_synced_at":"2026-04-16T05:33:33.493Z","repository":{"id":280695435,"uuid":"942858559","full_name":"angryhtml/registration-form","owner":"angryhtml","description":"☑Registration Form with Validation using Static Methods","archived":false,"fork":false,"pushed_at":"2025-03-21T20:19:11.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T18:09:34.197Z","etag":null,"topics":["classes-in-javascript","css","html","javascript","static-methods","validation-form"],"latest_commit_sha":null,"homepage":"https://registrationform-staticmethods.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angryhtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-04T19:41:19.000Z","updated_at":"2025-03-21T20:19:15.000Z","dependencies_parsed_at":"2025-03-04T20:33:30.867Z","dependency_job_id":"a278fa13-657c-48df-a4d6-9a01bb0c4be6","html_url":"https://github.com/angryhtml/registration-form","commit_stats":null,"previous_names":["angryhtml/registration-form"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/angryhtml/registration-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angryhtml%2Fregistration-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angryhtml%2Fregistration-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angryhtml%2Fregistration-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angryhtml%2Fregistration-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angryhtml","download_url":"https://codeload.github.com/angryhtml/registration-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angryhtml%2Fregistration-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["classes-in-javascript","css","html","javascript","static-methods","validation-form"],"created_at":"2025-03-08T02:27:35.279Z","updated_at":"2026-04-16T05:33:33.487Z","avatar_url":"https://github.com/angryhtml.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Registration Form with Validation (TypeScript Version)\r\n\r\nThis project is an interactive registration form with data validation, rewritten from JavaScript to TypeScript. It demonstrates the use of **static methods** in a `UserUtils` class to validate user input, leveraging TypeScript's type safety and modern features.\r\n\r\n---\r\n\r\n## Key Features\r\n\r\n- **Email Validation:** Checks the correctness of the email format using a static method.\r\n- **Password Validation:** Password must contain at least 8 characters, including a digit, an uppercase letter, and a special character (`@`, `!`, `\u0026`, `?`).\r\n- **Password Confirmation:** Ensures the password and confirmation match.\r\n- **Success Message:** Shows a confirmation after successful registration.\r\n- **Form Reset:** Automatically resets the form 5 seconds after successful submission.\r\n- **Responsive Design:** The form and messages display correctly on all device sizes.\r\n- **TypeScript:** Code rewritten to TypeScript for better maintainability and error checking.\r\n\r\n---\r\n\r\n## Technologies Used\r\n\r\n- **HTML:** Structure of the form and messages.\r\n- **CSS:** Styling and responsive design.\r\n- **TypeScript:** Validation logic, static methods, and form reset.\r\n- **tsconfig.json:** Configured to target ES2015 and browser APIs.\r\n\r\n---\r\n\r\n## How It Works\r\n\r\nThe validation logic is encapsulated in the `UserUtils` class with static methods:\r\n\r\n- `UserUtils.validateEmail(email: string): boolean` — checks if email contains `'@'` and a dot after it.\r\n- `UserUtils.validatePassword(password: string): boolean` — verifies password length and complexity.\r\n\r\nWhen the form is submitted:\r\n\r\n1. Validation methods check the inputs.\r\n2. Errors display inline if validation fails.\r\n3. On success, the form hides, a success message shows.\r\n4. After 5 seconds, the form resets and is displayed again.\r\n\r\n---\r\n\r\n## Usage\r\n\r\n1. Open `index.html` in a browser.\r\n2. Fill out the registration form.\r\n3. Submit and see validation in action.\r\n4. After success, the form resets automatically.\r\n\r\n---\r\n\r\n## Development\r\n\r\nTo build or modify the project:\r\n\r\n- Make changes in `src/script.ts`.\r\n- Compile with `npx tsc` (configured by `tsconfig.json`).\r\n- Open or refresh `index.html` to see updates.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangryhtml%2Fregistration-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangryhtml%2Fregistration-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangryhtml%2Fregistration-form/lists"}