-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (30 loc) · 1.11 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
<!DOCTYPE html>
<html>
<head>
<title>Usage example for vincent</title>
<meta charset="utf-8" />
<meta name="author" content="Jublo IT Solutions" />
</head>
<body>
<p>
Please see your browser’s console for the output of the script.
Check the source code of this page to see how vincent is used.
</p>
<script src="vincent.js"></script>
<script type="text/javascript">
console.info("Setting the CIDR value.");
var cidr = new Cidr;
cidr.setCidr("209.85.148.138/17");
console.log("The CIDR is " + cidr.getCidr());
console.log("The subnet mask is " + cidr.getSubnetmask());
console.log("The IP range is " + cidr.getIpFrom() + " to " + cidr.getIpTo());
console.info("Setting the IP and subnet.");
cidr = new Cidr;
cidr.setIp("209.85.148.138");
cidr.setSubnetmask("255.255.128.0");
console.log("The CIDR is " + cidr.getCidr());
console.log("The subnet mask is " + cidr.getSubnetmask());
console.log("The IP range is " + cidr.getIpFrom() + " to " + cidr.getIpTo());
</script>
</body>
</html>