-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathform.html
213 lines (193 loc) · 7.14 KB
/
form.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
<!DOCTYPE html>
<!--[if IE 7]> <html lang="en" class="lt-ie9 lt-ie8 no-js"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="lt-ie9 no-js"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset=utf-8 />
<meta name="author" content="Mark Boulton Design" />
<meta name="description" content="UCL Homepage" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UCL Design Language</title>
<link href="//static.ucl.ac.uk/indigo/css/screen.min.css" media="screen, projection" rel="stylesheet" type="text/css" />
<script src="//static.ucl.ac.uk/indigo/js/lib/jquery-1.7.1.min.js"></script>
<script src="//static.ucl.ac.uk/indigo/js/src/all-site.js"></script>
<script src="//static.ucl.ac.uk/indigo/js/lib/modernizr-custom.js"></script>
<script>
var cuttingTheMustard = document.querySelector && window.localStorage && window.addEventListener;
Modernizr.load({
//cutting the mustard as used by the BBC
test : cuttingTheMustard
//if old browser load the shiv
,nope : [
'//static.ucl.ac.uk/indigo/js/lib/html5shiv-printshiv.min.js'
,'//static.ucl.ac.uk/indigo/js/lib/respond.min.js'
]
});
//set conditional assets for main.js
var globalSiteSpecificVars = {
pathToJquery: '//static.ucl.ac.uk/indigo/js/lib/jquery-1.9.1.min'
,googleAnalyticsIdsArray: []//specify array of site specific id's NOT UCL generic UA-943297-1
}
if(cuttingTheMustard){
globalSiteSpecificVars.pathToJquery = "//static.ucl.ac.uk/indigo/js/lib/jquery-2.1.1.min";
}
</script>
<script src="//static.ucl.ac.uk/indigo/js/lib/require.min.js"></script>
<script src="//static.ucl.ac.uk/indigo/js/main.js"></script>
<script>
require(["app/general","app/searchWithAutoComplete"]);//load the default stuff
</script>
</head>
<body id="form-view">
<form action="#" class="form">
<fieldset class="form__group">
<div class="message">
<p>Message box</p>
</div>
<div class="message message--warning">
<p>Warning message box</p>
</div>
<div class="message message--success">
<p>Success message box</p>
</div>
<fieldset class="form__group">
<label for="text">Text Input
<abbr title="Required">*</abbr>
</label>
<input class="form__control" type="text" class="text" id="text">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="text">Text Input Error States
<abbr title="Required">*</abbr>
</label>
<input class="form__control" type="text" class="text error" id="text">
<em class="error">Password is incorrect</em>
</fieldset>
<fieldset class="form__group form__group--inline">
<label for="text">Inline Text Input
<abbr title="Required">*</abbr>
</label>
<input class="form__control" type="text" class="text" id="text">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group form__group--prepend">
<label for="text">Text Input with prepended label
<abbr title="Required">*</abbr>
</label>
<span>Prepended label</span>
<input class="form__control" type="text" class="text" id="text">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="password">Password</label>
<input class="form__control" type="password" class="text" id="password">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="url">Web Address</label>
<input class="form__control" type="url" class="text" id="url" placeholder="http://">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<legend>Personal Information:</legend>
<label for="email">Email Address</label>
<input class="form__control" type="email" class="text" id="email" placeholder="[email protected]">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="birthday">Birthday</label>
<input class="form__control" type="date" name="bday" id="birthday">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="phone">Telephone Number</label>
<input class="form__control" type="tel" class="text" id="phone" placeholder="+44">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="phone">Quantity</label>
<input class="form__control" type="number" name="quantity" min="1" max="5">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="phone">Range</label>
<input type="range" name="points" min="1" max="5">
<em>Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="textarea">Textarea</label>
<textarea class="form__control" cols="48" rows="8" id="textarea"></textarea>
<em class="clear">Note about this field</em>
</fieldset>
<fieldset class="form__group">
<label for="search">Search</label>
<input class="form__control" type="search" class="text" id="search-form">
<input type="submit" id="submit" value="Search" class="btn">
</fieldset>
<fieldset class="form__group form__group--options">
<label for="select">Select</label>
<select id="select">
<optgroup label="Option Group 1">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</optgroup>
<optgroup label="Option Group 2">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</optgroup>
</select>
<em>Note about this selection</em>
</fieldset>
<fieldset class="form__group form__group--options">
<label for="checkbox">Single Checkbox</label>
<input type="checkbox" class="checkbox" id="checkbox">
<label class="check" for="checkbox">Label</label>
</fieldset>
<fieldset class="form__group form__group--options">
<legend>Checkbox
<abbr title="Required">*</abbr>
</legend>
<ul class="list-unstyled">
<li>
<input type="checkbox" checked="checked" name="checkbox" id="checkbox1">
<label for="checkbox1">Choice A</label>
</li>
<li>
<input type="checkbox" name="checkbox" id="checkbox2">
<label for="checkbox2">Choice B</label>
</li>
<li>
<input type="checkbox" name="checkbox" id="checkbox3">
<label for="checkbox3">Choice C</label>
</li>
</ul>
</fieldset>
<fieldset class="form__group form__group--options">
<legend>Radio</legend>
<ul class="list-unstyled">
<li>
<input type="radio" checked="checked" class="radio" name="radio" id="radio1">
<label for="radio1">Option 1</label>
</li>
<li>
<input type="radio" class="radio" name="radio" id="radio2">
<label for="radio2">Option 2</label>
</li>
</ul>
</fieldset>
<fieldset class="form__group">
<label for="file">Upload a file</label>
<input type="file" name="file" id="file">
</fieldset>
<div class="submit">
<input type="button" value="Default" class="btn btn--gradient">
<input type="button" value="Disabled" disabled="disabled" class="btn btn--gradient disabled">
<a class="cancel" href="#">Cancel</a>
</div>
</fieldset>
</form>
</body>
</html>