-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
54 lines (40 loc) · 2.34 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
<!DOCTYPE html>
<html>
<head>
<script data-require="jquery@*" data-semver="2.1.4" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<link data-require="[email protected]" data-semver="3.3.2" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
<script data-require="[email protected]" data-semver="3.3.2" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body>
<div data-ng-app="testapp">
<form class="col-md-6">
<div class="form-group">
<label for="exampleInputEmail1">Positive Number</label>
<input class="form-control" valid-number ng-model="positiveNumber" placeholder="" allow-decimal="false" allow-negative="false" type="text">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Negative Number</label>
<input class="form-control" valid-number ng-model="negativeNumber" placeholder="" allow-decimal="false" allow-negative="true" type="text">
</div> <div class="form-group">
<label for="exampleInputEmail1">Positive Decimal Numbers Default Decimal-Upto 2</label>
<input class="form-control" valid-number ng-model="decimal" placeholder="" allow-decimal="true" allow-negative="false" type="text">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Positive Decimal Numbers Decimal-Upto 3</label>
<input class="form-control" valid-number ng-model="decimalUpto" placeholder="" allow-decimal="true" allow-negative="false" decimal-upto="3" type="text">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Negative Decimal Numbers Default Decimal-Upto 2</label>
<input class="form-control" valid-number ng-model="negativdecimal" placeholder="" allow-decimal="true" allow-negative="true" type="text">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Negative Decimal Numbers Decimal-Upto 3</label>
<input class="form-control" valid-number ng-model="negativdecimalUpto" placeholder="" allow-decimal="true" allow-negative="true" decimal-upto="3" type="text">
</div>
</form>
</div>
</body>
</html>