-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-iphone.html
194 lines (152 loc) · 5.92 KB
/
index-iphone.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
<?xml version="1.0" encoding="UTF-8" ?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="The website of Shaun Hare, a web developer living in the East Midlands, UK." />
<meta name="author" content="Shaun Hare" />
<meta name="copyright" content="Shaun Hare" />
<meta name="ICBM" content="53.300672,-0.469408" />
<meta name="robots" content="index,follow" />
<!-- personal stuff for dataportability -->
<link rel="openid.server" href="http://www.myopenid.com/server" />
<link rel="openid.delegate" href="http://shaunhare.myopenid.com/" />
<link rel="home" href="/" title="Home page" />
<!-- small graphics to brighten up interweb -->
<link rel="Shortcut Icon" type="image/ico" href="images/favicon.ico" />
<link rel="apple-touch-icon" type="image/png" href="../images/apple-touch-icon.png" />
<!-- styling -->
<link rel="stylesheet" type="text/css" href="../css/screen.css?20090201" media="all" />
<link rel="stylesheet" type="text/css" href="form-css-by-malarkey.css" media="screen" />
<title>toggle Optional fields plugin for Malarkey</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.toggleOptionalFields.js"></script>
<script type="text/javascript">
$("document").ready(
function(){
$("#example-form").toggleOptionalFields();
});
</script>
<style>
body{
/*-webkit-animation: scroll 1s 1;*/
-webkit-transform: translateY(-60px);
}
</style>
</head>
<body class="shaunhare.co.uk" >
<h1>Optional Fields jQuery Plugin</h1>
<p> A jQuery plugin as requested by Andy Clarke (http://stuffandnonsense.co.uk, @Malarkey) to have effect as
described in <a class="inline" href="http://stuffandnonsense.co.uk/blog/about/trimming_form_fields_repost">Andy Clarke's original blog post</a></p>
<h2>Example usage</h2>
<pre>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.toggleOptionalFields.js" type="text/javascript"></script>
<script>
$(document).ready(function()
{
$("#example-form").toggleOptionalFields();
});
</script>
</pre>
<p><a href="jquery.toggleOptionalFields.js">Download source -</a></p>
<p><a href="jquery.toggleOptionalFields.min.js">Grab a minified version</a></p>
<p>Update in line with comments on the original blog post this plugin has been updated to ensure it encompasses the spirit of progressive enhancement and below is a live example using Andy Clarke's original markup and css.</p>
<h2>Original form example</h2>
<form id="example-form" method="post" action="">
<fieldset>
<p class="optional">
<label for="fm-title">Title</label>
<select id="fm-title" name="fm-title">
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Prof">Prof</option>
</select> <br />
</p>
<p>
<label for="fm-forename">First name (Required)</label>
<input type="text" name="fm-forename" id="fm-forename" /> <br />
</p>
<p>
<label for="fm-surname">Surname (Required)</label>
<input type="text" name="fm-surname" id="fm-surname" /> <br />
</p>
<p class="optional">
<label for="fm-maiden">Maiden or other previous name</label>
<input type="text" id="fm-maiden" name="fm-maiden" /> <br />
</p>
<p class="optional">
<label for="fm-marital">Marital status</label>
<select id="fm-marital" name="fm-marital">
<option value="Single">Single</option >
<option value="Married">Married</option>
<option value="Divorced">Divorced</option>
<option value="Separated">Separated</option>
<option value="Other">Other</option>
</select>
</p>
</fieldset>
<fieldset>
<p class="optional">
<label for="fm-number">House name or number</label>
<input type="text" id="fm-number" name="fm-number" /> <br />
</p>
<p class="optional">
<label for="fm-street">Street or road name</label>
<input type="text" id="fm-street" name="fm-street" /> <br />
</p>
<p class="optional">
<label for="fm-addr">Address</label>
<input type="text" id="fm-addr" name="fm-addr" /> <br />
</p>
<p class="optional">
<label for="fm-town">Town or city</label>
<input type="text" id="fm-town" name="fm-town" /> <br />
</p>
<p class="optional">
<label for="fm-county">County</label>
<input type="text" id="fm-county" name="fm-county" /> <br />
</p>
<p>
<label for="fm-postcode">Postcode (Required)</label>
<input type="text" id="fm-postcode" name="fm-postcode" />
</p>
</fieldset>
<fieldset>
<p>
<label for="fm-telephone">Telephone (Required)</label>
<input type="text" id="fm-telephone" name="fm-telephone" /> <br />
</p>
<p class="optional">
<label for="fm-fax">Fax</label>
<input type="text" id="fm-fax" name="fm-fax" /> <br />
</p>
<p class="optional">
<label for="fm-mobile">Mobile</label>
<input type="text" id="fm-mobile" name="fm-mobile" /> <br />
</p>
<p>
<label for="fm-email">Email (Required)</label>
<input type="text" id="fm-email" name="fm-email" /> <br />
</p>
<p class="optional">
<label for="fm-url">Web site address</label>
<input type="text" id="fm-url" name="fm-url" />
</p>
</fieldset>
</form>
<p> <a class="inline" rel="license" href="http://creativecommons.org/licenses/by/2.0/uk/"> This work including the javascript source code is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License</a></p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1050324-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>