-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from mathiasbynens/gh-pages
Fixes
- Loading branch information
Showing
6 changed files
with
165 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,11 @@ | |
<title>HTML5 placeholder jQuery Plugin</title> | ||
<style> | ||
body { font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; } | ||
input, textarea { font-size: 1em; } | ||
input, textarea { font-size: 1em; font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;} | ||
input { width: 250px; } | ||
input[type="radio"], input[type="checkbox"] { width: auto } | ||
label code { display: inline-block; width: 200px; } | ||
textarea { height: 2em; width: 20em;, font-family: sans-serif; } | ||
form div { border-bottom: 1px solid #ccc; padding: 5px; } | ||
.my-placeholder { color: #aaa; } | ||
.note { border: 1px solid orange; font-size: 13px; padding: 1em; background: #ffffe0; } | ||
</style> | ||
|
@@ -19,16 +20,14 @@ <h1>HTML5 Placeholder jQuery Plugin</h1> | |
|
||
<a href="https://github.com/mathiasbynens/jquery-placeholder"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a> | ||
|
||
<form> | ||
<input type="radio" name="color" placeholder="This can't be seen"> Red | ||
<input type="radio" name="color" placeholder="This can't be seen"> Green | ||
<input type="radio" name="color" placeholder="This can't be seen"> Blue | ||
<form method="GET" action=""> | ||
<input type="radio" name="color" value="red" placeholder="This can't be seen"> Red | ||
<input type="radio" name="color" value="green" placeholder="This can't be seen"> Green | ||
|
||
<br /> | ||
|
||
<input type="checkbox" name="fruits" placeholder="This can't be seen"> Apple | ||
<input type="checkbox" name="fruits" placeholder="This can't be seen"> Banana | ||
<input type="checkbox" name="fruits" placeholder="This can't be seen"> Pear | ||
<input type="checkbox" name="fruits" value="apple" placeholder="This can't be seen"> Apple | ||
<input type="checkbox" name="fruits" value="banana" placeholder="This can't be seen"> Banana | ||
|
||
<br /> | ||
|
||
|
@@ -46,12 +45,12 @@ <h1>HTML5 Placeholder jQuery Plugin</h1> | |
<br /> | ||
<br /> | ||
|
||
<input type="email" name="email" placeholder="type=email"> | ||
<input type="email" name="email" placeholder="type=email" value="[email protected]"> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<input type="url" name="url" placeholder="type=url"> | ||
<input type="url" name="url" placeholder="type=url" value="http://prefilled.example.com"> | ||
|
||
<br /> | ||
<br /> | ||
|
@@ -83,11 +82,17 @@ <h1>HTML5 Placeholder jQuery Plugin</h1> | |
<br /> | ||
<br /> | ||
|
||
<label for="p">Click me to focus password field</label> | ||
<label for="p">A Label: Click me to focus password field up above</label> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<div class="wrapped"> | ||
<input type="password" name="password2" placeholder="type=password 2"> | ||
</div> | ||
|
||
<br /> | ||
|
||
<input type="submit" value="type=submit"> | ||
<input type="reset" value="type=reset"> | ||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.