From d7de3e04862adf7ce222386f4ee1393867a79c5c Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 24 Jul 2023 01:26:07 +0900 Subject: [PATCH] =?UTF-8?q?2023/04/07=20=E6=99=82=E7=82=B9=E3=81=AE?= =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E7=89=88=E3=81=AB=E5=90=8C=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/element/fullscreenerror_event/index.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/files/ja/web/api/element/fullscreenerror_event/index.md b/files/ja/web/api/element/fullscreenerror_event/index.md index 4ea6eeacc68ca8..8212128a2d673f 100644 --- a/files/ja/web/api/element/fullscreenerror_event/index.md +++ b/files/ja/web/api/element/fullscreenerror_event/index.md @@ -1,8 +1,9 @@ --- -title: 'Element: fullscreenerror イベント' +title: "Element: fullscreenerror イベント" +short-title: fullscreenerror slug: Web/API/Element/fullscreenerror_event l10n: - sourceCommit: a122e87245c624ba56197641b4d7b21b643a6021 + sourceCommit: bbf7f25f9cf95fb154e2740a9fdc9c02818981bf --- {{APIRef}} @@ -20,9 +21,9 @@ l10n: このイベント名を {{domxref("EventTarget.addEventListener", "addEventListener()")}} などのメソッドで使用するか、イベントハンドラープロパティを設定するかしてください。 ```js -addEventListener('fullscreenchange', (event) => { }); +addEventListener("fullscreenchange", (event) => {}); -onfullscreenchange = (event) => { }; +onfullscreenchange = (event) => {}; ``` ## イベント型 @@ -32,14 +33,14 @@ onfullscreenchange = (event) => { }; ## 例 ```js -const requestor = document.querySelector('div'); +const requestor = document.querySelector("div"); function handleError(event) { - console.error('an error occurred changing into fullscreen'); + console.error("an error occurred changing into fullscreen"); console.log(event); -}; +} -requestor.addEventListener('fullscreenerror', handleError); +requestor.addEventListener("fullscreenerror", handleError); // or requestor.onfullscreenerror = handleError;