forked from origamimagiro/flat-folder
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (75 loc) · 2.78 KB
/
index.html
File metadata and controls
75 lines (75 loc) · 2.78 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flat-Folder</title>
<link rel="icon" href="./favicon.png">
</head>
<body style="background:darkgray">
<div>
<span style="font-family:sans-serif">
<b>Flat-Folder </b>
</span>
<input type="button" id="side" value="+" style="width:25px;"/>
<input type="file" id="import"/>
<input type="button" id="export_button" value="Export" style="display:none">
<div id="export" style="display:inline"></div>
</div>
<div id="flat_controls" style="display:none">
<span style="display:inline-block;width:110px">Crease Pattern</span>
<label for="rotate_flat">Rotate</label>
<select id="rotate_flat"></select>
<label for="flip_flat">Flip</label>
<input type="checkbox" id="flip_flat">
<label for="text">Text</label>
<input type="checkbox" id="text">
<label for="limit_select">Limit</label>
<select id="limit_select"></select>
<input type="button" id="fold_button" value="Fold">
</div>
<div id="cell_controls" style="display:none">
<span style="display:inline-block;width:110px">Folded View</span>
<label for="rotate_fold">Rotate</label>
<select id="rotate_fold"></select>
<label for="flip_fold">Flip</label>
<input type="checkbox" id="flip_fold">
<div id="fold_controls" style="display:none">
<label for="scale">Scale</label>
<input type="checkbox" id="scale">
<label for="shadow">Shadows</label>
<input id="shadow" type="number" min="0" max="6" step="1">
<label for="visible">Visible</label>
<input type="checkbox" id="visible">
</div>
</div>
<div id="state_controls" style="display:none">
<span style="display:inline-block;width:110px">Folded State</span>
<label for="component_select">Component</label>
<select id="component_select"></select>
<div id="state_config" style="display:none">
<label for="state_select" id="state_label"></label>
<input id="state_select" type="number">
</div>
</div>
<div><span id="num_states"></span></div>
<div>
<svg id="main">
<svg id="flat"></svg>
<svg id="cell"></svg>
<svg id="fold"></svg>
</svg>
</div>
<div>
<textarea id="console" rows=10 readonly
style="width:100%;background-color:darkgray;resize:none;
font-family:monospace"></textarea>
</div>
<div>
© Jason S. Ku 2022
<a href="https://github.com/origamimagiro/flat-folder">
Code on Github
</a>
</div>
<script type="module" src="./src/main.js"></script>
</body>
</html>