-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
39 lines (30 loc) · 1.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>BWigg's Subnet Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
</head>
<body>
<div class="container">
<div id="subnet-calculator">
<h1 class="text-center">BWigg's Subnet Calculator</h1>
<div class="input">
<input v-model="input" @keyup="onchange($event.target.value)" placeholder="CIDR 10.0.0.0/24" />
<span v-if="cidr.type" class="address-type">{{cidr.type}}</span>
</div>
<ip title="IP" :ip="cidr.ip" :netmask="cidr.networkbits"></ip>
<ip :title="`Subnet (Class ${cidr.class})`" :ip="cidr.subnet" :netmask="cidr.networkbits"></ip>
<ip title="Subnet Mask" :ip="cidr.subnetMask" :netmask="cidr.networkbits"></ip>
<ip :title="`Wildcard (${cidr.hosts?.toLocaleString()} hosts)`" :ip="cidr.wildcard" :netmask="cidr.networkbits"></ip>
<ip title="First Host" :ip="cidr.subnet + 1" :netmask="cidr.networkbits"></ip>
<ip title="Last Host" :ip="cidr.broadcast - 1" :netmask="cidr.networkbits"></ip>
<ip title="Broadcast" :ip="cidr.broadcast" :netmask="cidr.networkbits"></ip>
</div>
</div>
<script src="vue.min.js"></script>
<script src="main.js"></script>
</body>
</html>