aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/response/index.html
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/index.html
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/index.html')
-rw-r--r--files/ru/web/api/response/index.html6
1 files changed, 3 insertions, 3 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) {