Skip to content

Lesson 18 - #18

Open
Kukrynitza wants to merge 8 commits into
masterfrom
lesson-18
Open

Lesson 18#18
Kukrynitza wants to merge 8 commits into
masterfrom
lesson-18

Conversation

@Kukrynitza

Copy link
Copy Markdown
Owner

No description provided.

@vladshcherbin vladshcherbin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

первые правки 🙌

Comment thread dz18/eslint.config.js
Comment thread dz18/package.json Outdated
Comment thread dz18/src/app.html Outdated
Comment thread dz18/src/scripts/app.js Outdated
Comment on lines +6 to +13
document.querySelector('.login').innerHTML = `
<label for="email">Email</label>
<div>
<input id="email" name="email" placeholder="Enter your email" required autocomplete autofocus>
<p class="error">Error email length < 3</p>
</div>
<label for="password">Password</label>
<input id="password" name="password" placeholder="Create a password" required autocomplete>`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пересоздавать весь инпут не нужно - только добавлять ошибку обычным элементом <p> под инпутом

Comment thread dz18/src/scripts/app.js Outdated
Comment on lines +19 to +25
<label for="email">Email</label>
<input id="email" name="email" placeholder="Enter your email" required autocomplete autofocus>
<label for="password">Password</label>
<div>
<input id="password" name="password" placeholder="Create a password" required autocomplete>
<p class="error">Error: password length must be at least 6 characters</p>
</div>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пересоздавать весь инпут не нужно - только добавлять ошибку обычным элементом <p> под инпутом

Comment thread dz18/src/scripts/app.js Outdated

return
}
document.querySelector('.login').innerHTML = '<label for="email">Email</label><input id="email" name="email" placeholder="Enter your email" required autocomplete autofocus><label for="password">Password</label><input id="password" name="password" placeholder="Create a password" required autocomplete></input>'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пересоздавать элементы не нужно

Comment thread dz18/src/scripts/app.js Outdated
Comment thread dz18/src/styles/styles.css Outdated
Comment thread dz18/src/styles/styles.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants