-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
134 lines (128 loc) · 5.78 KB
/
Copy pathindex.html
File metadata and controls
134 lines (128 loc) · 5.78 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<meta
name="description"
content="A fast, dependency-free IPv4 and IPv6 calculator for prefixes, address ranges, adjacent networks, and alternate notations."
/>
<meta name="application-name" content="Modern IP Calculator" />
<meta name="apple-mobile-web-app-title" content="Modern IP Calculator" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://netsampler.github.io/ip/" />
<meta property="og:title" content="Modern IP Calculator" />
<meta
property="og:description"
content="Calculate IPv4 and IPv6 prefixes, ranges, adjacent networks, and alternate address notations in a focused single-page tool."
/>
<meta property="og:site_name" content="Modern IP Calculator" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Modern IP Calculator" />
<meta
name="twitter:description"
content="Calculate IPv4 and IPv6 prefixes, ranges, adjacent networks, and alternate address notations in a focused single-page tool."
/>
<title>Modern IP Calculator</title>
<link rel="canonical" href="https://netsampler.github.io/ip/" />
<link rel="manifest" href="./manifest.webmanifest" />
<link rel="icon" href="./icon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<main class="shell">
<section class="console" aria-label="IP calculator">
<div class="entry">
<div class="prompt" aria-hidden="true">></div>
<div class="input-wrap">
<textarea
id="prefixInput"
class="prefix-input"
autocomplete="off"
spellcheck="false"
inputmode="text"
rows="1"
wrap="soft"
aria-label="IP prefix"
>192.168.10.0/24</textarea>
<span id="ghostText" class="ghost" aria-hidden="true"></span>
</div>
<div class="prefix-nav" role="group" aria-label="Prefix navigation">
<button class="nav-button nav-button--up" type="button" data-nav="up" aria-label="Previous prefix" title="Previous prefix">
-
</button>
<button class="nav-button nav-button--left" type="button" data-nav="left" aria-label="Parent prefix" title="Parent prefix">
-
</button>
<button class="nav-button nav-button--right" type="button" data-nav="right" aria-label="Child prefix" title="Child prefix">
-
</button>
<button class="nav-button nav-button--down" type="button" data-nav="down" aria-label="Next prefix" title="Next prefix">
-
</button>
</div>
<button id="themeToggle" class="icon-button" type="button" aria-label="Toggle dark mode" title="Toggle dark mode">
◐
</button>
</div>
<datalist id="prefixSuggestions"></datalist>
<div id="message" class="message" role="status" aria-live="polite"></div>
<div class="workspace">
<aside class="prefixes" aria-label="Adjacent prefixes">
<header>
<span>Prefixes</span>
<span id="prefixMeta"></span>
</header>
<div id="prefixList" class="prefix-list"></div>
</aside>
<section class="details" aria-label="Range details">
<div class="detail-grid">
<article class="panel current">
<div class="panel-heading">
<h2>Current</h2>
<div id="presentationControl" class="presentation-control" role="radiogroup" aria-label="Address presentation">
<span class="presentation-indicator" aria-hidden="true"></span>
<button class="presentation-option" type="button" role="radio" aria-checked="true" data-presentation="regular" title="Regular notation">
Reg
</button>
<button class="presentation-option" type="button" role="radio" aria-checked="false" data-presentation="hex" title="Hex notation">
Hex
</button>
<button class="presentation-option" type="button" role="radio" aria-checked="false" data-presentation="binary" title="Binary notation">
Bin
</button>
<button class="presentation-option" type="button" role="radio" aria-checked="false" data-presentation="integer" title="Integer notation">
Int
</button>
</div>
</div>
<dl id="currentDetails"></dl>
</article>
<article class="panel">
<h2>Adjacent</h2>
<div id="adjacentDetails" class="adjacent-grid"></div>
</article>
<article class="panel contains" hidden>
<h2>Contains</h2>
<div class="contains-row">
<input
id="containsInput"
class="contains-input"
autocomplete="off"
spellcheck="false"
inputmode="text"
aria-label="Prefix containment check"
placeholder="10.0.0.0/8"
/>
<output id="containsResult" class="contains-result">-</output>
</div>
</article>
</div>
</section>
</div>
</section>
</main>
<script src="./app.js" defer></script>
</body>
</html>