-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
287 lines (235 loc) · 10 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<!--
. . . . .
|- |-. ,-. ,-. ,-. |- |- ,-. ,-. ,-. ,-. |-. ,-. ,-. ,-.
| | | |-' | | ,-| | | |-' | | | `-. | | ,-| | |-'
`' ' ' `-' |-' `-^ `' `' `-' ' ' ' `-' ' ' `-^ ' `-'
|
-->
<html manifest="taumetatau.appcache">
<head>
<meta charset="utf-8">
<title>The Pattern Share</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="css/bootstrap.united.min.css">
<!--link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.min.css"-->
<link rel="stylesheet" type="text/css" href="css/app.css">
<!--link rel="stylesheet" type="text/css" href="css/style.css"-->
<link rel="shortcut icon" href="images/fav.png" type="image/x-icon" />
</head>
</body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#" style="padding:6px 20px;"><img src="images/headerlogo.png" style="height:25px"/></a>
<div class="nav-collapse collapse">
<ul class="nav">
<li id="menuMeasurements"><a href="#measurements">Measurements</a></li>
<li id="menuPatterns"><a href="#patterns">Patterns</a></li>
<li id="menuAbout"><a href="#about">About</a></li>
</ul>
<form class="navbar-form pull-right">
<input class="span2" type="text" placeholder="Username (doesn't)">
<input class="span2" type="password" placeholder="Password (work)">
<button type="submit" class="btn">(Yet...)</button>
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div id="wrapper" class="container"></div>
<footer>
<div class="container">
<p class="pull-right">We're Sew Buzzed</p>
</div>
</footer>
<script id="aboutTemplate" type="text/template">
<div class="row">
<div class="span6">
<h1>About Us</h1>
<p>
This site is a collaboration between the <a class="plink" href="http://www.taumeta.org/">Tau Meta Tau Physica</a>
and <a class="plink" href="http://thepatternshare.com/">The Pattern Share</a> project.
</p>
<p>
The <a class="plink" href="http://www.taumeta.org/">Tau Meta Tau Physica</a> project was founded by Susan Spencer
to meet a need for digital pattern making. In the last two years, the project has been implemented as a batch-mode
application written in Python, and is currently being converted to an HTML5 web application.
</p>
<p>
The <a class="plink" href="http://thepatternshare.com/">The Pattern Share</a> project is a masters project by
designer <a class="plink" href="http://www.justincouchdesign.com">Justin Couch</a>, who attends the Rhode Island School of Design.
</p>
<p>
Major code contributions to the TMTP project were made by <a class="plink" href="http://www.ai4qr.com">Steve Conklin</a>, an open source software developer.
</p>
<p>
Web site development and styling by Molly Richardson, founder of <a class="plink" href="http://www.mr21solutions.com/">MR 21 Solutions</a>.
</p>
<h1>Press and Video</h1>
<p>
<a class="plink" href="http://river-valley.tv/open-source-project-to-enable-fashion-design-using-open-data-formats/">Susan's presentation at Libre Graphics Meeting 2010 (video)</a>
</p>
<p>
<a class="plink" href="http://www.youtube.com/watch?v=Cd35-2xcfbk">Susan's presentation at Libre Graphics Meeting 2011 (video)</a>
</p>
<p>
<a class="plink" href="http://www.linux-magazine.com/Online/News/Tau-Meta-Tau-Physica-Bringing-Open-Source-to-Fashion">Susan's interview with Linux Magazine, Jan 7, 2011</a>
</p>
<h1>Thank Yous</h1>
<p>
Shout outs!
</p>
</div>
</div>
</script>
<script id="todoTemplate" type="text/template" >
<div class="markdown-body">
<h1>TO DO</h1>
<p>Measurements view:</p>
<ul>
<li>edit app-defaults.js to make default measurements available (man/woman)</li>
<li>better layout for the form, with helper images</li>
<li>unit conversion cm <--> in</li>
<li>ability to save/restore measurements from file</li>
</ul>
<p>Patterns view:</p>
<ul>
<li>save to SVG</li>
</ul>
<p>Back-end:</p>
<ul>
<li>database structure</li>
<li>user log-in</li>
<li>receive requests for saving JSON data from webapp</li>
</ul>
<p>Other:</p>
<ul>
<li>use require.js for better organization</li>
</ul>
<p>Raphael.js implementation available <a href="index-raphael.html#patterns">HERE</a></p>
</div>
</script>
<script id="patternsTemplate" type="text/template">
<form id="patternInput" class="">
<div class="row form-inline">
<div class="measwrapper span12">
<!--h1>Patterns</h1-->
<div class="well">
<select id="patternCustomerSelect">
<!--option value="dummy">1. Select Measurement...</option-->
<option value="dummy">Default Measurements</option>
<% for (var i in customers) { %>
<option value="<%- customers[i].cid %>" <% if (TMTP.bodyCurrent && customers[i].cid == TMTP.bodyCurrent.cid) { %> selected <% } %>><%- customers[i].attributes.clientdata.customername %></option>
<% } %>
</select>
<select id="patternSelect">
<option value="dummy">Select Pattern...</option>
<% for (var i in patterns) { %>
<option value="<%- patterns[i].cid %>" <% if (TMTP.patternCurrent && patterns[i].cid == TMTP.patternCurrent.cid) { %> selected <% } %>><%- patterns[i].attributes.pattern.title %></option>
<% } %>
</select>
<label class="checkbox">
<input type="checkbox" id="constopt" <% if (options.constopt){ %> checked <% } %> />Construction
</label>
<label class="checkbox">
<input type="checkbox" id="constptopt" <% if (options.constptopt){ %> checked <% } %> />Points
</label>
<label class="checkbox">
<input type="checkbox" id="gridopt" <% if (options.gridopt){ %> checked <% } %>/>Grid
</label>
<!--button id="renderSvg" class="btn btn-danger pull-right"> Render the pattern! </button-->
<button id="saveSvg" class="btn btn-danger pull-right"> Save as SVG </button>
</div>
</div>
</div>
<div id="alert" class="alert alert-error">
Some measurements are missing. Please <a href="#measurements" style="text-decoration: underline">fill out the form</a>
</div>
</form>
<div id="stage" class="row">
</div>
</script>
<script id="patternsRenderTemplate" type="text/template">
<div id="parameters" class="span3">
<!--h3>Parameters</h3-->
<% for (var i in parameters) { %>
<label><% if(title[i]){ %><%- title[i] %><% }else{%><%- i %><% } %></label>
<input class="parameter" id="<%- i %>" type="number" value="<%- parameters[i] %>"/>
<% } %>
</div>
<div class="span9">
<div id="drawing" class="" >
<!--h3>Rendering Surface</h3-->
</div>
</div>
</script>
<script id="measurementTemplate" type="text/template">
<form id="measurementInput" class="">
<div class="row form-inline">
<div class="measwrapper span12">
<!--h1>Measurements</h1-->
<div class="well control-group">
<select id="customerSelect">
<option value="dummy">Select Customer...</option>
<% for (var i in customers) { %>
<option value="<%- customers[i].cid %>" <% if (TMTP.bodyCurrent && customers[i].cid == TMTP.bodyCurrent.cid) { %> selected <% } %>><%- customers[i].attributes.clientdata.customername %></option>
<% } %>
</select>
<button id="saveMeasurements" class="btn btn-success pull-right" type="submit"> SAVE </button>
<button id="deleteMeasurements" class="btn btn-danger pull-right" type="submit"> DELETE </button>
<button id="newMeasurements" class="btn btn-warning pull-right" type="submit"> NEW </button>
</div>
</div>
</div>
<div id="alert" class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<b>Hooray!</b> You just saved measurements for customer <b><%= name %></b>
</div>
<div class="row">
<div id="drawarea" class="drawarea">
</div>
</div>
</form>
</script>
<script id="measurementFormTemplate" type="text/template">
<div class="form-inline">
<div class="measwrapper span12">
<!--h1>Measurements</h1-->
<div class="control-group">
<input type="text" id="customername" class="span6" placeholder="Customer Name" value="<%= data.attributes.clientdata.customername %>" data-toggle="tooltip" data-placement="right" data-trigger="manual">
<label class="radio">
<input type="radio" id="cm" name="units" <% if(data.attributes.clientdata.units == "cm"){ %> checked="true" <%}%> /> Centimeters
</label>
<label class="radio">
<input type="radio" id="in" name="units" <% if(data.attributes.clientdata.units == "in"){ %> checked="true" <%}%> /> Inches
</label>
<hr>
</div>
</div>
</div>
<% for (var i in data.attributes.clientdata.measurements) { %>
<div class="span3 control-group">
<label><%- title[i] %></label>
<input type="text" id="<%- i %>" placeholder="" value="<%- data.attributes.clientdata.measurements[i] %>" class="span3 numerical <% if (missing[i]==true) { %>missing<% } %>" data-toggle="tooltip" data-placement="top" data-trigger="manual">
</div>
<% } %>
</form>
</script>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/underscore-min.js"></script>
<script type="text/javascript" src="js/backbone-min.js"></script>
<script type="text/javascript" src="js/patterndraw.js"></script>
<!--script type="text/javascript" src="js/web.js"></script-->
<script type="text/javascript" src="js/app-defaults.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>