-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
119 lines (119 loc) · 4 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flat-Folder</title>
<link rel="icon" href="./favicon.png">
<style>
div .border {
display: inline-block;
padding: 3px;
margin: -1px;
background-color: lightgray;
overflow: hidden;
min-height: 22px;
}
</style>
</head>
<body style="background:darkgray">
<div style="margin: 3px">
<span style="font-family:sans-serif">
<b>Flat-Folder </b>
</span>
<input type="button" id="side" value="+" style="width:25px;"/>
<select id="example" style="width:150px"/></select>
<input type="file" id="import" style="width:200px"/>
<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">
<div class="border">
<span style="display:inline-block;width:110px">Crease Pattern</span>
</div>
<div class="border">
<label for="rotate_flat">Rotate</label>
<select id="rotate_flat"></select>
</div>
<div class="border">
<label for="flip_flat">Flip</label>
<input type="checkbox" id="flip_flat">
</div>
<div class="border">
<label for="text">Text</label>
<input type="checkbox" id="text">
</div>
<div class="border">
<label for="limit_select">Limit</label>
<select id="limit_select"></select>
</div>
<div class="border">
<input type="button" id="fold_button" value="Fold">
</div>
</div>
<div id="cell_controls" style="display:none">
<div class="border">
<span style="display:inline-block;width:110px">Folded View</span>
</div>
<div class="border">
<label for="rotate_fold">Rotate</label>
<select id="rotate_fold"></select>
</div>
<div class="border">
<label for="flip_fold">Flip</label>
<input type="checkbox" id="flip_fold">
</div>
<div id="fold_controls" style="display:none">
<div class="border">
<label for="scale">Scale</label>
<input type="checkbox" id="scale">
</div>
<div class="border">
<label for="shadow">Shadows</label>
<input id="shadow" type="number" min="0" max="6" step="1">
</div>
<div class="border">
<label for="visible">Visible</label>
<input type="checkbox" id="visible">
</div>
</div>
</div>
<div id="state_controls" style="display:none">
<div class="border">
<span style="display:inline-block;width:110px">Folded State</span>
</div>
<div class="border">
<label for="component_select">Component</label>
<select id="component_select"></select>
</div>
<div id="state_config" style="display:none">
<div class="border">
<label for="state_select" id="state_label"></label>
<input id="state_select" type="number">
</div>
</div>
<div class="border">
<span id="num_states"></span>
</div>
</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-2024
<a href="https://github.com/origamimagiro/flat-folder">
Code on Github
</a>
<a href="./batch.html" style="float:right">Batch</a>
</div>
<script type="module" src="./src/main.js"></script>
</body>
</html>