{"id":19608561,"url":"https://github.com/andreiextr/registration-form","last_synced_at":"2026-05-10T23:45:50.636Z","repository":{"id":246093423,"uuid":"820075362","full_name":"AndreiExtr/Registration-form","owner":"AndreiExtr","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-25T19:10:19.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T17:16:05.741Z","etag":null,"topics":["js","registration-forms","scss"],"latest_commit_sha":null,"homepage":"https://andreiextr.github.io/Registration-form/","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/AndreiExtr.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}},"created_at":"2024-06-25T18:42:50.000Z","updated_at":"2024-07-10T07:24:53.000Z","dependencies_parsed_at":"2024-06-25T20:56:48.649Z","dependency_job_id":null,"html_url":"https://github.com/AndreiExtr/Registration-form","commit_stats":null,"previous_names":["andreiextr/registration-form"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiExtr/Registration-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiExtr%2FRegistration-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiExtr%2FRegistration-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiExtr%2FRegistration-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiExtr%2FRegistration-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiExtr","download_url":"https://codeload.github.com/AndreiExtr/Registration-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiExtr%2FRegistration-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32876029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"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":["js","registration-forms","scss"],"created_at":"2024-11-11T10:15:46.061Z","updated_at":"2026-05-10T23:45:50.620Z","avatar_url":"https://github.com/AndreiExtr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Форма регистрации и авторизации\n\nlocalStorage — это встроенный объект в веб-браузерах, который позволяет хранить данные в формате ключ-значение непосредственно в браузере. Эти данные сохраняются даже после закрытия и перезапуска браузера, в отличие от sessionStorage, который хранит данные только в течение текущей сессии.\n\nОсновные характеристики localStorage:\n1. Объем хранилища: Обычно предоставляет до 5 МБ на домен.\n2. Срок хранения: Данные остаются доступными даже после закрытия браузера и перезагрузки устройства.\n3. Доступность: Доступен из всех вкладок и окон, открытых на одном и том же домене.\n\n```\n// Сохранение данных и переход на новую страницу\nif (!isError \u0026\u0026 emailInput !== '' \u0026\u0026 passwordInput !== '' \u0026\u0026 checkboxInput) {\n\n  // Получаем существующие данные из localStorage\n  let users = JSON.parse(localStorage.getItem('users')) || [];\n      \n  // Добавляем нового пользователя в массив\n  users.push({ email: emailInput, password: passwordInput });\n\n  // Сохраняем обновленный массив в localStorage\n  localStorage.setItem('users', JSON.stringify(users));\n      \n  // Переход на новую страницу\n  window.location.href = 'page.html';\n\n} else if (isError) {\n  if ((emailInputError !== '' \u0026\u0026 passwordInputError !== '' \u0026\u0026 checkboxInputError) ||\n  (emailInput !== '' \u0026\u0026 passwordInputError !== '' \u0026\u0026 checkboxInputError) || \n  (emailInputError !== '' \u0026\u0026 passwordInput !== '' \u0026\u0026 checkboxInputError) || \n  (emailInputError !== '' \u0026\u0026 passwordInputError !== '' \u0026\u0026 checkboxInput) ||\n  (emailInput !== '' \u0026\u0026 passwordInputError !== '' \u0026\u0026 checkboxInput)) {\n\n    // Получаем существующие данные из localStorage\n    let users = JSON.parse(localStorage.getItem('users')) || [];\n          \n    // Добавляется новый пользователь с ошибками в массив\n    users.push({ email: emailInputError, password: passwordInputError });\n    localStorage.setItem('users', JSON.stringify(users));\n    window.location.href = 'page.html';\n  }\n}    \n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiextr%2Fregistration-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreiextr%2Fregistration-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiextr%2Fregistration-form/lists"}