You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p> This document was produced by the <ahref="https://www.w3.org/2009/dap/">Device and Sensors Working Group</a>. </p>
1485
1484
<p> This document was produced by a group operating under
1486
-
the <ahref="https://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>.
1485
+
the <ahref="https://www.w3.org/Consortium/Patent-Policy/">W3C Patent Policy</a>.
1487
1486
W3C maintains a <ahref="https://www.w3.org/2004/01/pp-impl/43696/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
1488
1487
that page also includes instructions for disclosing a patent.
1489
-
An individual who has actual knowledge of a patent which the individual believes contains <ahref="https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <ahref="https://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
1490
-
<p> This document is governed by the <ahref="https://www.w3.org/2017/Process-20170301/" id="w3c_process_revision">1 March 2017 W3C Process Document</a>. </p>
1488
+
An individual who has actual knowledge of a patent which the individual believes contains <ahref="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <ahref="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
1489
+
<p> This document is governed by the <ahref="https://www.w3.org/2018/Process-20180201/" id="w3c_process_revision">1 February 2018 W3C Process Document</a>. </p>
which would mirror the <code>light-level</code> media feature, but in JavaScript.
1548
1547
This sensor would <em>not require additional user permission to be activated</em> in user agents that exposed the <code>light-level</code> media feature.</p>
<aclass="self-link" href="#example-9df8033e"></a> In this simple example, ambient light sensor is created with
1549
+
<divclass="example" id="example-67e29d5f">
1550
+
<aclass="self-link" href="#example-67e29d5f"></a> In this simple example, ambient light sensor is created with
1552
1551
default configuration. Whenever new <adata-link-type="dfn" href="https://w3c.github.io/sensors#sensor-readings" id="ref-for-sensor-readings">reading</a> is available,
<aclass="self-link" href="#example-65bd329c"></a> In this example, exposure value (EV) at ISO 100 is calculated from
1559
+
<divclass="example" id="example-ae3465bd">
1560
+
<aclass="self-link" href="#example-ae3465bd"></a> In this example, exposure value (EV) at ISO 100 is calculated from
1562
1561
the ambient light <adata-link-type="dfn" href="https://w3c.github.io/sensors#sensor-readings" id="ref-for-sensor-readings①">sensor readings</a>. Initially, we check that the user
1563
1562
agent has permissions to access ambient light <adata-link-type="dfn" href="https://w3c.github.io/sensors#sensor-readings" id="ref-for-sensor-readings②">sensor readings</a>. Then, <codeclass="idl"><aclass="idl-code" data-link-type="attribute" href="#dom-ambientlightsensor-illuminance" id="ref-for-dom-ambientlightsensor-illuminance">illuminance</a></code> value is converted to the
<aclass="self-link" href="#example-ebb26391"></a> This example demonstrates how ambient light <adata-link-type="dfn" href="https://w3c.github.io/sensors#sensor-readings" id="ref-for-sensor-readings③">sensor readings</a> can be mapped
1587
+
<divclass="example" id="example-67979230">
1588
+
<aclass="self-link" href="#example-67979230"></a> This example demonstrates how ambient light <adata-link-type="dfn" href="https://w3c.github.io/sensors#sensor-readings" id="ref-for-sensor-readings③">sensor readings</a> can be mapped
1590
1589
to recommended workplace light levels.
1591
1590
<preclass="highlight"><spanclass="kr">const</span> als <spanclass="o">=</span><spanclass="k">new</span> AmbientLightSensor<spanclass="p">();</span>
1592
1591
@@ -1651,8 +1650,7 @@ <h2 class="heading settled" data-level="3" id="security-and-privacy"><span class
1651
1650
<lidata-md="">
1652
1651
<p><adata-link-type="dfn" href="https://w3c.github.io/sensors#reduce-accuracy" id="ref-for-reduce-accuracy">reduce accuracy</a> of sensor readings</p>
1653
1652
</ul>
1654
-
<p>The generic <adata-link-type="dfn" href="https://w3c.github.io/sensors#mitigation-strategies" id="ref-for-mitigation-strategies">mitigation strategies</a> are described in the Generic Sensor
1655
-
API <adata-link-type="biblio" href="#biblio-generic-sensor">[GENERIC-SENSOR]</a>.</p>
1653
+
<p>These mitigation strategies complement the <adata-link-type="dfn" href="https://w3c.github.io/sensors#mitigation-strategies" id="ref-for-mitigation-strategies">generic mitigations</a> defined in the Generic Sensor API <adata-link-type="biblio" href="#biblio-generic-sensor">[GENERIC-SENSOR]</a>.</p>
0 commit comments