forked from draganbabic/uni-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fauxform.html
executable file
·397 lines (334 loc) · 17.7 KB
/
fauxform.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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<!--
Copyright (c) 2010, Dragan Babic
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
-->
<title>Uni–Form</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html" />
<style type="text/css" media="screen">
@import "css/uni-form.css";
/* You don't need these, they are here to tune up the page */
html{ color: #343434; background: #bcc2c6 url(bg.png); font-size: 14px; line-height: 1.5; font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, Verdana, sans-serif; }
body{}
a:link,
a:visited{ text-decoration: none; color: #254a86; }
a:hover,
a:focus { text-decoration: underline; }
h1,h2,h3,ul,ol,p{ margin: 1.5em 0; }
h1{ margin: 42px auto 28px auto; width: 284px; }
h2{ font-size: 1.25em; }
.uniForm h2{ margin: 1em 0 1em 1.15em; }
fieldset h3{ margin: 1.5em -28px; padding: 14px 28px; line-height: 1; background: #efefef; color: #343434; }
.uniForm{ width: 55%; background: #fff; margin: 28px auto; padding: 28px;
/* CSS3 */
border-radius: 12px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
-o-border-radius: 12px;
-khtml-border-radius: 12px;
}
.header{ margin: -28px -28px 28px -28px; padding: 1px 28px; background: #efefef; border-bottom: 1px solid #dfdfdf; position: relative;
/* CSS3 */
border-top-left-radius: 10px;
border-top-right-radius: 10px;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
}
.header h2{ margin: 1.5em 0 0 0; color: #343434; color: #777; }
.header p { margin-top: 0; font-size: 12px; color: #777; }
.header .cta{ position: absolute; bottom: 26px; right: 28px; text-align: right; font-weight: bold; background: #194789; padding: 7px 14px;
/* CSS3 */
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-o-border-radius: 4px;
-khtml-border-radius: 4px;
text-shadow: -1px -1px 0 rgba(0,0,0,.25);
}
.header .cta:link,
.header .cta:visited{ color: #fff; }
.header .cta:focus,
.header .cta:hover{ text-decoration: none;
/* CSS3 */
box-shadow: 0 0 9px rgba(0,163,255,1);
-webkit-box-shadow: 0 0 9px rgba(0,163,255,1);
-moz-box-shadow: 0 0 9px rgba(0,163,255,1);
}
.header .cta:active{ bottom: 25px; }
.browse{ margin: 0; position: fixed; top: 28px; right: 28px; width: 84px; padding: 28px 28px 14px 28px; font-size: 12px; background: #97a2b0;
/* CSS3 */
border-radius: 12px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
-o-border-radius: 12px;
-khtml-border-radius: 12px;
}
.browse h2{ font-size: 12px; margin: 0 0 14px 0; }
.browse ul{ margin: 0; padding: 0; }
.browse li{ margin: 0 0 14px 0; padding: 0; list-style: none; }
.download{ float: right; position: relative; top: 2px; }
.intro { width: 55%; margin: 28px auto; text-align: center; font-size: 1.15em; }
#footer{ width: 55%; margin: 28px auto; text-align: center; font-size: .75em; color: #777; }
/* IE6 fixes for the page */
* html form.uniForm{ overflow: hidden; }
* html .header{ zoom: 1; overflow: hidden;}
* html .browse{ position: absolute; }
</style>
<link href="css/default.uni-form.css" title="Default Style" media="screen" rel="stylesheet"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="js/uni-form.jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".browse a").click(function() {
$("link").attr("href",$(this).attr('rel'));
return false;
});
});
</script>
<!--[if lte ie 7]>
<style type="text/css" media="screen">
/* Move these to your IE6/7 specific stylesheet if possible */
.uniForm, .uniForm fieldset, .uniForm .ctrlHolder, .uniForm .formHint, .uniForm .buttonHolder, .uniForm .ctrlHolder ul{ zoom:1; }
</style>
<![endif]-->
</head>
<body>
<h1><a href="http://sprawsm.com/uni-form/" title="visit Uni–Form online" style="border: none;"><img src="img/uni-form-logo.png" alt=""/></a></h1>
<p class="intro">
This is an example form demonstrating all of the units offered by Uni–Form, along with suggested message handling, form actions and style.
</p>
<form action="#" class="uniForm">
<div class="header">
<h2>Default Style</h2>
<p>Author: <a href="http://sprawsm.com/">Dragan Babić</a> <a href="http://sprawsm.com/uni-form/" class="cta">see more styles →</a></p>
</div>
<div id="errorMsg">
<h3>Ooops! Your error message title</h3>
<ol>
<li>Error number one</li>
<li>Error number two</li>
</ol>
</div>
<div id="okMsg">
<p>
Looks like everything went OK! Yay!
</p>
</div>
<fieldset>
<h3>Default Form Field Layout</h3>
<div class="ctrlHolder">
<label for=""><em>*</em> Small text input</label>
<input name="" id="" value="" size="35" maxlength="50" type="text" class="textInput small"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder error" id="error1">
<label for=""><em>*</em> Medium text input</label>
<input name="" id="" value="Invalid value" size="35" maxlength="50" type="text" class="textInput medium error"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for=""><em>*</em> Large text input</label>
<input name="" id="" value="" size="35" maxlength="50" type="text" class="textInput large"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for=""><em>*</em> Autosized text input</label>
<input name="" id="" value="" size="15" maxlength="50" type="text" class="textInput auto"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for=""><em>*</em> Textarea</label>
<textarea name="" id="" rows="25" cols="25"></textarea>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for="">Select</label>
<select name="" id="" class="selectInput">
<option value="">Option</option>
</select>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for="">File upload</label>
<input type="file" id="" name="" size="35" class="fileUpload" />
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Multifield with select boxes
</p>
<ul>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Alternate multifield Layout
</p>
<ul class="alternate">
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Multifield with text inputs
</p>
<ul>
<li><label for="">Label <input type="text" id="" name="" class="textInput"/></label></li>
<li><label for="">Label <input type="text" id="" name="" class="textInput"/></label></li>
<li><label for="">Label <input type="text" id="" name="" class="textInput"/></label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Multifield with radios
</p>
<ul>
<li><label for=""><input id="" name="" value="" type="radio" checked="checked"/> Option</label></li>
<li><label for=""><input id="" name="" value="" type="radio"/> Option</label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder noLabel">
<ul>
<li><label for=""><input id="" name="" value="" type="checkbox"/> I have read and agree with the terms and conditions</label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
</fieldset>
<fieldset class="inlineLabels">
<h3>Alternate Form Fields Layout</h3>
<div class="ctrlHolder">
<label for=""><em>*</em> Small text input</label>
<input name="" id="" value="" size="35" maxlength="50" type="text" class="textInput small"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder error" id="error1">
<label for=""><em>*</em> Medium text input</label>
<input name="" id="" value="Invalid value" size="35" maxlength="50" type="text" class="textInput medium error"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for=""><em>*</em> Large text input</label>
<input name="" id="" value="" size="35" maxlength="50" type="text" class="textInput large"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for=""><em>*</em> Autosized text input</label>
<input name="" id="" value="" size="15" maxlength="50" type="text" class="textInput auto"/>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for=""><em>*</em> Textarea</label>
<textarea name="" id="" rows="25" cols="25"></textarea>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for="">Select</label>
<select name="" id="" class="selectInput">
<option value="">Option</option>
</select>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<label for="">File upload</label>
<input type="file" id="" name="" size="35" class="fileUpload" />
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Multifield with select boxes
</p>
<ul>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Alternate multifield Layout
</p>
<ul class="alternate">
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
<li><label for="">Label <select id="" name=""><option value="">Option</option></select></label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Multifield with text inputs
</p>
<ul>
<li><label for="">Label <input type="text" id="" name="" class="textInput"/></label></li>
<li><label for="">Label <input type="text" id="" name="" class="textInput"/></label></li>
<li><label for="">Label <input type="text" id="" name="" class="textInput"/></label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder">
<p class="label">
<em>*</em> Multifield with radios
</p>
<ul>
<li><label for=""><input id="" name="" value="" type="radio" checked="checked"/> Option</label></li>
<li><label for=""><input id="" name="" value="" type="radio"/> Option</label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
<div class="ctrlHolder noLabel">
<ul>
<li><label for=""><input id="" name="" value="" type="checkbox"/> I have read and agree with the terms and conditions</label></li>
</ul>
<p class="formHint">This is a form hint.</p>
</div>
</fieldset>
<div class="buttonHolder">
<button type="submit" class="secondaryAction">← Cancel and go back</button>
<button type="submit" class="primaryAction">Submit</button>
</div>
</form>
<div class="browse">
<h2>Change style</h2>
<ul>
<li><a href="#" rel="css/default.uni-form.css">Default</a> <a href="http://sprawsm.com/uni-form/styles/default.uni-form.zip" class="download" title="download style"><img src="http://sprawsm.com/uni-form/assets/download.png" alt="download" width="9" height="12" /></a></li>
<li><a href="#" rel="css/blue.uni-form.css">Blue</a> <a href="http://sprawsm.com/uni-form/styles/blue.uni-form.zip" class="download" title="download style"><img src="http://sprawsm.com/uni-form/assets/download.png" alt="download" width="9" height="12" /></a></li>
<li><a href="#" rel="css/dark.uni-form.css">Dark</a> <a href="http://sprawsm.com/uni-form/styles/blue.uni-form.css" class="download" title="download style"><img src="http://sprawsm.com/uni-form/assets/download.png" alt="download" width="9" height="12" /></a></li>
</ul>
</div>
<div id="footer">
<p>Uni-Form is created by <a href="http://sprawsm.com/" title="Dragan is the founder of Superawesome">Dragan Babić</a> and is licensed under the MIT license.</p>
</div>
</body>
</html>