From 980fe00a74a9ad013b945755415ace2e5429c3c2 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Wed, 27 Oct 2021 02:31:24 +0300 Subject: [RU] Remove notranslate (#2874) --- files/ru/tools/web_console/index.html | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'files/ru/tools') diff --git a/files/ru/tools/web_console/index.html b/files/ru/tools/web_console/index.html index a40b8982ae..f0d7363d14 100644 --- a/files/ru/tools/web_console/index.html +++ b/files/ru/tools/web_console/index.html @@ -196,7 +196,7 @@ translation_of: Tools/Web_Console

Тем не менее, если какой-то JavaScript-код читает что стиль был изменён, то браузер должен выполнить синхронное переформатирование в порядке вычисленным расчётом стиля чтобы вернуться. Например, код как этот хочет  вызвать немедленное, синхронное, переформатирование, когда вызовет window.getComputedStyle(thing).height:

-
var thing = document.getElementById("the-thing");
+
var thing = document.getElementById("the-thing");
 thing.style.display = "inline-block";
 var thingHeight = window.getComputedStyle(thing).height;
@@ -301,12 +301,12 @@ var thingHeight = window.getComputedStyle(thing).height;

The argument to error().

-
+    
 console.error("an error");

The console will display a full stack trace for errors:

-
+    
 function error() {
   console.error("an error");
 }
@@ -329,12 +329,12 @@ call_error();

If the assertion succeeds, nothing. If the assertion fails, the argument:

-
+    
 console.assert(false, "My assertion always fails");

The console will display a full stack trace for assertions:

-
+    
 function assertion() {
   console.assert(false, "assertion failed");
 }
@@ -366,7 +366,7 @@ call_assertion();

The argument to warn().

-
+    
 console.warn("a warning");
@@ -388,7 +388,7 @@ console.warn("a warning");

The argument to info().

-
+    
 console.info("some info");
@@ -410,7 +410,7 @@ console.info("some info");

The label supplied, if any, and the number of times this occurrence of count() has been called with the given label:

-
+    
 console.count(user.value);

@@ -421,7 +421,7 @@ console.count(user.value);

Listing of the object's properties:

-
+    
 var user = document.getElementById('user');
 console.dir(user);
@@ -435,7 +435,7 @@ console.dir(user);

The argument to log().

-
+    
 console.log("logged");
@@ -456,7 +456,7 @@ console.log("logged");

Notification that the specified timer started.

-
+    
 console.time("t");
@@ -465,7 +465,7 @@ console.time("t");

Duration for the specified timer.

-
+    
 console.timeEnd("t");
@@ -474,7 +474,7 @@ console.timeEnd("t");

Stack trace:

-
+    
 console.trace();
@@ -489,7 +489,7 @@ console.trace();

Начиная с Firefox 31, вы можете использовать спецификатор формата "%c" для стилизации консольных сообщений:

-
console.log("%cMy stylish message", "color: red; font-style: italic");
+
console.log("%cMy stylish message", "color: red; font-style: italic");
@@ -572,26 +572,26 @@ console.trace();

Вы можете передать DOM-элемент для определённого iframe :

-
var frame = document.getElementById("frame1");
+
var frame = document.getElementById("frame1");
 cd(frame);

Вы можете передать CSS селектор для определённого iframe:

-
cd("#frame1");
+
cd("#frame1");

Вы можете передать глобальный объект Window для определённого iframe:

-
var frame = document.getElementById("frame1");
+
var frame = document.getElementById("frame1");
 cd(frame.contentWindow);
 

Для переключения контекста видимости обратно к окну верхнего уровня, введите cd() без аргументов:

-
cd();
+
cd();

Предположим у нас есть документ, который содержит iframe:

-
<!DOCTYPE html>
+
<!DOCTYPE html>
 <html>
   <head>
     <meta charset="UTF-8">
@@ -603,7 +603,7 @@ cd(frame.contentWindow);
 
 

В этом iframe определена новая функция:

-
<!DOCTYPE html>
+
<!DOCTYPE html>
 <html>
   <head>
     <meta charset="UTF-8">
@@ -619,7 +619,7 @@ cd(frame.contentWindow);
 
 

Вы можете переключиться на контекст iframe например так:

-
cd("#frame1");
+
cd("#frame1");

Сейчас вы сможете видеть, что глобальный объект Window это теперь наш iframe:

-- cgit v1.2.3-54-g00ecf