-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
55 lines (43 loc) · 1.79 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html><html><head>
<script src="p5.min.js"></script>
<script src="p5.dom.min.js"></script>
<script src="pressure.min.js"></script>
<script src="oneEuroFilter.min.js"></script>
<script src="importImageFile.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8">
</head>
<body>
<div class="sidenav">
<!-- Icons on the side bar -->
<!-- Change this with the final app logo whn ready -->
<img id="Logo" type="Icon"><img src="icon/GANgaroo_bw.svg"/></img>
<button id="ClearButton" type="button"><img src="icon/draw.svg"/></button>
<button id="myFileInput" type="button"><img src="icon/uploadV2.svg" /></button>
<button onclick="PopWindowOne()" id="to3DModel" type="button"><img src="icon/to3dModel.svg" /></button>
<input type="file" id="mypic" style="display: none" accept="image/*" capture="camera"/>
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<script>
$("#myFileInput").on("click", function() {
$("#mypic").trigger("click");
});
</script>
<script language="JavaScript">
function PopWindowOne()
{
let width = window.innerWidth*0.8;
let height = window.innerHeight*0.8;
let leftMargin = window.innerWidth*0.1;
let topMargin = window.innerHeight*0.1;
floatingWindow = window.open("meshViewer.html","",`height=${height},width=${width},left=${leftMargin},top=${topMargin},scrollbars=no`);
}
</script>
</div>
<div class="main">
<!-- <canvas id="drawingCanvas"></canvas> -->
<!-- <canvas></canvas> -->
<script src="sketch.js"></script>
<script src="importImageFile.js"></script>
</div>
</body>
</html>