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/bdo/index.html | 2 +- files/ru/web/html/element/caption/index.html | 2 +- files/ru/web/html/element/details/index.html | 2 +- files/ru/web/html/element/input/button/index.html | 2 +- files/ru/web/html/element/input/color/index.html | 4 ++-- files/ru/web/html/element/input/password/index.html | 14 +++++++------- files/ru/web/html/element/input/radio/index.html | 2 +- files/ru/web/html/element/input/range/index.html | 8 ++++++-- files/ru/web/html/element/meter/index.html | 4 ++-- files/ru/web/html/element/ol/index.html | 10 +++++----- files/ru/web/html/element/summary/index.html | 2 +- files/ru/web/html/element/ul/index.html | 6 +++--- files/ru/web/html/element/wbr/index.html | 2 +- 13 files changed, 32 insertions(+), 28 deletions(-) (limited to 'files/ru/web/html/element') diff --git a/files/ru/web/html/element/bdo/index.html b/files/ru/web/html/element/bdo/index.html index dc7c1201e4..7ce79f29e6 100644 --- a/files/ru/web/html/element/bdo/index.html +++ b/files/ru/web/html/element/bdo/index.html @@ -68,7 +68,7 @@ to left.</bdo></p>

Результат

-

{{EmbedLiveSample('Examples')}}

+

{{EmbedLiveSample('Примеры')}}

Примечания

diff --git a/files/ru/web/html/element/caption/index.html b/files/ru/web/html/element/caption/index.html index d2aafc32d2..edf73dffc6 100644 --- a/files/ru/web/html/element/caption/index.html +++ b/files/ru/web/html/element/caption/index.html @@ -105,7 +105,7 @@ table, th, td { -

{{EmbedLiveSample('Example', 650, 100)}}

+

{{EmbedLiveSample('Пример', 650, 100)}}

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

diff --git a/files/ru/web/html/element/details/index.html b/files/ru/web/html/element/details/index.html index 702c4521ab..be9418435d 100644 --- a/files/ru/web/html/element/details/index.html +++ b/files/ru/web/html/element/details/index.html @@ -73,7 +73,7 @@ translation_of: Web/HTML/Element/details

Result

-

{{EmbedLiveSample("Example")}}

+

{{EmbedLiveSample("Пример")}}

Примечание: Если приведённый выше пример не работает, см. {{anch("Browser compatibility")}} , чтобы определить поддерживает ли вообще ваш браузер эту функцию. 

diff --git a/files/ru/web/html/element/input/button/index.html b/files/ru/web/html/element/input/button/index.html index e477bc0d1b..e77dc4cb51 100644 --- a/files/ru/web/html/element/input/button/index.html +++ b/files/ru/web/html/element/input/button/index.html @@ -125,7 +125,7 @@ function updateButton() { }
-

{{EmbedLiveSample("Adding_keyboard_shortcuts_to_buttons", 650, 100)}}

+

{{EmbedLiveSample("Добавление_сочетаний_клавиш_на_кнопки", 650, 100)}}

Note: The problem with the above example of course is that the user will not know what the access key is! In a real site, you'd have to provide this information in a way that doesn't intefere with the site design (for example by providing an easily accessible link that points to information on what the site accesskeys are).

diff --git a/files/ru/web/html/element/input/color/index.html b/files/ru/web/html/element/input/color/index.html index bd76a615fd..c759902cc8 100644 --- a/files/ru/web/html/element/input/color/index.html +++ b/files/ru/web/html/element/input/color/index.html @@ -67,7 +67,7 @@ translation_of: Web/HTML/Element/input/color
<input type="color" value="#ff0000">
-

{{EmbedLiveSample("Providing_a_default_color", 700, 30)}}

+

{{EmbedLiveSample("Предоставление_цвета_по_умолчанию", 700, 30)}}

Если вы не зададите значение, то по умолчанию будет #000000, то есть чёрный цвет. Значение должно быть в семизначной шестнадцатеричной системе счисления, то есть символ"#", за которым следуют две цифры, каждая из которых представляет красный, зелёный и синий цвета, например: #rrggbb. Если у вас есть цвета в любом другом формате (например, имена цветов CSS или цветовые функции CSS, такие как rgb () или rgba ()), вам придётся преобразовать их в шестнадцатеричные перед установкой значения.

@@ -182,7 +182,7 @@ window.addEventListener("load", startup, false);

Финальный результат выглядит так:

-

{{EmbedLiveSample("Example", 700, 200)}}

+

{{EmbedLiveSample("Пример", 700, 200)}}

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

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)}}

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

diff --git a/files/ru/web/html/element/input/radio/index.html b/files/ru/web/html/element/input/radio/index.html index 9138b39301..92ec2af0cd 100644 --- a/files/ru/web/html/element/input/radio/index.html +++ b/files/ru/web/html/element/input/radio/index.html @@ -151,7 +151,7 @@ form.addEventListener("submit", function(event) {

Опробуйте этот пример и убедитесь, что для группы радиокнопок  "contact"  будет только один результат.

-

{{EmbedLiveSample("Data_representation_of_a_radio_group", 600, 130)}}

+

{{EmbedLiveSample("Представление_данных_группы_радиокнопок", 600, 130)}}

Использование радиокнопок

diff --git a/files/ru/web/html/element/input/range/index.html b/files/ru/web/html/element/input/range/index.html index 8fc4558932..14f921c912 100644 --- a/files/ru/web/html/element/input/range/index.html +++ b/files/ru/web/html/element/input/range/index.html @@ -161,7 +161,7 @@ translation_of: Web/HTML/Element/input/range
<input type="range" min="-10" max="10">
-

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

+

{{EmbedLiveSample("Указание_минимума_и_максимума", 600, 40)}}

Настройка детализации значения

@@ -293,9 +293,11 @@ translation_of: Web/HTML/Element/input/range

Рассмотрим контроллер диапазона:

+
<input type="range" id="volume" min="0" max="11" value="7" step="1">

{{EmbedLiveSample("Orientation_sample1", 200, 200, "https://mdn.mozillademos.org/files/14983/Orientation_sample1.png")}}

+

Это горизонтальный контроллер (по крайне мере на большинстве основных браузеров, другие могут отличаться).

@@ -303,6 +305,7 @@ translation_of: Web/HTML/Element/input/range

Следуя спецификации, сделать его вертикальным также просто как добавить CSS, чтобы изменить размеры контроллера, чтобы его высота оказалась больше ширины:

+

CSS

#volume {
@@ -317,6 +320,7 @@ translation_of: Web/HTML/Element/input/range
 

Результат

{{EmbedLiveSample("Orientation_sample2", 200, 200, "https://mdn.mozillademos.org/files/14985/Orientation_sample2.png")}}

+

К сожалению, большинство браузеров сейчас не поддерживают вертикальные контроллы напрямую.

@@ -434,7 +438,7 @@ translation_of: Web/HTML/Element/input/range -webkit-appearance: slider-vertical; } -

{{EmbedLiveSample("Putting_it_all_together", 200, 200)}}

+

{{EmbedLiveSample("Все_вместе", 200, 200)}}

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

diff --git a/files/ru/web/html/element/meter/index.html b/files/ru/web/html/element/meter/index.html index 8f4bb987de..6cff738e05 100644 --- a/files/ru/web/html/element/meter/index.html +++ b/files/ru/web/html/element/meter/index.html @@ -78,7 +78,7 @@ translation_of: Web/HTML/Element/meter

Output

-

{{EmbedLiveSample("Simple_example", 300, 60)}}

+

{{EmbedLiveSample("Простой_пример", 300, 60)}}

В Google Chrome, результат будет выглядеть так:

@@ -96,7 +96,7 @@ translation_of: Web/HTML/Element/meter

Output

-

{{EmbedLiveSample("High_and_Low_range_example", 300, 60)}}

+

{{EmbedLiveSample("Пример_с_High_и_Low_диапазоном", 300, 60)}}

В Google Chrome, результат будет выглядеть так:

diff --git a/files/ru/web/html/element/ol/index.html b/files/ru/web/html/element/ol/index.html index 0dd6ac43c4..0c34ed110b 100644 --- a/files/ru/web/html/element/ol/index.html +++ b/files/ru/web/html/element/ol/index.html @@ -101,7 +101,7 @@ translation_of: Web/HTML/Element/ol

Результат HTML кода выше:

-

{{EmbedLiveSample("Simple_example", 400, 100)}}

+

{{EmbedLiveSample("Обычный_список", 400, 100)}}

Список с Римскими числами

@@ -113,7 +113,7 @@ translation_of: Web/HTML/Element/ol

Результат HTML кода выше:

-

{{EmbedLiveSample("Using_Roman_Numeral_type", 400, 100)}}

+

{{EmbedLiveSample("Список_с_Римскими_числами", 400, 100)}}

Используя свойство start

@@ -128,7 +128,7 @@ translation_of: Web/HTML/Element/ol

Результат HTML кода выше:

-

{{EmbedLiveSample("Using_the_start_attribute", 400, 100)}}

+

{{EmbedLiveSample("Используя_свойство_start", 400, 100)}}

Вложенный список

@@ -147,7 +147,7 @@ translation_of: Web/HTML/Element/ol

Результат HTML кода выше:

-

{{EmbedLiveSample("Nesting_lists", 400, 150)}}

+

{{EmbedLiveSample("Вложенный_список", 400, 150)}}

Неупорядоченный список внутри упорядоченного списка

@@ -166,7 +166,7 @@ translation_of: Web/HTML/Element/ol

Результат HTML кода выше:

-

{{EmbedLiveSample("Unordered_list_inside_ordered_list", 400, 150)}}

+

{{EmbedLiveSample("Неупорядоченный_список_внутри_упорядоченного_списка", 400, 150)}}

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

diff --git a/files/ru/web/html/element/summary/index.html b/files/ru/web/html/element/summary/index.html index 44df57ef35..41644f5508 100644 --- a/files/ru/web/html/element/summary/index.html +++ b/files/ru/web/html/element/summary/index.html @@ -75,7 +75,7 @@ translation_of: Web/HTML/Element/summary </ol> </details> -

{{EmbedLiveSample("Basic_example", 650, 120)}}

+

{{EmbedLiveSample("Простой_пример", 650, 120)}}

Summaries as headings

diff --git a/files/ru/web/html/element/ul/index.html b/files/ru/web/html/element/ul/index.html index ad10e21735..d7ecc4048e 100644 --- a/files/ru/web/html/element/ul/index.html +++ b/files/ru/web/html/element/ul/index.html @@ -90,7 +90,7 @@ translation_of: Web/HTML/Element/ul

Результат HTML кода выше:

-

{{EmbedLiveSample("Simple_example", 400, 100)}}

+

{{EmbedLiveSample("Простой_список", 400, 100)}}

Вложенный список

@@ -118,7 +118,7 @@ translation_of: Web/HTML/Element/ul

Результат HTML кода выше:

-

{{EmbedLiveSample("Nesting_a_list", 400, 220)}}

+

{{EmbedLiveSample("Вложенный_список", 400, 220)}}

Упорядоченный список внутри неупорядоченного списка

@@ -139,7 +139,7 @@ translation_of: Web/HTML/Element/ul

Результат HTML кода выше:

-

{{EmbedLiveSample("Ordered_list_inside_unordered_list", 400, 150)}}

+

{{EmbedLiveSample("Упорядоченный_список_внутри_неупорядоченного_списка", 400, 150)}}

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

diff --git a/files/ru/web/html/element/wbr/index.html b/files/ru/web/html/element/wbr/index.html index cc8562358b..850271cf68 100644 --- a/files/ru/web/html/element/wbr/index.html +++ b/files/ru/web/html/element/wbr/index.html @@ -58,7 +58,7 @@ translation_of: Web/HTML/Element/wbr
<p>http://this<wbr>.is<wbr>.a<wbr>.really<wbr>.long<wbr>.example<wbr>.com/With<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages</p> 
-

{{EmbedLiveSample("Example")}}

+

{{EmbedLiveSample("Пример")}}

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

-- cgit v1.2.3-54-g00ecf