This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
106 lines (88 loc) · 1.87 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
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>jQuery.placehold() plugin example</title>
<style>
body {
color: #333;
font: bold 26px Helvetica, Arial, sans-serif;
padding: 50px 0;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
margin: 0 0 40px 0;
padding: 0;
}
h1, form {
margin: 0 auto;
width: 680px;
}
h1 {
font-size: 40px;
margin-bottom: 40px;
}
label {
display: block;
margin-bottom: 4px;
}
input,
textarea {
border: 2px solid #999;
font: inherit;
padding: 8px;
width: 540px;
}
textarea {
height: 100px;
}
form .something-temporary {
color: #aaa;
font-style: italic;
}
form :-moz-placeholder {
color: #aaa;
font-style: italic;
}
form ::-webkit-input-placeholder {
color: #aaa;
font-style: italic;
}
</style>
</head>
<body>
<h1>jQuery.placehold() plugin example</h1>
<form>
<ul>
<li>
<label for="first_name">First name</label>
<input type="text" id="first_name" name="first_name" placeholder="Enter your first name…">
</li>
<li>
<label for="last_name">Last name</label>
<input type="text" id="last_name" name="last_name" placeholder="Enter your first name…">
</li>
<li>
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter your password…">
</li>
<li>
<label for="comment">Comment</label>
<textarea id="comment" name="comment" placeholder="Enter your comment…"></textarea>
</li>
</ul>
<input type="submit" value="Submit that bro!">
</form>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="src/jquery.placehold.js"></script>
<script>
$().ready( function() {
$('input, textarea').placehold('something-temporary');
});
</script>
</body>
</html>