From e9bb21320278d88f6795525b4bb6c91b90711fcc Mon Sep 17 00:00:00 2001 From: tristantheb Date: Wed, 21 Apr 2021 16:21:07 +0200 Subject: KS: Removal of the least used macros --- .../api/canvas_api/tutorial/applying_styles_and_colors/index.html | 4 +--- .../web/api/file/using_files_from_web_applications/index.html | 2 -- .../web/api/html_drag_and_drop_api/drag_operations/index.html | 2 -- files/zh-tw/web/api/messageevent/index.html | 1 - files/zh-tw/web/api/permissions_api/index.html | 3 +-- files/zh-tw/web/api/websocket/index.html | 2 -- files/zh-tw/web/api/websockets_api/index.html | 8 ++------ 7 files changed, 4 insertions(+), 18 deletions(-) (limited to 'files/zh-tw/web/api') diff --git a/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html b/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html index 65e2a5055d..6a16a2aaad 100644 --- a/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html +++ b/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html @@ -633,9 +633,7 @@ var ptrn = ctx.createPattern(img,'repeat');

shadowOffsetX和shadowOffsetY會決定陰影延伸大小,若是為正值,則陰影會往右(沿X軸)和往下(沿Y軸)延伸,若是為負值,則會往正值相反方向延伸。

-

{{gecko_callout_heading("7.0")}}

- -

Note: 基於HTML5提議規格變更,從{{Gecko("7.0")}}開始,陰影只會在source-over的構圖排列下產生

+

Note: 基於HTML5提議規格變更,從 開始,陰影只會在source-over的構圖排列下產生

文字陰影範例

diff --git a/files/zh-tw/web/api/file/using_files_from_web_applications/index.html b/files/zh-tw/web/api/file/using_files_from_web_applications/index.html index 52bd1928b3..cf9719ccd2 100644 --- a/files/zh-tw/web/api/file/using_files_from_web_applications/index.html +++ b/files/zh-tw/web/api/file/using_files_from_web_applications/index.html @@ -407,5 +407,3 @@ function handleFiles(files) {
  • Using the DOM File API in chrome code
  • {{domxref("XMLHttpRequest")}}
  • - -

    {{ HTML5ArticleTOC() }}

    diff --git a/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html b/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html index c609d6f4d4..bc61aeeb4c 100644 --- a/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html +++ b/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html @@ -119,8 +119,6 @@ dt.setData("text/plain", "http://www.mozilla.org");

    上面我們的canvas是50 x 50px大小,然後我們位移一半25讓圖片落在滑鼠指標中央。 

    -

    {{h2_gecko_minversion("使用XUL panel元素作為拖曳圖片", "9.0")}}

    -

    在Gecko上開發,比如說外掛或Mozllia應用程式,Gecko9.0{{geckoRelease("9.0")}}支援使用{{XULElem("panel")}}元素作為拖曳圖片,簡單將XUL panel元素傳入setDragImage方法即可。

    試想下面這個 {{XULElem("panel")}}元素:

    diff --git a/files/zh-tw/web/api/messageevent/index.html b/files/zh-tw/web/api/messageevent/index.html index 4379f0fd00..79cae0574c 100644 --- a/files/zh-tw/web/api/messageevent/index.html +++ b/files/zh-tw/web/api/messageevent/index.html @@ -75,7 +75,6 @@ original_slug: WebSockets/WebSockets_reference/MessageEvent

    Gecko 備註

    -

    {{ gecko_callout_heading("6.0") }}

    此時此刻,Gecko 不支援 ArrayBuffer 或 {{ domxref("Blob") }} 作為 data

    {{ languages ( {"en": "en/WebSockets/WebSockets_reference/MessageEvent"} ) }}

    diff --git a/files/zh-tw/web/api/permissions_api/index.html b/files/zh-tw/web/api/permissions_api/index.html index 919e053cf8..c9dda01311 100644 --- a/files/zh-tw/web/api/permissions_api/index.html +++ b/files/zh-tw/web/api/permissions_api/index.html @@ -4,9 +4,8 @@ slug: Web/API/Permissions_API translation_of: Web/API/Permissions_API original_slug: WebAPI/Permissions --- +

    {{DefaultAPISidebar("Permissions API")}}

    {{ draft() }}

    -

    {{ non-standard_header }}

    -

    {{ B2GOnlyHeader2('certified') }}

    摘要

    Permissions API 可顯示 Apps 所要求的所有權限,以利使用者管理。Apps 可透過此 API 而讀取其他 Apps 的權限並進一步變更。

    透過 PermissionSettings 介面的 navigator.mozPermissionSettings 屬性,即可存取 Permission Manager。

    diff --git a/files/zh-tw/web/api/websocket/index.html b/files/zh-tw/web/api/websocket/index.html index cd92f4fd7a..8a8c14f3cb 100644 --- a/files/zh-tw/web/api/websocket/index.html +++ b/files/zh-tw/web/api/websocket/index.html @@ -189,8 +189,6 @@ void send(
    註釋
    -

    {{ gecko_callout_heading("6.0") }}

    -

    Gecko send() 方法的實作與 Gecko 6.0 的規範有差別。Gecko 回傳一個 boolean 以表示連線是否仍處於開啟狀態(且資料成功隊列/傳輸)。另外,此時此刻,Gecko 不支援 ArrayBuffer 或 {{ domxref("Blob") }} 作為資料形態。

    diff --git a/files/zh-tw/web/api/websockets_api/index.html b/files/zh-tw/web/api/websockets_api/index.html index 49adb03bd0..56f850a44f 100644 --- a/files/zh-tw/web/api/websockets_api/index.html +++ b/files/zh-tw/web/api/websockets_api/index.html @@ -142,14 +142,10 @@ original_slug: WebSockets

    Gecko 附註

    Firefox 的 WebSockets 支援正在持續追蹤發展中的 WebSocket 規範。Firefox 6 實作底層協定版號 7,Firefox 7 實作協定版號 8(IETF 草案 10 的內容)。Firefox mobile 在 7.0 版支援 WebSocket。

    -

    {{ gecko_callout_heading("6.0") }}

    -

    Gecko 6.0 {{ geckoRelease("6.0") }} 之前,不該存在的 WebSocket 物件使得某些開發者認為 WebSocket 服務沒有前輟,此物件已被更名為 MozWebSocket

    +

    Gecko 6.0 之前,不該存在的 WebSocket 物件使得某些開發者認為 WebSocket 服務沒有前輟,此物件已被更名為 MozWebSocket

    -

    {{ gecko_callout_heading("7.0") }}

    -

    自從 Gecko 7.0 {{ geckoRelease("7.0") }},偏好設定 network.websocket.max-connections 可以用來設定 WebSocket 連線同時開啟的最大個數。預設值為 200。

    +

    自從 Gecko 7.0,偏好設定 network.websocket.max-connections 可以用來設定 WebSocket 連線同時開啟的最大個數。預設值為 200。

    警告:雖然不是唯一的理由,但是目前 WebSockets 被 Firefox 4 與 5 禁用的關鍵原因是一個協定設計上的安全問題,因此不建議在生產環境下使用這些 Firefox 版本的 WebSockets。若仍想測試 WebSockets,你可以開啟 about:config 並設定 network.websocket.enabled 的取值至 true,並需要同時設定 network.websocket.override-security-block 的取值至 true 才能允許 WebSocket 連線的初始化。
    -

    {{ HTML5ArticleTOC() }}

    -

    {{ languages ( {"en": "en/WebSockets", "es": "es/WebSockets"} ) }}

    -- cgit v1.2.3-54-g00ecf