aboutsummaryrefslogtreecommitdiff
path: root/files/ru/learn/forms/sending_forms_through_javascript
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/learn/forms/sending_forms_through_javascript
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/learn/forms/sending_forms_through_javascript')
-rw-r--r--files/ru/learn/forms/sending_forms_through_javascript/index.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/files/ru/learn/forms/sending_forms_through_javascript/index.html b/files/ru/learn/forms/sending_forms_through_javascript/index.html
index fb58b4f06f..ecea212980 100644
--- a/files/ru/learn/forms/sending_forms_through_javascript/index.html
+++ b/files/ru/learn/forms/sending_forms_through_javascript/index.html
@@ -52,11 +52,11 @@ original_slug: Learn/HTML/Forms/Sending_forms_through_JavaScript
<p>Посмотрите на пример:</p>
-<pre class="brush: html notranslate">&lt;button&gt;Click Me!&lt;/button&gt;</pre>
+<pre class="brush: html">&lt;button&gt;Click Me!&lt;/button&gt;</pre>
<p>И на JavaScript:</p>
-<pre class="brush: js notranslate">const btn = document.querySelector('button');
+<pre class="brush: js">const btn = document.querySelector('button');
function sendData( data ) {
console.log( 'Sending data' );
@@ -119,11 +119,11 @@ btn.addEventListener( 'click', function() {
<h4 id="Using_a_standalone_FormData_object">Using a standalone FormData object</h4>
-<pre class="brush: html notranslate">&lt;button&gt;Click Me!&lt;/button&gt;</pre>
+<pre class="brush: html">&lt;button&gt;Click Me!&lt;/button&gt;</pre>
<p>You should be familiar with that HTML sample. Now for the JavaScript:</p>
-<pre class="brush: js notranslate">const btn = document.querySelector('button');
+<pre class="brush: js">const btn = document.querySelector('button');
function sendData( data ) {
const XHR = new XMLHttpRequest(),
@@ -165,7 +165,7 @@ btn.addEventListener( 'click', function()
<p>The HTML is typical:</p>
-<pre class="brush: html notranslate">&lt;form id="myForm"&gt;
+<pre class="brush: html">&lt;form id="myForm"&gt;
&lt;label for="myName"&gt;Send me your name:&lt;/label&gt;
&lt;input id="myName" name="name" value="John"&gt;
&lt;input type="submit" value="Send Me!"&gt;
@@ -173,7 +173,7 @@ btn.addEventListener( 'click', function()
<p>But JavaScript takes over the form:</p>
-<pre class="brush: js notranslate">window.addEventListener( "load", function () {
+<pre class="brush: js">window.addEventListener( "load", function () {
function sendData() {
const XHR = new XMLHttpRequest();
@@ -224,7 +224,7 @@ btn.addEventListener( 'click', function()
<p>In the following example, we use the {{domxref("FileReader")}} API to access binary data and then build the multi-part form data request by hand:</p>
-<pre class="brush: html notranslate">&lt;form id="theForm"&gt;
+<pre class="brush: html">&lt;form id="theForm"&gt;
&lt;p&gt;
&lt;label for="theText"&gt;text data:&lt;/label&gt;
&lt;input id="theText" name="myText" value="Some text data" type="text"&gt;
@@ -238,7 +238,7 @@ btn.addEventListener( 'click', function()
<p>As you see, the HTML is a standard <code>&lt;form&gt;</code>. There's nothing magical going on. The "magic" is in the JavaScript:</p>
-<pre class="brush: js notranslate">// Because we want to access DOM nodes,
+<pre class="brush: js">// Because we want to access DOM nodes,
// we initialize our script at page load.
window.addEventListener( 'load', function () {