mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-04 14:49:44 +07:00
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<title>CO2 Meter</title>
|
|
<script type="module" src="main-page.js"></script>
|
|
<style>
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
iframe {
|
|
border: none;
|
|
flex: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<button type="button" id="grantPermissionButton">Grant CO2 meter permission</button>
|
|
<div>
|
|
Set Temperature Unit to:
|
|
<input type="radio" id="celsiusInput" name="metric">
|
|
<label for="celsiusInput">Celsius</label>
|
|
<input type="radio" id="fahrenheitInput" name="metric">
|
|
<label for="fahrenheitInput">Fahrenheit</label>
|
|
</div>
|
|
<div>
|
|
Sensor reading interval (in seconds):
|
|
<input type="number" id="intervalInput">
|
|
</div>
|
|
<button type="button" id="updateChartWithExampleDataButton">Add Example Data to Chart</button> if you do not have a device and want to see a chart.
|
|
</div>
|
|
<iframe src="chart-iframe.html"></iframe>
|
|
</body>
|
|
</html> |