From 05564d56aa54eb11cbdc3684e1b4a843a3b9196c Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Mon, 18 Oct 2021 20:28:37 +0300 Subject: [RU] Fix live samples (#2767) --- files/ru/web/html/element/input/password/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/ru/web/html/element/input/password') diff --git a/files/ru/web/html/element/input/password/index.html b/files/ru/web/html/element/input/password/index.html index 8bfed00469..1845a12d53 100644 --- a/files/ru/web/html/element/input/password/index.html +++ b/files/ru/web/html/element/input/password/index.html @@ -71,7 +71,7 @@ translation_of: Web/HTML/Element/input/password
<label for="userPassword">Пароль:</label>
 <input id="userPassword" type="password">
-

{{EmbedLiveSample("A_simple_password_input", 600, 40)}}

+

{{EmbedLiveSample("Простое_поле_ввода_пароля", 600, 40)}}

Поддержка автозаполнения

@@ -102,7 +102,7 @@ translation_of: Web/HTML/Element/input/password
<label for="userPassword">Пароль:</label>
 <input id="userPassword" type="password" required>
-

{{EmbedLiveSample("Making_the_password_mandatory", 600, 40)}}

+

{{EmbedLiveSample("Обязательное_заполнение_пароля", 600, 40)}}

Указание режима ввода

@@ -111,7 +111,7 @@ translation_of: Web/HTML/Element/input/password
<label for="pin">ПИН:</label>
 <input id="pin" type="password" inputmode="numeric">
-

{{EmbedLiveSample("Specifying_an_input_mode", 600, 40)}}

+

{{EmbedLiveSample("Указание_режима_ввода", 600, 40)}}

Настройка длины пароля

@@ -121,7 +121,7 @@ translation_of: Web/HTML/Element/input/password <input id="pin" type="password" inputmode="numeric" minlength="4" maxlength="8" size="8"> -

{{EmbedLiveSample("Setting_length_requirements", 600, 40)}}

+

{{EmbedLiveSample("Настройка_длины_пароля", 600, 40)}}

Выделение текста

@@ -142,7 +142,7 @@ translation_of: Web/HTML/Element/input/password

Результат

-

{{EmbedLiveSample("Selecting_text", 600, 40)}}

+

{{EmbedLiveSample("Выделение_текста", 600, 40)}}

Вы также можете использовать {{domxref("HTMLInputElement.selectionStart", "selectionStart")}} и {{domxref("HTMLInputElement.selectionEnd", "selectionEnd")}}, чтобы получить (или установить), какой диапазон символов в элементе управления, и {{domxref("HTMLInputElement.selectionDirection", "selectionDirection")}}, чтобы узнать, какой выбор направления произошёл (или будет расширен в зависимости от вашей платформы, см. его документацию для объяснения) , Однако, учитывая, что текст затенён, их полезность несколько ограничена.

@@ -158,7 +158,7 @@ translation_of: Web/HTML/Element/input/password title="Enter an ID consisting of 4-8 hexadecimal digits"> -

{{EmbedLiveSample("Validation_sample1", 600, 40)}}

+

{{EmbedLiveSample("Валидация", 600, 40)}}

{{htmlattrdef("disabled")}}
@@ -198,7 +198,7 @@ ssn.oninput = function(event) {

Результат

-

{{EmbedLiveSample("Requesting_a_Social_Security_number", 600, 60)}}

+

{{EmbedLiveSample("Запрос_номера_социального_страхования", 600, 60)}}

Спецификация

-- cgit v1.2.3-54-g00ecf