Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
18 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 |
---|---|---|
@@ -1,18 +1,33 @@ | ||
jQuery-Watermark | ||
================ | ||
|
||
small and easy watermark creator for inputs | ||
install it in 7 easy steps: | ||
1. go to the fridge and drink some beer. | ||
2. include jQuery script: | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> | ||
3. include jQuert-Watermark script: | ||
<script src="jquery-watermark.min.js" type="text/javascript"></script> | ||
4. define your params (if you want): | ||
var params = { activeCss: { color: 'Black' }, waterCss: {color: 'Gray'}}; | ||
the defaults are: | ||
'waterCss': { color: 'Gray' }, | ||
'activeCss': { color: 'Black' } | ||
5. from within your code call to the watermark() function on your selector (in this case i sue input fields): | ||
$("input").water(params); | ||
6. go and have another beer. | ||
Markup Editor | ||
============= | ||
|
||
An extra-small ( <1k ) and easy watermark creator for inputs. | ||
|
||
install it in 6 easy steps: | ||
-------------- | ||
|
||
- go to the fridge and drink some beer. | ||
- include jQuery script: | ||
|
||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> | ||
- include jQuert-Watermark script: | ||
|
||
<script src="jquery-watermark.min.js" type="text/javascript"></script> | ||
- define your params (if you want): | ||
var params = { activeCss: { color: 'Black' }, waterCss: {color: 'Gray'}}; | ||
the defaults are: | ||
'waterCss': { color: 'Gray' }, | ||
'activeCss': { color: 'Black' } | ||
- from within your code call to the watermark() function on your selector (in this case i sue input fields): | ||
$("input").water(params); | ||
- go and have another beer. | ||
|
||
|
||
Contribution | ||
------------ | ||
|
||
- Sagiv Ofek | ||
|
||
License | ||
------- | ||
free for all! :) |