forked from 0hq/WebMiner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
25 lines (24 loc) · 859 Bytes
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>WebMiner Model Demo</title>
<script src="main.js"></script>
<script src="test.js"></script>
</head>
<body>
<h1>WebMiner Demo</h1>
<p id="webgpuSupportMessage">Checking WebGPU support...</p>
<br /><br />
<script>
const webgpuSupportMessage = document.getElementById("webgpuSupportMessage");
// Check for WebGPU support
if (!navigator.gpu) {
webgpuSupportMessage.innerHTML =
"WebGPU is not supported in your browser yet. Update Chrome to v113 or download Chrome Canary here: <a href='https://www.google.com/chrome/canary/'>https://www.google.com/chrome/canary/</a>";
console.error("WebGPU is not supported");
} else {
webgpuSupportMessage.innerHTML = "WebGPU is supported in your browser!";
}
</script>
</body>
</html>