This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
index.html
202 lines (179 loc) · 6.33 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>jQuery Placeholder</title>
<link href='http://fonts.googleapis.com/css?family=Molengo' rel='stylesheet' type='text/css'>
<style type="text/css" media="screen">
body{
background: #f0f0f0 url(http://mario.ec/images/body_bg.png);
font-family: Helvetica, Arial, sans-serif;
margin: 10px;
}
h1{
font-family: Gill Sans, Gill Sans MT, Century Gothic, helvetica, arial, serif;
font-weight: normal;
}
div.message{
padding: 5px 10px;
margin: -10px -10px 0 -10px;
background: #672781;
border-bottom: 1px solid #000;
text-shadow: 0 1px 1px #000;
background: -webkit-gradient(linear, left top, left bottom, from(#8632a9), to(#672781));
background: -moz-linear-gradient(-90deg, #8632a9, #672781);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
-mox-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
div.message p{
padding: 0;
margin: 0;
color: #fff;
}
div.message a,
div.message a:visited{
color: #64c0b2;
text-decoration: none;
}
div.message a:hover{
text-decoration: underline;
}
fieldset{
margin: 10px;
border: 1px solid #d0d0d0;
background: #fff;
padding: 5px 10px 10px;
}
#submit{
font-size: 0.8em;
height: 23px;
}
legend{
font-family: Gill Sans, Gill Sans MT, Century Gothic, helvetica, arial, serif;
font-variant: small-caps;
margin-bottom: 10px;
font-size: 1em;
}
label:not(.watermark){
font-family: Gill Sans, Gill Sans MT, Century Gothic, helvetica, arial, serif;
font-style: italic;
margin-right: 10px;
}
p.info{
background: #ffc;
border: 1px solid #FFE793;
padding: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
p.alt{
background-color: #f0f0f0 !important;
border-color: #d0d0d0 !important;
}
textarea{
padding: 8px;
}
form input{
margin-top: 5px;
height: 20px;
margin-bottom: 5px;
}
form input,
form textarea{
background: -webkit-gradient(linear, left top, left bottom, from(#f6f6f6), to(#fff));
background: -moz-linear-gradient(-90deg, #f6f6f6, #fff);
border: 1px solid #bbb;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
}
form input[type=submit]{
background: -webkit-gradient(linear, left top, left bottom, to(#ddd), from(#eee));
background: -moz-linear-gradient(90deg, #ddd, #eee);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
form input:focus,
form textarea:focus{
outline: none;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset, 0 0 2px 1px rgba(237, 187, 66, 0.5);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset, 0 0 2px 1px rgba(237, 187, 66, 0.5);
box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset, 0 0 2px 1px rgba(237, 187, 66, 0.5);
}
form input,
form textarea{
-webkit-background-clip: padding-box;
}
#hidden_fields .hidden{
display: none;
}
#hidden_fields:hover .hidden{
display: block;
}
</style>
</head>
<body>
<div class="message">
<p>Visit my website: <a href="http://mario.ec">Mario.EC</a></p>
</div>
<h1>jQuery Watermark - Example</h1>
<p class="info">
No CSS rules are required for the plugin to work, although you're free to use them. <br />
To use just add the class 'jq_watermark' to the form elements and a title attribute to use as the watermarker text.
</p>
<form action="http://mario.ec" method="post" accept-charset="utf-8">
<fieldset id="login" class="">
<legend>Login</legend>
<input type="text" name="usuario" value="" id="usuario" class="jq_watermark" placeholder="Usuario" />
<input placeholder="Password" type="password" name="password" value="" id="password" class="jq_watermark" />
<input type="submit" name="submit" value="Go" id="submit">
</fieldset>
<fieldset id="other" class="">
<legend>Other</legend>
<label for="correo">Email:</label><input placeholder="[email protected]" type="text" name="correo" value="" id="correo" class="jq_watermark" /><br />
<label for="correo">Date:</label><input placeholder="dd/mm/yyyy" type="text" name="date" value="" id="date" class="jq_watermark" /><br />
<label for="more">More:</label><input placeholder="More about yourself" type="text" name="more" value="This field has predefined content" id="more" class="jq_watermark" style="width: 400px" /><br />
<label for="more">Even more:</label><input placeholder="Tell us even more" type="text" name="even_more" value="" id="even_more" class="jq_watermark" style="width: 400px" /><br />
<br/>
<label for="comments">Comments:</label><br />
<textarea id="comments" placeholder="Tell us <strong>what <em>you</em> think<strong>..." class="jq_watermark" rows="3" cols="80"></textarea>
</fieldset>
<fieldset id="hidden_fields" class="">
<legend>Test hidden fields</legend>
<div class="hidden">
<label for="post">Postal Code:</label><input placeholder="33131" type="text" name="post" value="" id="post" class="jq_watermark" /><br />
<label for="street">Street Number:</label><input placeholder="5th Ave." type="text" name="street" value="" id="street" class="jq_watermark" style="width: 400px" /><br />
</div>
</fieldset>
</form>
<p class="info">
Source Code: <a href="https://github.com/marioestrada/jQuery-Watermark/">GitHub</a>
License: <a href="http://www.opensource.org/licenses/mit-license.php">MIT</a>
</p>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="jquery.watermark.js"></script>
<script>
$(document).ready(function()
{
$('#even_more').val('Field filled programmatically with Javascript.').trigger('change');
});
</script>
<!-- !Google Tracking -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1804175-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
</script>
</body>