mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-25 02:09:41 -05:00
12 lines
232 B
HTML
12 lines
232 B
HTML
<!DOCTYPE HTML>
|
|
<meta charset="utf-8">
|
|
<input type="text" id="reading" />
|
|
<script>
|
|
|
|
let sensor = new AmbientLightSensor();
|
|
sensor.start();
|
|
document.getElementById("reading").value = String(sensor.reading);
|
|
sensor.stop();
|
|
|
|
</script>
|