aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwildskyf <poppin.wildsky+gh@gmail.com>2021-04-14 17:40:06 +0800
committerIrvin <irvinfly@gmail.com>2021-04-14 18:08:04 +0800
commitcc03ce3d7332457067e320d182307a3fc7285a4e (patch)
tree9ea2448d0f2c3d84383d3d7780d88b637c2fc70f
parentdb26cf86829f9b43d29f18b9bbf197e9e2d55c31 (diff)
downloadtranslated-content-cc03ce3d7332457067e320d182307a3fc7285a4e.tar.gz
translated-content-cc03ce3d7332457067e320d182307a3fc7285a4e.tar.bz2
translated-content-cc03ce3d7332457067e320d182307a3fc7285a4e.zip
remove useless dir="rtl" for zh-TW
-rw-r--r--files/zh-tw/learn/getting_started_with_the_web/css_basics/index.html2
-rw-r--r--files/zh-tw/web/javascript/guide/grammar_and_types/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html2
-rw-r--r--files/zh-tw/web/javascript/reference/operators/this/index.html2
-rw-r--r--files/zh-tw/web/manifest/index.html2
6 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-tw/learn/getting_started_with_the_web/css_basics/index.html b/files/zh-tw/learn/getting_started_with_the_web/css_basics/index.html
index f51f584cf8..25890fc92b 100644
--- a/files/zh-tw/learn/getting_started_with_the_web/css_basics/index.html
+++ b/files/zh-tw/learn/getting_started_with_the_web/css_basics/index.html
@@ -15,7 +15,7 @@ translation_of: Learn/Getting_started_with_the_web/CSS_basics
<p>跟 HTML 一樣,CSS 既非標準程式語言,也不是標記語言, 而是一種風格頁面語言(<em>style sheet language</em>):它能讓你在 HTML 文件中的元素(element)上套用不同的頁面樣式(style)。例如, 當想要將 HTML 頁面上所有段落元素(paragraph elements)裡的文字<strong>全部</strong>轉換成紅色,你會在CSS裡寫:</p>
-<pre class="brush: css notranslate" dir="rtl">p {
+<pre class="brush: css notranslate">p {
color: red;
}</pre>
diff --git a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
index ac059a7f24..a8eafbba5f 100644
--- a/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
+++ b/files/zh-tw/web/javascript/guide/grammar_and_types/index.html
@@ -675,7 +675,7 @@ and so is foo.'
<p>ECMAScript 2015 introduces a new type of literal, namely <a href="/en-US/docs/Web/JavaScript/Reference/template_strings"><strong>template literals</strong></a>. This allows for many new features including multiline strings!</p>
-<pre class="brush: js" dir="rtl">var poem =
+<pre class="brush: js">var poem =
`Roses are red,
Violets are blue.
Sugar is sweet,
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
index 7240184a75..bfb0eb739f 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/array/sort/index.html
@@ -175,7 +175,7 @@ items.sort(function (a, b) {
<p><code>compareFunction</code> 可以被陣列中的各個元素多次呼叫。依據 <code>compareFunction</code> 的特性,這將會產生大量運算。越多元素要排序 <code>compareFunction</code> 就越多工作要做,因此選擇使用 <a href="/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Array/map">map</a> 來排列也就是一個更明智的選擇。作法為先迭代陣列一次來取得排序時所需的值至暫時的陣列,並對此臨時陣列進行排序。然後再迭代臨時陣列來將正確順序之值放入原始陣列中。</p>
-<pre class="brush: js" dir="rtl">// the array to be sorted
+<pre class="brush: js">// the array to be sorted
var list = ['Delta', 'alpha', 'CHARLIE', 'bravo'];
// temporary array holds objects with position and sort-value
diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
index 91be97bc11..1713164868 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/math/abs/index.html
@@ -43,7 +43,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/abs
<p>Passing an empty object, an array with more than one member, a non-numeric string or {{jsxref("undefined")}}/empty variable returns {{jsxref("NaN")}}. Passing {{jsxref("null")}}, an empty string or an empty array returns 0.</p>
-<pre class="brush: js" dir="rtl">Math.abs('-1'); // 1
+<pre class="brush: js">Math.abs('-1'); // 1
Math.abs(-2); // 2
Math.abs(null); // 0
Math.abs(''); // 0
diff --git a/files/zh-tw/web/javascript/reference/operators/this/index.html b/files/zh-tw/web/javascript/reference/operators/this/index.html
index e26b592244..503ef720e4 100644
--- a/files/zh-tw/web/javascript/reference/operators/this/index.html
+++ b/files/zh-tw/web/javascript/reference/operators/this/index.html
@@ -71,7 +71,7 @@ f2() === undefined; //true</pre>
<p>要從某個語境訪問另一個 <code>this</code> 語境的值,請使用 <a href="/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Function/call">call</a> 或 <a href="/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Function/apply">apply</a>:</p>
-<pre dir="rtl">// 物件可以被當作call或apply的第一個參數,而this會綁定該物件
+<pre>// 物件可以被當作call或apply的第一個參數,而this會綁定該物件
var obj = {a: 'Custom'};
// 此屬性a為全域物件
diff --git a/files/zh-tw/web/manifest/index.html b/files/zh-tw/web/manifest/index.html
index 9e3325f71a..5f47ed81a3 100644
--- a/files/zh-tw/web/manifest/index.html
+++ b/files/zh-tw/web/manifest/index.html
@@ -81,7 +81,7 @@ translation_of: Web/Manifest
<p>指定一個對於 <code>name</code>、<code>short_name<font face="Open Sans, arial, sans-serif">、</font></code><code>description</code> 等成員的主要書寫方向。 包含 <code>lang</code> 成員,其能夠為右至左書寫的語言提供幫助。</p>
-<pre class="brush: json notranslate" dir="rtl">"dir": "rtl",
+<pre class="brush: json notranslate">"dir": "rtl",
"lang": "ar",
"short_name": "أنا من التطبيق!"</pre>