forked from akzhan/jquery-keyfilter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (71 loc) · 3.43 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
<!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-pnum" /> - mask-pnum</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>
<p>
This demo uses <a href="https://github.com/akzhan/jquery-keyfilter">jquery.keyfilter</a>, <a href="http://jquery.com/">jQuery</a> and <a href="http://www.blueprintcss.org/">Blueprint</a>.
</p>
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Right CSS!" />
</a>
</p>
<p>
<img id="blueprintbutton" src="http://www.blueprintcss.org/img/button.png" width="80" height="15" alt="Blueprint" title="This page built using Blueprint." />
</p>
</div>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="jquery.keyfilter.js"></script>
<script type="text/javascript">
(function($)
{
$('#by-re').keyfilter(/[ABC]/i);
$('#by-f').keyfilter(function(c) { return c != 'A'; });
})(jQuery);
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7566425-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>