-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (33 loc) · 899 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
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>Gyro</title>
<script src="/js/require.js"></script>
<script type="application/javascript">
function init() {
if(navigator.userAgent.match(/Android|iPhone|iPad|iPod/i)) {
// if(true) {
console.log("Device Found");
require(["js/com"], function() {console.log('Device Loaded')});
// com.loadScript("/js/device.js")
} else {
console.log("Screen Found");
require(["js/com"], function() {console.log('Screen Loaded')});
}
}
</script>
<style>
canvas {
position: absolute;
right: 0;
left: 0;
top: 0;
margin: 0 auto;
border: 1px solid black;
}
</style>
</head>
<body onload="init()">
<h1>Gyro</h1>
</body>
</html>