aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/global_objects/promise/index.html
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:06 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commita2960295605a27e084541fc2f93068dd3cad15ba (patch)
treebe397698351c1343ce51d0ad554d0570a80be174 /files/zh-tw/web/javascript/reference/global_objects/promise/index.html
parentc4576ded828eb9a5ef5f032c8f9409a7116f80a1 (diff)
downloadtranslated-content-a2960295605a27e084541fc2f93068dd3cad15ba.tar.gz
translated-content-a2960295605a27e084541fc2f93068dd3cad15ba.tar.bz2
translated-content-a2960295605a27e084541fc2f93068dd3cad15ba.zip
remove hidden class for zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/promise/index.html')
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/promise/index.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html
index 60930d642f..c14a429795 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/promise/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/promise/index.html
@@ -13,10 +13,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise
<div>{{EmbedInteractiveExample("pages/js/promise-constructor.html")}}</div>
-
-
-<p class="hidden">The source for this interactive demo is stored in a GitHub repository. If you'd like to contribute to the interactive demo project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
-
<h2 id="語法">語法</h2>
<pre class="brush: js">new Promise( /* executor */ function(resolve, reject) { ... } );</pre>
@@ -139,7 +135,7 @@ myFirstPromise.then((successMessage) =&gt; {
<h3 id="進階範例">進階範例</h3>
-<pre class="brush: html hidden">&lt;button id="btn"&gt;Make a promise!&lt;/button&gt;
+<pre class="brush: html">&lt;button id="btn"&gt;Make a promise!&lt;/button&gt;
&lt;div id="log"&gt;&lt;/div&gt;
</pre>
@@ -193,7 +189,7 @@ function testPromise() {
<p><sub>*譯註:resolver function 即 executor function。</sub></p>
-<pre class="brush:js hidden">if ("Promise" in window) {
+<pre class="brush:js">if ("Promise" in window) {
let btn = document.getElementById("btn");
btn.addEventListener("click",testPromise);
} else {