-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (29 loc) · 895 Bytes
/
index.html
File metadata and controls
32 lines (29 loc) · 895 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>limiter</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/main.css">
<script src="http://cdn.staticfile.org/jquery/1.9.0/jquery.min.js"></script>
<script src="limiter.js"></script>
</head>
<body>
<input id="p-keyword" type="text" class="form-input"></input>
<span id="LimiterWrapper"></span>
<script>
$('#p-keyword').limiter({
//outer wrapper dom
wrapper: '#LimiterWrapper',
//trim the special character, e.g.~~• © ® ?
trimSpecial: true,
//convert traditional chinese to simple chinese
tr2Simple: true,
//the limited max length
max: 10
});
</script>
</body>
</html>