diff options
Diffstat (limited to 'files/ja/web')
-rw-r--r-- | files/ja/web/api/performance/onresourcetimingbufferfull/index.md | 58 | ||||
-rw-r--r-- | files/ja/web/api/window/onappinstalled/index.html | 58 |
2 files changed, 0 insertions, 116 deletions
diff --git a/files/ja/web/api/performance/onresourcetimingbufferfull/index.md b/files/ja/web/api/performance/onresourcetimingbufferfull/index.md deleted file mode 100644 index 7c13934198..0000000000 --- a/files/ja/web/api/performance/onresourcetimingbufferfull/index.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: Performance.onresourcetimingbufferfull -slug: Web/API/Performance/onresourcetimingbufferfull -tags: - - API - - プロパティ - - リファレンス - - ウェブパフォーマンス -browser-compat: api.Performance.onresourcetimingbufferfull -translation_of: Web/API/Performance/onresourcetimingbufferfull ---- -{{APIRef("Resource Timing API")}} - -**`onresourcetimingbufferfull`** プロパティは、 {{domxref("Performance/resourcetimingbufferfull_event", "resourcetimingbufferfull")}} イベントが発生したときに呼び出されるイベントハンドラーです。このイベントは、ブラウザーのリソースタイミングパフォーマンスバッファーがいっぱいになったときに発生します。 - -{{AvailableInWorkers}} - -## 構文 - -```js -callback = performance.onresourcetimingbufferfull = buffer_full_cb; -``` - -### 返値 - -- callback - - : [イベントハンドラー](/ja/docs/Web/Events/Event_handlers)で、 {{domxref("Performance/resourcetimingbufferfull_event", "resourcetimingbufferfull")}} イベントが発生したときに呼び出されるものです。 -</dl> - -## 例 - -次の例では、 `onresourcetimingbufferfull` プロパティにコールバック関数を設定します。 - -```js -function buffer_full(event) { - console.log("WARNING: Resource Timing Buffer is FULL!"); - performance.setResourceTimingBufferSize(200); -} -function init() { - // リソースバッファーが一杯になったときのコールバックを設定 - performance.onresourcetimingbufferfull = buffer_full; -} -<body onload="init()"> -``` - -## 仕様書 - -{{Specifications}} - -## ブラウザーの互換性 - -{{Compat}} - -## 関連情報 - -- {{domxref("Performance/resourcetimingbufferfull_event", "resourcetimingbufferfull")}} イベント -- {{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}} -- {{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}} diff --git a/files/ja/web/api/window/onappinstalled/index.html b/files/ja/web/api/window/onappinstalled/index.html deleted file mode 100644 index f59a7a86fb..0000000000 --- a/files/ja/web/api/window/onappinstalled/index.html +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: Window.onappinstalled -slug: Web/API/Window/onappinstalled -tags: - - API - - Event Handler - - Property - - Reference - - Window - - web manifest -translation_of: Web/API/Window/onappinstalled -original_slug: Web/API/Window/oninstall ---- -<div>{{APIRef}}</div> - -<p>{{domxref("Window")}} オブジェクトの <code><strong>onappinstalled</strong></code> プロパティは、<code><a href="/ja/docs/Web/API/Window/appinstalled_event">appinstalled</a></code> イベントのイベントハンドラーとして扱われます。これは、ウェブアプリケーションが <a href="/ja/Apps/Progressive">プログレッシブウェブアプリ (PWA)</a> としてインストールに成功すると発行されます。この発生したイベントは、{{domxref("Event")}} インターフェイスを実装する「単純なイベント」です。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox">window.onappinstalled = function(event) { ... }; -</pre> - -<h2 id="Example" name="Example">例</h2> - -<pre class="brush: js">window.onappinstalled = function(ev) { - console.log('アプリケーションがインストールされました。'); -};</pre> - -<h2 id="Specifications" name="Specifications">仕様</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">仕様書</th> - <th scope="col">策定状況</th> - <th scope="col">備考</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('Manifest', '#onappinstalled-attribute', 'Window.onappinstalled')}}</td> - <td>{{Spec2('Manifest')}}</td> - <td>初期定義</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザー実装状況</h2> - - - -<p>{{Compat("api.Window.onappinstalled")}}</p> - -<h2 id="See_also" name="See_also">関連項目</h2> - -<ul> - <li>{{ event("install") }}</li> -</ul> |