Permalink
Browse files

Added in a basic test file

  • Loading branch information...
1 parent 182a5b2 commit 4dac5f13790e53cb66c730f01ced358cf0ac7e28 @snikch committed Nov 21, 2010
Showing with 39 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +39 −0 tests/test.html
View
@@ -5,4 +5,3 @@ src/*-min.js
src/index.htm
src/index.css
build/tmp
-tests/
View
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>Dirty Forms testing page</title>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
+ <script src="../src/jquery-placeholder-plugin.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ jQuery(document).ready(function($) {
+ $('#test').placeholder();
+
+ $('#getval').click(function(){
+ console.log('Test value is: ' + $('#test').val());
+ });
+ });
+ </script>
+ <style>
+ input{
+ font-size:14px;
+ }
+ input.placeholderActive{
+ color:#ddd;
+ }
+ </style>
+ </head>
+
+ <body>
+ <form action="" method="get">
+ <input type="text" id="test" name="test" placeholder="http://" />
+ <input type="submit" id="submit" />
+ <input type="button" id="getval" value="Get Value" />
+ </form>
+
+</body>
+</html>
+
+

0 comments on commit 4dac5f1

Please sign in to comment.