-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
159 lines (140 loc) · 5.21 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<html>
<head>
<title>Turks Heads</title>
<script type="text/javascript" src="js/jscolor.js"></script>
<script type="text/javascript" src="js/knot.js"></script>
<script type="text/javascript" src="js/MochiKit.js"></script>
<script type="text/javascript" src="js/knot_ui.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38964774-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link href="styles/knots.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div id="top_panel">
<div class="subpanel">
<div class="subpanel_title">Knot</div>
<div class="subpanel_content">
<div class="component">
<div>
<span class="bold">Parts x Bights</span>
</div>
<div>
<input type="text" id="parts" size=2/> x <input type="text" id="bights" size=2/> <br/>
</div>
</div>
<div class="last_component">
<div>
<span class="bold">Coding</span>
</div>
<div>
<input type="text" id="coding" size=10/>
<input type="checkbox" id="sobre"/> Sobre
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="subpanel">
<div class="subpanel_title">Diagram</div>
<div class="subpanel_content">
<div class="component">
<div><span class="bold">Auto Size</span></div>
<div>
<input type="checkbox" id="auto_calc_size"/>
</div>
</div>
<div class="component">
<div><span class="bold">Strand Width</span></div>
<div><input type="text" id="strand_width" size=2/></div>
</div>
<div class="component">
<div><span class="bold">Strand Gap Size</span></div>
<div><input type="text" id="strand_gap_size" size=2/></div>
</div>
<div class="component">
<div><span class="bold">Width x Height</span></div>
<div>
<input type="text" id="width" size=4/> x <input type="text" id="height" size=4/>
</div>
</div>
<div class="component">
<div><span class="bold">Bights</span></div>
<div><select id="orient"><option value="vertical" selected="selected">Top/Bottom</option><option value="horizontal">Left/Right</option></select> <input type="checkbox" id="swap_bight_order"/> Swap order<br/></div>
</div>
<div class="component">
<div><span class="bold">Over Color</span></div>
<div><input type="text" id="over_color" class="color {required:false,hash:true,adjust:false}" size=6/></div>
</div>
<div class="component">
<div><span class="bold">Under Color</span></div>
<div><input type="text" id="under_color" class="color {required:false,hash:true,adjust:false}" size=6/></div>
</div>
<div class="last_component">
<div><span class="bold">Bight Color</span></div>
<div><input type="text" id="miter_color" class="color {required:false,hash:true,adjust:false}" size=6/></div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
<div class="subpanel">
<div class="subpanel_title"><span class="bold">Half Cycle Colors</span> <span id="toggle_show_colors">show</span> <span id="clear_colors">clear</span></div>
<div class="subpanel_content hidden" id="half_cycle_color_panel">
</div>
</div>
<div class="clear"></div>
<div class="subpanel">
<button id="generate">Generate</button>
</div>
<div class="subpanel">
<div id="error"></div>
</div>
<div class="clear"></div>
</div>
<div id="diagram_panel">
<div class="subpanel">
<div>
<div style="float: left; margin: 5px">
<div class="bold">Half cycle</div>
<div class="small_component"><img src="images/prev.png" id="prev"/><input type="text" id="half_cycle" size=2/><img src="images/next.png" id="next"/></div>
</div>
<div style="float: left; margin: 5px">
<div class="bold">From</div>
<div class="small_component" id="from_pin"></div>
</div>
<div style="float: left; margin: 5px">
<div class="bold">Run list</div>
<div class="small_component" id="run_list"></div>
</div>
<div style="float: left; margin: 5px">
<div class="bold">To</div>
<div class="small_component" id="to_pin"></div>
</div>
<div class="clear"></div>
</div>
<div style="margin-left: 5px">
<canvas id="knot_diagram"></canvas>
</div>
</div>
<div class="clear"></div>
</div>
<div class="panel">
<div class="subpanel">
<div class="subpanel_content">
<div id="half_cycles">
</div>
</div>
</div>
<div>
<div class="clear"></div>
<canvas id="test"></canvas>
</body>
</html>