diff options
author | Peter Bengtsson <mail@peterbe.com> | 2021-02-25 08:31:36 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2021-02-25 08:31:36 -0500 |
commit | 97065b2e68dd8768dc1ea092c893c57ebe205026 (patch) | |
tree | 11bf4a1114c543989c24c7a801ba379b2c20a30c /files/ru/web/javascript/reference/global_objects | |
parent | d1794f6b276285489b417053507f432a14be31df (diff) | |
download | translated-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')
-rw-r--r-- | files/ru/web/javascript/reference/global_objects/promise/index.html | 6 |
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) => { @@ -151,7 +151,7 @@ myFirstPromise.then((successMessage) => { <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); } |