aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/javascript/reference/global_objects/promise
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-02-25 08:31:36 -0500
committerPeter Bengtsson <mail@peterbe.com>2021-02-25 08:31:36 -0500
commit97065b2e68dd8768dc1ea092c893c57ebe205026 (patch)
tree11bf4a1114c543989c24c7a801ba379b2c20a30c /files/ru/web/javascript/reference/global_objects/promise
parentd1794f6b276285489b417053507f432a14be31df (diff)
downloadtranslated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.tar.gz
translated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.tar.bz2
translated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.zip
use class="hidden" not style="display:none"
Diffstat (limited to 'files/ru/web/javascript/reference/global_objects/promise')
-rw-r--r--files/ru/web/javascript/reference/global_objects/promise/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/promise/index.html b/files/ru/web/javascript/reference/global_objects/promise/index.html
index c4577ab151..0c730018b3 100644
--- a/files/ru/web/javascript/reference/global_objects/promise/index.html
+++ b/files/ru/web/javascript/reference/global_objects/promise/index.html
@@ -131,7 +131,7 @@ new Promise(function(resolve, reject) { ... });</pre>
<h3 id="Простой_пример">Простой пример</h3>
-<pre class="brush: html" style="display: none;">Создать промис!
+<pre class="brush: html" class="hidden">Создать промис!
</pre>
<pre class="brush: js">let myFirstPromise = new Promise((resolve, reject) =&gt; {
@@ -151,7 +151,7 @@ myFirstPromise.then((successMessage) =&gt; {
<h3 id="Продвинутый_пример">Продвинутый пример</h3>
-<pre class="brush: html" style="display: none;">Создать промис!
+<pre class="brush: html" class="hidden">Создать промис!
</pre>
<div id="log">
@@ -203,7 +203,7 @@ function testPromise() {
}
</pre>
-<pre class="brush:js" style="display: none;">if ("Promise" in window) {
+<pre class="brush:js" class="hidden">if ("Promise" in window) {
btn = document.getElementById("btn");
btn.addEventListener("click",testPromise);
}