-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 826 Bytes
/
index.html
File metadata and controls
31 lines (31 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script>
// During `pnpm dev` the static server runs on :8000; redirect to the
// local-dist page so refreshes pick up uncommitted source changes.
if (location.port === '8000') location.replace('./local.html');
</script>
<title>detect-gpu</title>
<style>
body {
font-family: system-ui, sans-serif;
font-size: 1.25em;
padding: 2rem;
}
</style>
</head>
<body>
<pre id="root">Detecting GPU…</pre>
<script type="module">
import { getGPUTier } from 'https://esm.sh/@pmndrs/detect-gpu';
const result = await getGPUTier();
document.getElementById('root').textContent = JSON.stringify(
result,
null,
2
);
</script>
</body>
</html>