This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
388 lines (348 loc) · 14 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>formcore</title>
<link rel="stylesheet" href="https://filamentgroup.github.io/demo-head/demohead.css">
<link rel="stylesheet" href="/formcore/dist/dependencies.css">
<link rel="stylesheet" href="/formcore/css/demo.css">
<link rel="stylesheet" href="/formcore/css/formcore.css">
<link rel="stylesheet" href="/formcore/css/formcore-validation.css">
<link rel="stylesheet" href="/formcore/css/formcore-button.css">
<link rel="stylesheet" href="/formcore/css/grids.css">
<link rel="stylesheet" href="/formcore/css/character-counter.css">
<link rel="stylesheet" href="/formcore/css/credit-card-display.css">
<link rel="stylesheet" href="/formcore/css/disclosure.css">
<script src="/formcore/dist/dependencies.js"></script>
<script src="/formcore/js/numeric-input.js"></script>
<script src="/formcore/js/numeric-input-init.js"></script>
<script src="/formcore/js/maxlength-input.js"></script>
<script src="/formcore/js/maxlength-input-init.js"></script>
<script src="/formcore/js/password-init.js"></script>
<script src="/formcore/js/textarea-grow.js"></script>
<script src="/formcore/js/character-counter.js"></script>
<script src="/formcore/js/credit-card-display.js"></script>
<script src="/formcore/js/disclosure.js"></script>
<script src="https://filamentgroup.github.io/demo-head/loadfont.js"></script>
<script>
grunticon([ "/dist/grunticon/icons.data.svg.css", "/dist/grunticon/icons.data.png.css", "/dist/grunticon/icons.fallback.css" ]);
$(function(){
$( document ).trigger( "enhance" );
$( "html" ).addClass( "enhanced" );
});
</script>
</head>
<body>
<div class="demo-header">
<div class="company">
<img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
</div>
<div class="details">
<h1 class="description-container">Demo of <span class="repo-name">Formcore</span>
<span class="description">Light-weight, validated forms</span>
</h1>
<ul class="outbound-links">
<li><a href="https://github.com/filamentgroup/formcore">Code</a></li>
<li><a href="https://github.com/filamentgroup/formcore/issues">Issues</a></li>
</ul>
</div>
</div>
<div class="nav-container">
<div class="docs-globalnav">
<nav class="docs-nav">
<a href="/formcore/">Patterns</a>
<a href="/formcore/views/text-inputs.html">Text Inputs</a>
<a href="/formcore/views/checks-radios.html">Checkboxes & Radio Buttons</a>
<a href="/formcore/views/selects.html">Selects</a>
<a href="/formcore/views/disclosure.html">Disclosure</a>
</nav>
</div>
</div>
<div class="docs-main" data-input-val-toggle>
<h2>Examples</h2>
<h3>Create an Account</h3>
<div data-xrayhtml>
<form novalidate data-validatorform>
<div class="sect-group">
<div class="sect-inner-a">
<label class="form-group required">
<b class="label-text">First Name</b>
<input type="text" data-message="Please enter your first name." required >
</label>
</div>
<div class="sect-inner-b">
<label class="form-group required">
<b class="label-text">Last Name</b>
<input type="text" data-message="Please enter your last name." required>
</label>
</div>
<div class="sect-group-a">
<div class="sect-inner-a">
<label class="form-group">
<b class="label-text">Birthday</b>
<div class="custom-select">
<select>
<option selected disabled>Month…</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
</div>
</label>
</div>
<div class="sect-inner-b">
<label class="form-group">
<b class="label-text">Day</b>
<input type="number" inputmode="numeric" pattern="[0-9]*" data-numeric-input data-validate="numeric" min="1" max="31" data-formcore-type="date-day">
</label>
</div>
</div><!-- /.sect-group-a -->
<label class="form-group required">
<b class="label-text">Email</b>
<input type="email" data-validate="email" required autocorrect="off" autocapitalize="none" spellcheck="false">
</label>
<label class="form-group required">
<b class="label-text">Password</b>
<span class="helper">Minimum 6 characters with an uppercase letter, a lowercase letter, and a number.</span>
<input type="password" minlength="6" data-validate="password" required autocorrect="off" autocapitalize="none" spellcheck="false">
</label>
<label class="form-group required">
<b class="label-text">Confirm Password</b>
<input type="password" minlength="6" data-validate="passwordconfirm" required data-password-confirm autocorrect="off" autocapitalize="none" spellcheck="false">
</label>
</div>
</form>
</div><!-- /data-xrayhtml -->
<h3>Log In</h3>
<div data-xrayhtml>
<form novalidate data-validatorform>
<label class="form-group required">
<span class="label-text">Email</span>
<input type="email" data-validate="email" autocorrect="off" autocapitalize="none" spellcheck="false" required>
</label>
<label class="form-group required" data-mask-pw>
<b class="label-text">Password</b>
<input type="password" minlength="6" data-validate="password" required autocorrect="off" autocapitalize="none" spellcheck="false">
</label>
<label class="form-group checkbox">
<input type="checkbox" name="opt1" id="opt1">
<span class="item">Remember me</span>
</label>
</form>
</div><!-- /data-xrayhtml -->
<h3>Shipping Address</h3>
<div data-xrayhtml>
<form novalidate data-validatorform>
<div class="sect-group">
<label class="form-group required">
<b class="label-text">Street Address</b>
<input type="text" data-message="Please enter your address." required>
</label>
<label class="form-group required">
<b class="label-text">City</b>
<input type="text" data-message="Please enter your city." required>
</label>
<div class="sect-inner-a">
<label class="form-group required">
<b class="label-text">State</b>
<div class="custom-select">
<select id="states" required>
<option value="-1" selected disabled>Choose a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
</div>
</label>
</div>
<div class="sect-inner-b">
<label class="form-group required">
<span class="label-text">ZIP Code</span>
<input type="number" data-validate="zip" inputmode="numeric" pattern="[0-9]*" maxlength="9" placeholder="00000" data-numeric-input data-numeric-input-nav-disabled data-politespace data-politespace-grouplength="5," data-politespace-delimiter="-" class="formcore-disable-spinner">
</label>
</div>
<label class="form-group required">
<b class="label-text">Country</b>
<div class="custom-select">
<select id="countries" required>
<option value="CA">Canada</option>
<option value="UK">United Kingdom</option>
<option value="US" selected>United States</option>
</select>
</div>
</label>
</div>
</form>
</div><!-- /data-xrayhtml -->
<h3>Payment</h3>
<div data-xrayhtml>
<form novalidate data-validatorform>
<div class="sect-group creditcarddisplay" data-validator-anchor>
<label class="sect-inner-a form-group required">
<span class="label-text">Card Number</span>
<input type="number"
inputmode="numeric" pattern="[0-9]*" data-numeric-input data-numeric-input-nav-disabled
data-politespace data-politespace-grouplength="4" data-politespace-creditcard data-politespace-creditcard-maxlength
required maxlength="16" data-validate="credit"
data-credit-card-display
data-creditable-creditcard
placeholder="0000 0000 0000 0000"
class="formcore-disable-spinner">
</label>
<div class="sect-inner-b">
<p class="creditcarddisplay_desc">We accept:</p>
<span class="creditcarddisplay_type creditcarddisplay_type-visa icon-card-visa">Visa</span>
<span class="creditcarddisplay_type creditcarddisplay_type-mastercard icon-card-mastercard">Mastercard</span>
<span class="creditcarddisplay_type creditcarddisplay_type-amex icon-card-amex">AMEX</span>
<!-- <span class="creditcarddisplay_type creditcarddisplay_type-discover icon-card-discover">Discover</span> -->
</div>
</div>
<div class="sect-group sect-group-b">
<div class="sect-inner-a">
<label class="form-group required">
<b class="label-text">Expires</b>
<div class="custom-select">
<select required>
<option value="-1" selected disabled>Month</option>
<option value="1">01 - January</option>
<option value="2">02 - February</option>
<option value="3">03 - March</option>
<option value="4">04 - April</option>
<option value="5">05 - May</option>
<option value="6">06 - June</option>
<option value="7">07 - July</option>
<option value="8">08 - August</option>
<option value="9">09 - September</option>
<option value="10">10 - October</option>
<option value="11">11 - November</option>
<option value="12">12 - December</option>
</select>
</div>
</label>
</div>
<div class="sect-inner-b">
<label class="form-group required">
<b class="label-text">Year</b>
<div class="custom-select">
<select required>
<option value="-1" selected disabled>Year</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
</select>
</div>
</label>
</div>
</div><!-- /.sect-group-b -->
<label class="form-group required">
<span class="label-text">Security Code</span>
<input type="number"
inputmode="numeric"
required maxlength="4"
pattern="[0-9]*"
data-numeric-input
data-numeric-input-nav-disabled
data-creditable-securitycode
placeholder="0000"
class="formcore-disable-spinner">
</label>
<label class="form-group required">
<span class="label-text">Name on Card</span>
<input type="text" required>
</label>
<label class="form-group required">
<span class="label-text">ZIP Code</span>
<input type="number" data-validate="zip" inputmode="numeric" data-numeric-input data-numeric-input-nav-disabled pattern="[0-9]*" maxlength="9" placeholder="00000" required data-politespace data-politespace-grouplength="5," data-politespace-delimiter="-" class="formcore-disable-spinner">
</label>
</form>
</div><!-- /data-xrayhtml -->
<h3>Redeem Gift Card</h3>
<div data-xrayhtml>
<form novalidate data-validatorform>
<div class="sect-group">
<label class="form-group required">
<span class="label-text">Gift Card Number</span>
<input type="number" inputmode="numeric" data-numeric-input data-numeric-input-nav-disabled pattern="[0-9]*" minlength="8" maxlength="8" placeholder="8 digits" data-validate="minlength" data-message="Please enter an 8-digit card number." required class="formcore-disable-spinner" data-formcore-type="numeric">
</label>
<div class="sect-inner-a">
<label class="form-group required">
<span class="label-text">PIN</span>
<input type="number" inputmode="numeric" data-numeric-input data-numeric-input-nav-disabled pattern="[0-9]*" minlength="4" maxlength="4" placeholder="4 Digits" data-validate="minlength" data-message="Please enter a 4-digit PIN." required class="formcore-disable-spinner" data-formcore-type="numeric">
</label>
</div>
<div class="sect-inner-b">
</div>
</div>
</form>
</div><!-- /data-xrayhtml -->
<!-- Send Credit
Currency radio toggle (USD, Euro)
Amount $ (numeric, required, deal with different currencies placement of symbols, use politespace to add in $ on blur?)
Email (email, required)
Checkbox for gift message - if checkbox is checked, related input must have a value -->
</div><!-- /docs-main -->
</body>
</html>