aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/response
diff options
context:
space:
mode:
authorAlexey Pyltsyn <lex61rus@gmail.com>2021-10-27 02:31:24 +0300
committerGitHub <noreply@github.com>2021-10-27 02:31:24 +0300
commit980fe00a74a9ad013b945755415ace2e5429c3c2 (patch)
treea1c6bb4b302e69bfa53eab13e44500eba55d1696 /files/ru/web/api/response
parent374a039b97a11ee7306539d16aaab27fed66b398 (diff)
downloadtranslated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.tar.gz
translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.tar.bz2
translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.zip
[RU] Remove notranslate (#2874)
Diffstat (limited to 'files/ru/web/api/response')
-rw-r--r--files/ru/web/api/response/index.html6
-rw-r--r--files/ru/web/api/response/response/index.html4
2 files changed, 5 insertions, 5 deletions
diff --git a/files/ru/web/api/response/index.html b/files/ru/web/api/response/index.html
index e32d4d23b9..969c6d288f 100644
--- a/files/ru/web/api/response/index.html
+++ b/files/ru/web/api/response/index.html
@@ -93,7 +93,7 @@ translation_of: Web/API/Response
<p>You'll notice that since we are requesting an image, we need to run {{domxref("Body.blob")}} ({{domxref("Response")}} implements Body) to give the response its correct MIME type.</p>
-<pre class="brush: js notranslate">const image = document.querySelector('.my-image');
+<pre class="brush: js">const image = document.querySelector('.my-image');
fetch('flowers.jpg').then(function(response) {
return response.blob();
}).then(function(blob) {
@@ -103,13 +103,13 @@ fetch('flowers.jpg').then(function(response) {
<p>You can also use the {{domxref("Response.Response()")}} constructor to create your own custom <code>Response</code> object:</p>
-<pre class="brush: js notranslate">const response = new Response();</pre>
+<pre class="brush: js">const response = new Response();</pre>
<h3 id="Ajax_запрос">Ajax запрос</h3>
<p>Здесь мы с помощью функции doAjax вызываем PHP скрипт, который генерирует JSON строку, и возвращает распарсенный JSON в виде JavaScript объекта. Также реализована простая обработка ошибок.</p>
-<pre class="brush: js notranslate">// Функция, которая делает Ajax запрос
+<pre class="brush: js">// Функция, которая делает Ajax запрос
const doAjax = async () =&gt; {
const response = await fetch('Ajax.php'); // Генерируем объект Response
if (response.ok) {
diff --git a/files/ru/web/api/response/response/index.html b/files/ru/web/api/response/response/index.html
index 033d5fd08b..4f5c98692b 100644
--- a/files/ru/web/api/response/response/index.html
+++ b/files/ru/web/api/response/response/index.html
@@ -15,7 +15,7 @@ translation_of: Web/API/Response/Response
<h2 id="Синтаксис">Синтаксис</h2>
-<pre class="syntaxbox notranslate">var <var>myResponse</var> = new Response(<var>body</var>, <var>init</var>);</pre>
+<pre class="syntaxbox">var <var>myResponse</var> = new Response(<var>body</var>, <var>init</var>);</pre>
<h3 id="Параметры">Параметры</h3>
@@ -45,7 +45,7 @@ translation_of: Web/API/Response/Response
<p>In our <a href="https://github.com/mdn/fetch-examples/tree/master/fetch-response">Fetch Response example</a> (see <a href="http://mdn.github.io/fetch-examples/fetch-response/">Fetch Response live</a>) we create a new <code>Response</code> object using the constructor, passing it a new {{domxref("Blob")}} as a body, and an init object containing a custom <code>status</code> and <code>statusText</code>:</p>
-<pre class="brush: js notranslate">var myBlob = new Blob();
+<pre class="brush: js">var myBlob = new Blob();
var init = { "status" : 200 , "statusText" : "SuperSmashingGreat!" };
var myResponse = new Response(myBlob,init);</pre>