Skip to content

Commit

Permalink
Demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan committed Feb 19, 2009
1 parent a140607 commit e9cda69
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!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="ru" lang="ru" dir="ltr">
<head>
<title>jQuery KeyFilter Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="jQuery, Keys, Validation" />
<link rel="stylesheet" type="text/css" href="http://www.blueprintcss.org/blueprint/screen.css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="http://www.blueprintcss.org/blueprint/print.css" media="print" />
<!--[if IE]><link rel="stylesheet" href="http://www.blueprintcss.org/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
<style type="text/css">
label { display: block; }
</style>
</head>
<body>
<div class="container">
<h1>jquery.keyfilter</h1>
<h2>Demo page</h2>
<noscript>
<div class="error">Warning! This demo page correctly works with enabled JavaScript only.</div>
</noscript>
<fieldset>
<legend>Controls that filtered by its class</legend>
<label><input type="text" class="mask-pint" /> - mask-pint</label>
<label><input type="text" class="mask-int" /> - mask-int</label>
<label><input type="text" class="mask-num" /> - mask-num</label>
<label><input type="text" class="mask-hex" /> - mask-hex</label>
<label><input type="text" class="mask-email" /> - mask-email</label>
<label><input type="text" class="mask-alpha" /> - mask-alpha</label>
<label><input type="text" class="mask-alphanum" /> - mask-alphanum</label>
</fieldset>
<fieldset>
<legend>Controls that filtered by JavaScript code</legend>
<label><input type="text" id="by-re" /> - By regular expression</label>
<label><input type="text" id="by-f" /> - By function</label>
</fieldset>
<div class="copyright">
This demo uses <a href="code.google.com/p/jquery-keyfilter/">jquery.keyfilter</a>, <a href="http://jquery.com/">jQuery</a> and <a href="http://www.blueprintcss.org/">Blueprint</a>.
</div>
</div>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="http://jquery-keyfilter.googlecode.com/files/jquery.keyfilter-1.3.js"></script>
<script type="text/javascript">
(function($)
{
$('#by-re').keyfilter(/[ABC]/i);
$('#by-f').keyfilter(function(c) { return c != 'A'; });
})(jQuery);
</script>
</body>
</html>

0 comments on commit e9cda69

Please sign in to comment.