-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
212 lines (201 loc) · 5.74 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>CIDR Calculator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="cidr.js" type="text/javascript" defer> </script>
<style>
.grid-layout{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex-wrap: wrap;
min-height: 265px;
max-height: 270px;
max-width: 600px;
min-width: 570px;
border: 2px solid #4ECFEF;
border-radius: 25px;
background: #31313A;
letter-spacing: 0.1rem;
font-family: Arial, sans-serif;
}
.grid-item-border {
border-radius: 3px;
height: 80%;
overflow:hidden;
}
.grid-item-sm {
margin: 0 0 26px 0;
width: 25%;
}
.grid-item-lg {
margin: 0 0 26px 0;
width: 50%;
}
.grid-item-border {
border: 0;
padding: 5px;
margin: 5px;
background: #2F2F3A;
color: #4EC3FD;
}
.display-input {
background-color : #3B3D40;
border: none;
color: #ECECEC;
outline: none;
padding-left: 0.3em;
width: 92%;
}
#cidrBlock {
border: 0;
padding-left: 0.5em;
font-weight: lighter;
}
#cidrBlock:focus {
outline: none;
border: 0;
box-shadow: 0 0 10px #719ECE;
padding-left: 0.5em;
font-weight: lighter;
}
small {
font-weight: lighter;
font-size: 10px;
}
button {
width: 91%;
margin: 5px;
}
input {
margin-top: 0.5em;
}
body {
background-color: #292B2F;
}
#statusMessage {
font-size: 11px;
color: #ECECEC;
}
</style>
</head><body>
<div class='grid-layout'>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="cidrBlock">
<small>
CIDR Range
</small>
</label>
<input type="text" id="cidrBlock" value="192.168.1.1/24" maxlength="20">
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<button id="calculateCidrBtn" type="button">
Calculate
</button>
<br>
<button id="clearFormBtn" type="button">
Clear
</button>
</div>
</div>
<div class='grid-item-lg'>
<div class="grid-item-border">
<label for="subnetBitmap">
<small>
Subnet Bitmap
</small>
</label>
<br>
<input class="display-input" type="text" id="subnetBitmap" readonly>
<small id="statusMessage"> </small>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="networkAddr">
<small>
Network Address
</small>
</label>
<input type="text" id="networkAddr" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="subnetMask">
<small>
Subnet Mask
</small>
</label>
<input type="text" id="subnetMask" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="broadcastAddr">
<small>
Broadcast Address
</small>
</label>
<input type="text" id="broadcastAddr" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="maxHosts">
<small>
Max Hosts
</small>
</label>
<input type="text" id="maxHosts" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="networkAddrUInt32">
<small>
Network UInt32
</small>
</label>
<input type="text" id="networkAddrUInt32" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="subnetMaskUInt32">
<small>
Subnet UInt32
</small>
</label>
<input type="text" id="subnetMaskUInt32" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="broadcastAddrUInt32">
<small>
Broadcast UInt32
</small>
</label>
<input type="text" id="broadcastAddrUInt32" class="display-input" readonly>
</div>
</div>
<div class="grid-item-sm">
<div class="grid-item-border">
<label for="wildcard">
<small>
Wildcard Mask
</small>
</label>
<input type="text" id="wildcard" class="display-input" readonly>
</div>
</div>
</div>
</body></html>