-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.htm
52 lines (47 loc) · 1.19 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' />
</head>
<body>
<h2>Input's</h2>
<ul>
<li>
<input type="text" id="id_phone" name="phone" />
</li>
<li>
<input type="text" class="class-phone" name="phone" />
</li>
<li>
<input type="text" name="my_phone" />
</li>
</ul>
<h2>Text's</h2>
<ul>
<li>
<span>12 8888-9999</span>
</li>
<li>
<span>12 98888-5555</span>
</li>
</ul>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>
<script src="jquery.phone.brazil.js" type="text/javascript"></script>
<script type="text/javascript">
var my_test = function(){
var init = function(){
$('#id_phone').phoneBrazil();
$('.class-phone').phoneBrazil();
$('input[name=my_phone]').phoneBrazil();
//text's
$('ul li span').phoneBrazil({isInput: false});
console.log('iniciou!!!');
};
return {init: init};
}();
$(document).ready(my_test.init);
</script>
</body>
</html>