-
Notifications
You must be signed in to change notification settings - Fork 0
/
phymain.html
81 lines (64 loc) · 1.99 KB
/
phymain.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<title>Web AR</title>
<meta name=" viewport" content="width=device-width,initial-scale=1.0">
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
<style>
* {
margin: 0;
padding: 0;
}
body{
background-color: #17141d;
}
.demo {
height: 100vh;
width: 100%;
}
.demo model-viewer {
width: 100vh;
height: 100vh;
}
.demo1 model-viewer {
width: 100vh;
height: 100vh;
}
/* body {
background-image: url("old-black-background-grunge-texture-dark-wallpaper-blackboard-chalkboard-concrete.jpg");
} */
</style>
</head>
<body>
<script>
function circuit() {
window.location.href = "phycircuit.html";
}
function callipers() {
window.location.href = "phy.html";
}
</script>
<table>
<tr>
<td>
<span class="demo1" onclick="circuit()">
<span>
<model-viewer id="model1" src="electric_circuit.glb" auto-rotate camera-controls
animation-name="Running" autoplay ar>
</model-viewer>
</span>
</span>
</td>
<td>
<span class="demo" onclick="callipers()">
<span>
<model-viewer id="model" src="calliper_lowpoly.glb" auto-rotate camera-controls
animation-name="Running" autoplay ar>
</span>
</span>
</td>
</tr>
</table>
</body>
</html>