This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (45 loc) · 2.26 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>ThreeFolds: FOLD creation tool using Three.JS</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='./styles/styles.css'>
<script src="external/three.js"></script>
</head>
<body>
<div class='parent flex-parent'>
<div class='child flex-child'>
<canvas id="glCanvas" width="600" height="600"></canvas>
</div>
<div class='child flex-child' id="btn_container">
<button id="huzita1" disabled>Crease from P1 to P2</button>
<button id="huzita2" disabled>Crease P1 onto P2</button>
<button id="huzita3" disabled>Crease L1 onto L2</button>
<button id="huzita4" disabled>Crease through P1 perp. to L1</button>
<button id="huzita5" disabled>Crease P1 onto L1 through P2</button>
<button id="huzita6" disabled>Crease P1 onto L1 and P2 onto L2</button>
<button id="huzita7" disabled>Crease P1 onto L1 perp. to L2</button>
</div>
<div class='child flex-child'>
<svg id="svg" viewBox="0 0 600 600" width="600" height="600" preserveAspectRatio="none">
</svg>
</div>
</div>
<input type="file" id="fold_input" accept=".fold">
<div id="slider-container">
<input type="range" min="-180" max="180" id="line1" step="1" class="hidden">
</div>
<!-- <script src="external/require.js"></script> -->
<script src="external/fold.js"></script>
<!-- <script type="module" src='external/fold.js'></script> -->
<script src="https://requirejs.org/docs/release/2.3.6/minified/require.js"></script>
<script src='main.js'></script>
<!-- <svg width="800" height="600">
<rect width="800" height="600" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
<line x1="0" x2="900" y1="0" y2="673" stroke="white"
stroke-width="3" stroke-linecap="square" stroke-dasharray="6"/>
</svg> -->
</body>
</html>