From d52549082146c7e3d221124f9cec0af652b3183f Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:47:11 +0100 Subject: unslug fi: move --- .../fi/dom/window.navigator.connection/index.html | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 files/fi/dom/window.navigator.connection/index.html (limited to 'files/fi/dom/window.navigator.connection') diff --git a/files/fi/dom/window.navigator.connection/index.html b/files/fi/dom/window.navigator.connection/index.html deleted file mode 100644 index da01bbcdc7..0000000000 --- a/files/fi/dom/window.navigator.connection/index.html +++ /dev/null @@ -1,100 +0,0 @@ ---- -title: window.navigator.connection -slug: DOM/window.navigator.connection -translation_of: Web/API/Navigator/connection ---- -

{{ Apiref() }}

-

{{ SeeCompatTable() }}

-

Network Information API tarjoaa tietoa järjestelmän verkkoyhteydestä, kuten käyttäjän laitteen nykyisestä kaistanleveydestä tai onko yhteys mitattu. Tätä voitaisiin käyttää valitsemaan HD-sisältö tai LD-sisältö käyttäjän yhteyteen perustuen.

-

Attribuutit

-
-
- bandwidth
-
- Kirjoitussuojattu. Double-arvo edustaa arvioitua nykyisen yhteyden latauskaistanleveyttä (arvona MB/s). 0 jos käyttäjä ei ole parhaillaan verkkoyhteydessä ja infinity jos kaistanleveys on tuntematon.
-
- metered
-
- Kirjoitussuojattu. Boolean-arvo palauttaen true, jos yhteys on mitattu (esim.: pay-per-use).
-
-

Tapahtumat

-
-
- onchange
-
- Laukeaa, kun yhteys muuttuu.
-
-

Esimerkki

-
var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
-
-function updateConnectionStatus() {
-  alert("Connection bandwidth: " + connection.bandwidth + " MB/s");
-  if (connection.metered) {
-    alert("The connection is metered!");
-  }
-}
-
-connection.addEventListener("change", updateConnectionStatus);
-updateConnectionStatus();
-
-

Selainyhteensopivuus

-

{{ CompatibilityTable() }}

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Perustuki20? {{ property_prefix("webkit") }}12.0 {{ property_prefix("moz") }} (katso kommentit){{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
-
-
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Perustuki{{ CompatNo() }}12.0 {{ property_prefix("moz") }} (katso kommentit){{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
-
-

Gecko-kommentit

- -

Spesifikaatio

- -

Katso myös

- -- cgit v1.2.3-54-g00ecf