From bcb7e553dafccf98dc641185c303a3be25c7d861 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:42:00 +0800 Subject: [PATCH] Update description style & adjust properties' order (#31703) --- files/en-us/web/api/notification/close/index.md | 2 +- files/en-us/web/api/notification/dir/index.md | 2 +- files/en-us/web/api/notification/image/index.md | 2 +- files/en-us/web/api/notification/index.md | 8 ++++---- files/en-us/web/api/notification/timestamp/index.md | 2 +- files/en-us/web/api/notification/vibrate/index.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/files/en-us/web/api/notification/close/index.md b/files/en-us/web/api/notification/close/index.md index 91d5a32334c149b..2a5f7101689d289 100644 --- a/files/en-us/web/api/notification/close/index.md +++ b/files/en-us/web/api/notification/close/index.md @@ -8,7 +8,7 @@ browser-compat: api.Notification.close {{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}} -The `close()` method of the {{domxref("Notification")}} interface is used to +The **`close()`** method of the {{domxref("Notification")}} interface is used to close/remove a previously displayed notification. > **Note:** This API shouldn't be used just to have the notification diff --git a/files/en-us/web/api/notification/dir/index.md b/files/en-us/web/api/notification/dir/index.md index e2fb4f0b1ab3d46..bd61669c1c74996 100644 --- a/files/en-us/web/api/notification/dir/index.md +++ b/files/en-us/web/api/notification/dir/index.md @@ -8,7 +8,7 @@ browser-compat: api.Notification.dir {{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}} -The `dir` read-only property of the {{domxref("Notification")}} interface indicates the text direction of the notification, as specified in the `dir` option of the {{domxref("Notification.Notification","Notification()")}} constructor. +The **`dir`** read-only property of the {{domxref("Notification")}} interface indicates the text direction of the notification, as specified in the `dir` option of the {{domxref("Notification.Notification","Notification()")}} constructor. ## Value diff --git a/files/en-us/web/api/notification/image/index.md b/files/en-us/web/api/notification/image/index.md index a1bc79672a65ecc..7f9a206a60ae029 100644 --- a/files/en-us/web/api/notification/image/index.md +++ b/files/en-us/web/api/notification/image/index.md @@ -10,7 +10,7 @@ browser-compat: api.Notification.image {{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{SecureContext_Header}}{{SeeCompatTable}} -The `image` read-only property of the +The **`image`** read-only property of the {{domxref("Notification")}} interface contains the URL of an image to be displayed as part of the notification, as specified in the `image` option of the {{domxref("Notification.Notification","Notification()")}} constructor. diff --git a/files/en-us/web/api/notification/index.md b/files/en-us/web/api/notification/index.md index 87ad8d749685d55..90b08b484e1e310 100644 --- a/files/en-us/web/api/notification/index.md +++ b/files/en-us/web/api/notification/index.md @@ -47,20 +47,20 @@ _Also inherits properties from its parent interface, {{domxref("EventTarget")}}_ - : Returns a structured clone of the notification's data. - {{domxref("Notification.dir")}} {{ReadOnlyInline}} - : The text direction of the notification as specified in the constructor's `options` parameter. -- {{domxref("Notification.lang")}} {{ReadOnlyInline}} - - : The language code of the notification as specified in the constructor's `options` parameter. -- {{domxref("Notification.tag")}} {{ReadOnlyInline}} - - : The ID of the notification (if any) as specified in the constructor's `options` parameter. - {{domxref("Notification.icon")}} {{ReadOnlyInline}} - : The URL of the image used as an icon of the notification as specified in the constructor's `options` parameter. - {{domxref("Notification.image")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : The URL of an image to be displayed as part of the notification, as specified in the constructor's `options` parameter. +- {{domxref("Notification.lang")}} {{ReadOnlyInline}} + - : The language code of the notification as specified in the constructor's `options` parameter. - {{domxref("Notification.renotify")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : Specifies whether the user should be notified after a new notification replaces an old one. - {{domxref("Notification.requireInteraction")}} {{ReadOnlyInline}} - : A boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically. - {{domxref("Notification.silent")}} {{ReadOnlyInline}} - : Specifies whether the notification should be silent — i.e., no sounds or vibrations should be issued, regardless of the device settings. +- {{domxref("Notification.tag")}} {{ReadOnlyInline}} + - : The ID of the notification (if any) as specified in the constructor's `options` parameter. - {{domxref("Notification.timestamp")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : Specifies the time at which a notification is created or applicable (past, present, or future). - {{domxref("Notification.title")}} {{ReadOnlyInline}} diff --git a/files/en-us/web/api/notification/timestamp/index.md b/files/en-us/web/api/notification/timestamp/index.md index c0c3037af57d6b7..56c8b9171496136 100644 --- a/files/en-us/web/api/notification/timestamp/index.md +++ b/files/en-us/web/api/notification/timestamp/index.md @@ -23,7 +23,7 @@ missed message could be set in the past. ## Value -A number representing a timestamp, given as [Unix time](/en-US/docs/Glossary/Unix_time) in milliseconds. +A number representing a timestamp, given as {{Glossary("Unix time")}} in milliseconds. ## Examples diff --git a/files/en-us/web/api/notification/vibrate/index.md b/files/en-us/web/api/notification/vibrate/index.md index d3e2bd7c1f40f6f..cbbfce46a4d4a1e 100644 --- a/files/en-us/web/api/notification/vibrate/index.md +++ b/files/en-us/web/api/notification/vibrate/index.md @@ -10,7 +10,7 @@ browser-compat: api.Notification.vibrate {{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{SecureContext_Header}}{{SeeCompatTable}} -The `vibrate` read-only property of the {{domxref("Notification")}} +The **`vibrate`** read-only property of the {{domxref("Notification")}} interface specifies a [vibration pattern](/en-US/docs/Web/API/Vibration_API#vibration_patterns) for the device's vibration hardware to emit when the notification fires. This is specified in the `vibrate` option of the