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/web/api/window/beforeunload_event/index.html | 2 +- files/ru/web/api/window/cancelanimationframe/index.html | 4 ++-- files/ru/web/api/window/ongamepadconnected/index.html | 4 ++-- files/ru/web/api/window/ongamepaddisconnected/index.html | 4 ++-- files/ru/web/api/window/requestanimationframe/index.html | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'files/ru/web/api/window') diff --git a/files/ru/web/api/window/beforeunload_event/index.html b/files/ru/web/api/window/beforeunload_event/index.html index 2c5bc0a27d..74c2ec65e6 100644 --- a/files/ru/web/api/window/beforeunload_event/index.html +++ b/files/ru/web/api/window/beforeunload_event/index.html @@ -51,7 +51,7 @@ translation_of: Web/API/Window/beforeunload_event

В HTML-спецификации указано, что авторы должны использовать метод {{domxref("Event.preventDefault()")}}, а не {{domxref("Event.returnValue")}}. Однако, это поддерживается не всеми браузерами.

-
window.addEventListener('beforeunload', (event) => {
+
window.addEventListener('beforeunload', (event) => {
   // Отмените событие, как указано в стандарте.
   event.preventDefault();
   // Chrome требует установки возвратного значения.
diff --git a/files/ru/web/api/window/cancelanimationframe/index.html b/files/ru/web/api/window/cancelanimationframe/index.html
index 897d147ae0..9f02501a9a 100644
--- a/files/ru/web/api/window/cancelanimationframe/index.html
+++ b/files/ru/web/api/window/cancelanimationframe/index.html
@@ -9,7 +9,7 @@ translation_of: Web/API/Window/cancelAnimationFrame
 
 

Синтаксис

-
window.cancelAnimationFrame(requestID);
+
window.cancelAnimationFrame(requestID);
 

Параметры

@@ -21,7 +21,7 @@ translation_of: Web/API/Window/cancelAnimationFrame

Примеры

-
var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
+
var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
                             window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
 
 var cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame;
diff --git a/files/ru/web/api/window/ongamepadconnected/index.html b/files/ru/web/api/window/ongamepadconnected/index.html
index db5f8eecd4..5d7c5a5a2c 100644
--- a/files/ru/web/api/window/ongamepadconnected/index.html
+++ b/files/ru/web/api/window/ongamepadconnected/index.html
@@ -11,12 +11,12 @@ translation_of: Web/API/Window/ongamepadconnected
 
 

Синтаксис

-
window.ongamepadconnected = function() { ... };
+
window.ongamepadconnected = function() { ... };
 

Пример

-
window.ongamepadconnected = function(event) {
+
window.ongamepadconnected = function(event) {
   // All buttons and axes values can be accessed through
   event.gamepad;
 };
diff --git a/files/ru/web/api/window/ongamepaddisconnected/index.html b/files/ru/web/api/window/ongamepaddisconnected/index.html index 2769b29f4c..acff189b81 100644 --- a/files/ru/web/api/window/ongamepaddisconnected/index.html +++ b/files/ru/web/api/window/ongamepaddisconnected/index.html @@ -11,12 +11,12 @@ translation_of: Web/API/Window/ongamepaddisconnected

Синтаксис

-
window.ongamepaddisconnected = function() { ... };
+
window.ongamepaddisconnected = function() { ... };
 

Пример

-
window.ongamepaddisconnected = function() {
+
window.ongamepaddisconnected = function() {
   // A gamepad has been disconnected
 };
diff --git a/files/ru/web/api/window/requestanimationframe/index.html b/files/ru/web/api/window/requestanimationframe/index.html index 7649842dc6..8f2a58bfae 100644 --- a/files/ru/web/api/window/requestanimationframe/index.html +++ b/files/ru/web/api/window/requestanimationframe/index.html @@ -18,7 +18,7 @@ original_slug: DOM/window.requestAnimationFrame

Синтаксис

-
window.requestAnimationFrame(callback);
+
window.requestAnimationFrame(callback);

Параметры

@@ -35,7 +35,7 @@ original_slug: DOM/window.requestAnimationFrame

Пример

-
var start = null;
+
var start = null;
 var element = document.getElementById('SomeElementYouWantToAnimate');
 
 function step(timestamp) {
-- 
cgit v1.2.3-54-g00ecf