diff options
author | Alexey Pyltsyn <lex61rus@gmail.com> | 2021-10-27 02:31:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 02:31:24 +0300 |
commit | 980fe00a74a9ad013b945755415ace2e5429c3c2 (patch) | |
tree | a1c6bb4b302e69bfa53eab13e44500eba55d1696 /files/ru/web/api/window | |
parent | 374a039b97a11ee7306539d16aaab27fed66b398 (diff) | |
download | translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.tar.gz translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.tar.bz2 translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.zip |
[RU] Remove notranslate (#2874)
Diffstat (limited to 'files/ru/web/api/window')
5 files changed, 9 insertions, 9 deletions
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 <p>В HTML-спецификации указано, что авторы должны использовать метод {{domxref("Event.preventDefault()")}}, а не {{domxref("Event.returnValue")}}. Однако, это поддерживается не всеми браузерами.</p> -<pre class="brush: js notranslate">window.addEventListener('beforeunload', (event) => { +<pre class="brush: js">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 <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate">window.cancelAnimationFrame(<em>requestID</em>); +<pre class="syntaxbox">window.cancelAnimationFrame(<em>requestID</em>); </pre> <h3 id="Параметры">Параметры</h3> @@ -21,7 +21,7 @@ translation_of: Web/API/Window/cancelAnimationFrame <h2 id="Примеры">Примеры</h2> -<pre class="brush: js notranslate">var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || +<pre class="brush: js">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 <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate">window.ongamepadconnected = function() { ... }; +<pre class="syntaxbox">window.ongamepadconnected = function() { ... }; </pre> <h2 id="Пример">Пример</h2> -<pre class="brush:js; line-numbers language-js notranslate"><code class="language-js">window<span class="punctuation token">.</span><span class="punctuation token">on</span><span class="string token">gamepadconnected =</span> <span class="keyword token">function</span><span class="punctuation token">(</span>event<span class="punctuation token">)</span> <span class="punctuation token">{</span> +<pre class="brush:js; line-numbers language-js"><code class="language-js">window<span class="punctuation token">.</span><span class="punctuation token">on</span><span class="string token">gamepadconnected =</span> <span class="keyword token">function</span><span class="punctuation token">(</span>event<span class="punctuation token">)</span> <span class="punctuation token">{</span> <span class="comment token">// All buttons and axes values can be accessed through</span> event<span class="punctuation token">.</span>gamepad<span class="punctuation token">;</span> <span class="punctuation token">}</span><span class="punctuation token">;</span></code></pre> 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 <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate">window.ongamepaddisconnected = function() { ... }; +<pre class="syntaxbox">window.ongamepaddisconnected = function() { ... }; </pre> <h2 id="Пример">Пример</h2> -<pre class="brush:js; line-numbers language-js notranslate"><code class="language-js">window<span class="punctuation token">.</span><span class="punctuation token">on</span><span class="string token">gamepaddisconnected =</span> <span class="keyword token">function</span><span class="punctuation token">(</span><span class="punctuation token">)</span> <span class="punctuation token">{</span> +<pre class="brush:js; line-numbers language-js"><code class="language-js">window<span class="punctuation token">.</span><span class="punctuation token">on</span><span class="string token">gamepaddisconnected =</span> <span class="keyword token">function</span><span class="punctuation token">(</span><span class="punctuation token">)</span> <span class="punctuation token">{</span> <span class="comment token">// A gamepad has been disconnected</span> <span class="punctuation token">}</span><span class="punctuation token">;</span></code></pre> 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 <h2 id="Syntax">Синтаксис</h2> -<pre class="brush: js notranslate">window.requestAnimationFrame(callback);</pre> +<pre class="brush: js">window.requestAnimationFrame(callback);</pre> <h3 id="Parameters">Параметры</h3> @@ -35,7 +35,7 @@ original_slug: DOM/window.requestAnimationFrame <h2 id="Notes">Пример</h2> -<pre class="brush: js notranslate">var start = null; +<pre class="brush: js">var start = null; var element = document.getElementById('SomeElementYouWantToAnimate'); function step(timestamp) { |