-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
48 lines (43 loc) · 950 Bytes
/
demo.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
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="rangyInputs.js"></script>
<script src="numberEntry.js"></script>
<script type="text/javascript">
$(function() {
$('.default').numberEntry();
$('.negative').numberEntry({
allowNegative:true
});
$('.decimals').numberEntry({
decimalsAllowed:4
});
$('.euro').numberEntry({
format:'euro'
});
});
</script>
<style type="text/css">
input {
width:100%;
font-size:80px;
height:100px;
line-height:100px;
}
</style>
</head>
<body>
<h1>Default Options</h1>
<input type="text" class="default"/>
<hr />
<h1>Allow Negative</h1>
<input type="text" class="negative"/>
<hr />
<h1>4 Decimal Places</h1>
<input type="text" class="decimals"/>
<hr />
<h1>European Formatting</h1>
<input type="text" class="euro"/>
<hr />
</body>
</html>