-
Notifications
You must be signed in to change notification settings - Fork 0
/
formalize_jquery_errors.html
288 lines (262 loc) · 8.58 KB
/
formalize_jquery_errors.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
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Formalize</title>
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- CSS : implied media="all" -->
<link rel="stylesheet" href="css/style.css?v=2">
<!-- Uncomment if you are specifically targeting less enabled mobile browsers
<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
<script src="js/libs/modernizr-2.0.min.js"></script>
<!-- Also put Selectivizr at the top -->
<script type="text/javascript" src="js/libs/mootools-core-1.3.1-full-compat-yc.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="js/libs/selectivizr.js"></script>
<noscript><link rel="stylesheet" href="css/selectivizr.css" /></noscript>
<![endif]-->
</head>
<body>
<div id="page">
<header>
</header>
<div id="main" role="main">
<h1>
Example of all form elements
</h1>
<form action="" enctype="multipart/form-data" onsubmit="return false;">
<p>
<input type="checkbox" id="test_checkbox_1" name="test_checkbox_1" />
<label class="error" for="test_checkbox_1">
Test checkbox 1
</label>
<input type="checkbox" id="test_checkbox_2" name="test_checkbox_2" />
<label class="error" for="test_checkbox_2">
Test checkbox 2
</label>
<input type="checkbox" id="test_checkbox_3" name="test_checkbox_3" />
<label class="error" for="test_checkbox_3">
Test checkbox 3
</label>
</p>
<p>
<input type="radio" id="test_radio_1" name="test_radio_group" />
<label class="error" for="test_radio_1">
Test radio 1
</label>
<input type="radio" id="test_radio_2" name="test_radio_group" />
<label class="error" for="test_radio_2">
Test radio 2
</label>
<input type="radio" id="test_radio_3" name="test_radio_group" />
<label class="error" for="test_radio_3">
Test radio 3
</label>
</p>
<p>
<label class="error" for="select_dd">
Select drop-down
</label>
<br />
<select class="error" id="select_dd" name="select_dd">
<optgroup label="Group 1">
<option value="1">Some text goes here</option>
<option value="2">Another choice could be here</option>
<option value="3">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 2">
<option value="4">Some text goes here</option>
<option value="5">Another choice could be here</option>
<option value="6">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 3">
<option value="7">Some text goes here</option>
<option value="8">Another choice could be here</option>
<option value="9">Yet another item to be chosen</option>
</optgroup>
</select>
<input class="error" type="text" id="text_inline" name="text_inline" />
<input type="button" value="Hello" />
</p>
<p>
<label class="error" for="select_multi">
Select multiple
</label>
<br />
<select class="error" id="select_multi" name="select_multi" multiple="multiple" size="10">
<optgroup label="Group 1">
<option value="1">Some text goes here</option>
<option value="2">Another choice could be here</option>
<option value="3">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 2">
<option value="4">Some text goes here</option>
<option value="5">Another choice could be here</option>
<option value="6">Yet another item to be chosen</option>
</optgroup>
<optgroup label="Group 3">
<option value="7">Some text goes here</option>
<option value="8">Another choice could be here</option>
<option value="9">Yet another item to be chosen</option>
</optgroup>
</select>
</p>
<p>
<label class="error" for="textarea">
Textarea
</label>
<br />
<textarea class="error" id="textarea" name="textarea" rows="5" placeholder="This is an example of HTML5 placeholder text."></textarea>
</p>
<table class="horiz">
<tr>
<td>
<label class="error" for="url">
URL + Autofocus
</label>
<br />
<input class="error" type="url" id="url" name="url" value="http://" autofocus="autofocus" />
</td>
<td>
<label class="error" for="email">
Email
</label>
<br />
<input class="error" type="email" id="email" name="email" placeholder="[email protected]" />
</td>
<td>
<label class="error" for="text">
Text
</label>
<br />
<input class="error" type="text" id="text" name="text" />
</td>
</tr>
<tr>
<td>
<label class="error" for="datetime-local">
Datetime local
</label>
<br />
<input class="error" type="datetime-local" id="datetime-local" name="datetime-local" />
</td>
<td>
<label class="error" for="number">
Number
</label>
<br />
<input class="error" type="number" id="number" name="number" />
</td>
<td>
<label class="error" for="tel">
Tel (phone)
</label>
<br />
<input class="error" type="tel" id="tel" name="tel" />
</td>
</tr>
<tr>
<td>
<label class="error" for="datetime">
Datetime
</label>
<br />
<input class="error" type="datetime" id="datetime" name="datetime" />
</td>
<td>
<label class="error" for="date">
Date
</label>
<br />
<input class="error" type="date" id="date" name="date" />
</td>
<td>
<label class="error" for="month">
Month
</label>
<br />
<input class="error" type="month" id="month" name="month" />
</td>
</tr>
<tr>
<td>
<label class="error" for="search">
Search
</label>
<br />
<input class="error" type="search" id="search" name="search" />
</td>
<td>
<label class="error" for="range">
Range
</label>
<br />
<input class="error" type="range" id="range" name="range" />
</td>
<td>
<label class="error" for="file">
File upload
</label>
<br />
<input class="error" type="file" id="file" name="file" />
</td>
</tr>
</table>
<p>
<input type="submit" value="Input - Submit" />
<input type="button" value="Input - Button" />
<input type="reset" value="Input - Reset" />
<button>Button tag</button>
</p>
</form>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.2.min.js"%3E%3C/script%3E'))</script>
<!-- Formalize (http://formalize.me) -->
<script src="js/libs/formalize/jquery.formalize.js"></script>
<!-- Also put Lettering.js at the top -->
<script src="js/libs/jquery.lettering.js"></script>
<!-- scripts concatenated and minified via ant build script-->
<script src="js/script.js"></script>
<!-- end concatenated and minified scripts-->
<!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script>
<script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
<![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>