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/history | |
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/history')
-rw-r--r-- | files/ru/web/api/history/go/index.html | 12 | ||||
-rw-r--r-- | files/ru/web/api/history/pushstate/index.html | 4 | ||||
-rw-r--r-- | files/ru/web/api/history/replacestate/index.html | 6 | ||||
-rw-r--r-- | files/ru/web/api/history/state/index.html | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/files/ru/web/api/history/go/index.html b/files/ru/web/api/history/go/index.html index 2a64e0eb93..f571cd8cfe 100644 --- a/files/ru/web/api/history/go/index.html +++ b/files/ru/web/api/history/go/index.html @@ -17,7 +17,7 @@ translation_of: Web/API/History/go <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate">history.go([<em>delta</em>])</pre> +<pre class="syntaxbox">history.go([<em>delta</em>])</pre> <h3 id="Параметры">Параметры</h3> @@ -30,23 +30,23 @@ translation_of: Web/API/History/go <p>Перемещение на 1 страницу назад (аналог вызова {{domxref("History.back", "back()")}}):</p> -<pre class="brush: js line-numbers language-js notranslate"><code class="language-js">history<span class="punctuation token">.</span><span class="function token">go</span><span class="punctuation token">(</span><span class="operator token">-</span><span class="number token">1</span><span class="punctuation token">)</span></code></pre> +<pre class="brush: js line-numbers language-js"><code class="language-js">history<span class="punctuation token">.</span><span class="function token">go</span><span class="punctuation token">(</span><span class="operator token">-</span><span class="number token">1</span><span class="punctuation token">)</span></code></pre> <p>Перемещение на страницу вперёд, как {{domxref("History.forward", "forward()")}}:</p> -<pre class="brush: js line-numbers language-js notranslate"><code class="language-js">history<span class="punctuation token">.</span><span class="function token">go</span><span class="punctuation token">(</span><span class="number token">1</span><span class="punctuation token">)</span></code></pre> +<pre class="brush: js line-numbers language-js"><code class="language-js">history<span class="punctuation token">.</span><span class="function token">go</span><span class="punctuation token">(</span><span class="number token">1</span><span class="punctuation token">)</span></code></pre> <p>Перемещение на 2 страницы вперёд:</p> -<pre class="brush: js notranslate">history.go(2);</pre> +<pre class="brush: js">history.go(2);</pre> <p>Перемещение на 2 страницы назад:</p> -<pre class="brush: js notranslate">history.go(-2);</pre> +<pre class="brush: js">history.go(-2);</pre> <p>Также, оба этих вызова перезагрузят страницу:</p> -<pre class="brush: js notranslate">history.go(); +<pre class="brush: js">history.go(); history.go(0);</pre> <h2 id="Спецификации">Спецификации</h2> diff --git a/files/ru/web/api/history/pushstate/index.html b/files/ru/web/api/history/pushstate/index.html index 014e34ae6f..df5d6fc489 100644 --- a/files/ru/web/api/history/pushstate/index.html +++ b/files/ru/web/api/history/pushstate/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/History/pushState <h2 id="Синтаксис">Синтаксис</h2> -<pre class="notranslate">history.pushState(<var>state</var>, <var>title</var>[, <var>url</var>]) +<pre>history.pushState(<var>state</var>, <var>title</var>[, <var>url</var>]) </pre> <h3 id="Параметры">Параметры</h3> @@ -57,7 +57,7 @@ translation_of: Web/API/History/pushState <h3 id="JavaScript">JavaScript</h3> -<pre class="notranslate">const state = { 'page_id': 1, 'user_id': 5 } +<pre>const state = { 'page_id': 1, 'user_id': 5 } const title = '' const url = 'hello-world.html' diff --git a/files/ru/web/api/history/replacestate/index.html b/files/ru/web/api/history/replacestate/index.html index f9d79dd43d..ee54ccefa7 100644 --- a/files/ru/web/api/history/replacestate/index.html +++ b/files/ru/web/api/history/replacestate/index.html @@ -9,7 +9,7 @@ translation_of: Web/API/History/replaceState <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate">history.replaceState(<em>stateObj</em>, <em>title</em>, [<em>url</em>])</pre> +<pre class="syntaxbox">history.replaceState(<em>stateObj</em>, <em>title</em>, [<em>url</em>])</pre> <h3 id="Параметры">Параметры</h3> @@ -26,7 +26,7 @@ translation_of: Web/API/History/replaceState <p>Предположим, на странице <code>http://mozilla.org/foo.html</code> выполняется следующий JavaScript-код:</p> -<pre class="notranslate">let stateObj = { foo: "bar" } +<pre>let stateObj = { foo: "bar" } history.pushState(stateObj, "page 2", "bar.html") </pre> @@ -34,7 +34,7 @@ history.pushState(stateObj, "page 2", "bar.html") <p>Далее, предположим, на странице <code>http://mozilla.org/bar.html</code> выполняется JavaScript-код:</p> -<pre class="notranslate">history.replaceState(stateObj, "page 3", "bar2.html") +<pre>history.replaceState(stateObj, "page 3", "bar2.html") </pre> <p>Это приведёт к тому, что в URL-строке отобразится адрес <code>http://mozilla.org/bar2.html</code>, но браузер не станет сразу загружать <code>bar2.html</code> и даже не станет проверять наличие этой страницы <code>bar2.html</code>.</p> diff --git a/files/ru/web/api/history/state/index.html b/files/ru/web/api/history/state/index.html index 82b65cd3f7..aba004c406 100644 --- a/files/ru/web/api/history/state/index.html +++ b/files/ru/web/api/history/state/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/History/state <h2 id="Синтаксис">Синтаксис</h2> -<pre class="syntaxbox notranslate">const <em>currentState</em> = history.state</pre> +<pre class="syntaxbox">const <em>currentState</em> = history.state</pre> <h3 id="Значение">Значение</h3> @@ -21,7 +21,7 @@ translation_of: Web/API/History/state <p>Код, приведённый ниже, выводит в консоль значение <code>history.state</code> до и после применения метода {{domxref("History.pushState","pushState()")}}, который записывает значение в историю.</p> -<pre class="brush: js notranslate">// Выведет null потому что мы пока не изменяли стек истории +<pre class="brush: js">// Выведет null потому что мы пока не изменяли стек истории console.log(`History.state before pushState: ${history.state}`); // Теперь запишем какое-нибудь значение в стек |