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/learn/css/first_steps/how_css_works/index.html | 2 +- files/ru/learn/forms/how_to_structure_a_web_form/index.html | 2 +- files/ru/learn/forms/sending_forms_through_javascript/index.html | 2 +- files/ru/learn/javascript/asynchronous/introducing/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/ru/learn') diff --git a/files/ru/learn/css/first_steps/how_css_works/index.html b/files/ru/learn/css/first_steps/how_css_works/index.html index f972f1a700..b5d03c7cea 100644 --- a/files/ru/learn/css/first_steps/how_css_works/index.html +++ b/files/ru/learn/css/first_steps/how_css_works/index.html @@ -109,7 +109,7 @@ translation_of: Learn/CSS/First_steps/How_CSS_works

Новый результат:

-

{{EmbedLiveSample('Applying_CSS_to_the_DOM', '100%', 55)}}

+

{{EmbedLiveSample('Добавление_CSS_в_DOM', '100%', 55)}}

В статье Отладка CSS мы будем использовать браузер DevTools для отладки CSS.

diff --git a/files/ru/learn/forms/how_to_structure_a_web_form/index.html b/files/ru/learn/forms/how_to_structure_a_web_form/index.html index 9cad80d3f5..35b2bcd2c4 100644 --- a/files/ru/learn/forms/how_to_structure_a_web_form/index.html +++ b/files/ru/learn/forms/how_to_structure_a_web_form/index.html @@ -149,7 +149,7 @@ original_slug: Learn/HTML/Forms/How_to_structure_an_HTML_form <input id="username" type="text" name="username"> </div> -

{{EmbedLiveSample("Multiple_labels", 120, 120)}}

+

{{EmbedLiveSample("Несколько_лейблов", 120, 120)}}

Параграф на первой строке примера описывает правило для обязательных элементов. Вначале необходимо убедиться, что вспомогательные технологии, такие как программы чтения с экрана, отображают или озвучивают их пользователю, прежде чем он найдёт требуемый элемент. Таким образом они будут знать, что означает звёздочка. Программа чтения с экрана будет произносить звёздочку как «звёздочку» или «обязательно», в зависимости от настроек программы чтения с экрана — в любом случае, первый абзац даёт понимание того, что будет означать звёздочка далее в форме.

diff --git a/files/ru/learn/forms/sending_forms_through_javascript/index.html b/files/ru/learn/forms/sending_forms_through_javascript/index.html index de31f823d8..fb58b4f06f 100644 --- a/files/ru/learn/forms/sending_forms_through_javascript/index.html +++ b/files/ru/learn/forms/sending_forms_through_javascript/index.html @@ -103,7 +103,7 @@ btn.addEventListener( 'click', function() {

Это результат:

-

{{EmbedLiveSample("Building_an_XMLHttpRequest_manually", "100%", 50)}}

+

{{EmbedLiveSample("Создание_XMLHttpRequest_вручную", "100%", 50)}}

Note: This use of {{domxref("XMLHttpRequest")}} is subject to the {{glossary('same-origin policy')}} if you want to send data to a third party web site. For cross-origin requests, you'll need CORS and HTTP access control.

diff --git a/files/ru/learn/javascript/asynchronous/introducing/index.html b/files/ru/learn/javascript/asynchronous/introducing/index.html index 9be0564c1d..2d457b6888 100644 --- a/files/ru/learn/javascript/asynchronous/introducing/index.html +++ b/files/ru/learn/javascript/asynchronous/introducing/index.html @@ -68,7 +68,7 @@ btn.addEventListener('click', () => {
<button>Нажми меня</button>
-

{{EmbedLiveSample('Synchronous_JavaScript', '100%', '70px')}}

+

{{EmbedLiveSample('Синхронный_JavaScript', '100%', '70px')}}

Примечание: Важно помнить, что alert(), хоть и часто используется для демонстрации синхронных блокирующих операций, сильно не рекомендован к использованию в реальных приложениях.

-- cgit v1.2.3-54-g00ecf