ipfyi-embed 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +157 -0
- package/dist/embed.esm.js +1841 -0
- package/dist/embed.min.js +1018 -0
- package/dist/index.d.ts +27 -0
- package/package.json +44 -0
|
@@ -0,0 +1,1018 @@
|
|
|
1
|
+
/* ipfyi-embed v1.0.0 | MIT | https://widget.ipfyi.com */
|
|
2
|
+
"use strict";(()=>{function J(){return`
|
|
3
|
+
/* Modern: gradient accent header */
|
|
4
|
+
.networkfyi-header {
|
|
5
|
+
background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
|
|
6
|
+
border-radius: 12px 12px 0 0;
|
|
7
|
+
padding: 16px 20px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
gap: 14px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.networkfyi-header-title {
|
|
14
|
+
font-size: 15px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
color: #fff;
|
|
17
|
+
margin: 0 0 4px 0;
|
|
18
|
+
line-height: 1.3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.networkfyi-header-subtitle {
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
color: rgba(255, 255, 255, 0.8);
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Icon area */
|
|
28
|
+
.networkfyi-img {
|
|
29
|
+
width: 56px;
|
|
30
|
+
height: 56px;
|
|
31
|
+
border-radius: 8px;
|
|
32
|
+
object-fit: cover;
|
|
33
|
+
background: rgba(255, 255, 255, 0.15);
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
font-size: 24px;
|
|
40
|
+
color: #fff;
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.networkfyi-img img {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
object-fit: cover;
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Body area */
|
|
52
|
+
.networkfyi-body {
|
|
53
|
+
padding: 16px 20px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Key-value rows \u2014 spacious */
|
|
57
|
+
.networkfyi-row {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
gap: 12px;
|
|
62
|
+
padding: 8px 0;
|
|
63
|
+
border-bottom: 1px solid var(--border);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.networkfyi-row:last-child {
|
|
67
|
+
border-bottom: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.networkfyi-label {
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
color: var(--muted);
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
min-width: 30%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.networkfyi-value {
|
|
80
|
+
font-size: 13px;
|
|
81
|
+
color: var(--text);
|
|
82
|
+
text-align: right;
|
|
83
|
+
word-break: break-word;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Section title */
|
|
87
|
+
.networkfyi-section-title {
|
|
88
|
+
font-size: 11px;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
color: var(--muted);
|
|
91
|
+
text-transform: uppercase;
|
|
92
|
+
letter-spacing: 0.06em;
|
|
93
|
+
margin: 0 0 10px 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Tags \u2014 colored rounded badges */
|
|
97
|
+
.networkfyi-tag {
|
|
98
|
+
display: inline-block;
|
|
99
|
+
font-size: 11px;
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
padding: 3px 10px;
|
|
102
|
+
border-radius: 12px;
|
|
103
|
+
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
104
|
+
color: var(--accent);
|
|
105
|
+
margin: 2px 3px 2px 0;
|
|
106
|
+
letter-spacing: 0.02em;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Link */
|
|
110
|
+
.networkfyi-link {
|
|
111
|
+
font-size: 13px;
|
|
112
|
+
font-weight: 500;
|
|
113
|
+
color: var(--link);
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 4px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.networkfyi-link:hover {
|
|
121
|
+
opacity: 0.8;
|
|
122
|
+
text-decoration: underline;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.networkfyi-link svg {
|
|
126
|
+
width: 12px;
|
|
127
|
+
height: 12px;
|
|
128
|
+
flex-shrink: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Footer link row */
|
|
132
|
+
.networkfyi-footer-link {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
padding: 12px 20px;
|
|
137
|
+
border-top: 1px solid var(--border);
|
|
138
|
+
gap: 8px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
142
|
+
Card shared: stats row (horizontal flex)
|
|
143
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
144
|
+
.networkfyi-stats-row { display:flex; gap:12px; padding:10px 18px; border-bottom:1px solid var(--border); }
|
|
145
|
+
.networkfyi-stat { text-align:center; flex:1; }
|
|
146
|
+
.networkfyi-stat-value { font-size:18px; font-weight:700; color:var(--accent); }
|
|
147
|
+
.networkfyi-stat-label { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:0.03em; }
|
|
148
|
+
|
|
149
|
+
/* Card shared: stats grid (2x2 boxes) */
|
|
150
|
+
.networkfyi-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px 18px; border-bottom:1px solid var(--border); }
|
|
151
|
+
.networkfyi-stat-box { padding:6px 8px; background:color-mix(in srgb, var(--accent) 8%, var(--bg)); border-radius:8px; }
|
|
152
|
+
.networkfyi-stat-box-label { font-size:9px; color:color-mix(in srgb, var(--accent) 80%, var(--text)); text-transform:uppercase; }
|
|
153
|
+
.networkfyi-stat-box-value { font-size:13px; font-weight:700; color:var(--text); margin-top:1px; }
|
|
154
|
+
|
|
155
|
+
/* Card shared: key-value dotted rows */
|
|
156
|
+
.networkfyi-kv-rows { padding:10px 18px; border-bottom:1px solid var(--border); }
|
|
157
|
+
.networkfyi-kv-row { display:flex; justify-content:space-between; align-items:baseline; padding:4px 0; border-bottom:1px dotted var(--border); }
|
|
158
|
+
.networkfyi-kv-row:last-child { border-bottom:none; }
|
|
159
|
+
.networkfyi-kv-label { font-size:11px; color:var(--muted); }
|
|
160
|
+
.networkfyi-kv-value { font-size:11px; font-weight:600; color:var(--text); }
|
|
161
|
+
|
|
162
|
+
/* Card shared: pill tags */
|
|
163
|
+
.networkfyi-pills { display:flex; flex-wrap:wrap; gap:4px; padding:10px 18px; border-bottom:1px solid var(--border); }
|
|
164
|
+
.networkfyi-pill { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:500; background:color-mix(in srgb, var(--accent) 10%, var(--bg)); color:var(--accent); }
|
|
165
|
+
|
|
166
|
+
/* Card shared: section label */
|
|
167
|
+
.networkfyi-section-label { font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--accent); font-weight:600; margin-bottom:3px; }
|
|
168
|
+
|
|
169
|
+
/* Card shared: description */
|
|
170
|
+
.networkfyi-desc { padding:10px 18px; font-size:14px; color:var(--muted); line-height:1.5; border-bottom:1px solid var(--border); }
|
|
171
|
+
|
|
172
|
+
/* Card shared: view link */
|
|
173
|
+
.networkfyi-view-link { display:block; text-align:center; padding:10px 18px; border-bottom:1px solid var(--border); }
|
|
174
|
+
.networkfyi-view-link a { color:var(--link); text-decoration:none; font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:4px; }
|
|
175
|
+
.networkfyi-view-link a:hover { text-decoration:underline; }
|
|
176
|
+
.networkfyi-view-link svg { width:12px; height:12px; }
|
|
177
|
+
|
|
178
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
179
|
+
Domain: code/status display (large number)
|
|
180
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
181
|
+
.networkfyi-code-display { padding:14px 18px; text-align:center; border-bottom:1px solid var(--border); }
|
|
182
|
+
.networkfyi-code-big { font-size:36px; font-weight:800; color:var(--accent); line-height:1; font-family:ui-monospace, 'SF Mono', monospace; }
|
|
183
|
+
.networkfyi-code-name { font-size:13px; color:var(--text); font-weight:600; margin-top:4px; }
|
|
184
|
+
.networkfyi-code-protocol { font-size:11px; color:var(--muted); margin-top:2px; }
|
|
185
|
+
|
|
186
|
+
/* Domain: speed bar visualization */
|
|
187
|
+
.networkfyi-speed-bar-wrap { padding:10px 18px; border-bottom:1px solid var(--border); }
|
|
188
|
+
.networkfyi-speed-bar-track { width:100%; height:8px; background:var(--surface); border-radius:4px; overflow:hidden; }
|
|
189
|
+
.networkfyi-speed-bar-fill { height:100%; border-radius:4px; transition:width 0.3s; }
|
|
190
|
+
.networkfyi-speed-bar-label { font-size:11px; color:var(--muted); margin-top:4px; display:flex; justify-content:space-between; }
|
|
191
|
+
|
|
192
|
+
/* Domain: connector arrow display */
|
|
193
|
+
.networkfyi-connector-arrow { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-bottom:1px solid var(--border); font-size:13px; font-weight:600; color:var(--text); }
|
|
194
|
+
.networkfyi-connector-arrow-icon { color:var(--accent); font-size:16px; }
|
|
195
|
+
|
|
196
|
+
/* Domain: compatibility result */
|
|
197
|
+
.networkfyi-compat-result { padding:14px 18px; text-align:center; border-bottom:1px solid var(--border); }
|
|
198
|
+
.networkfyi-compat-status { font-size:14px; font-weight:700; margin-bottom:4px; }
|
|
199
|
+
.networkfyi-compat-detail { font-size:12px; color:var(--muted); }
|
|
200
|
+
|
|
201
|
+
/* Domain: scenario card */
|
|
202
|
+
.networkfyi-scenario-header { padding:12px 18px; border-bottom:1px solid var(--border); }
|
|
203
|
+
.networkfyi-scenario-title { font-size:14px; font-weight:700; color:var(--text); margin:0 0 6px 0; }
|
|
204
|
+
.networkfyi-scenario-meta { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
|
|
205
|
+
|
|
206
|
+
/* Domain: form inputs (compatibility tool) */
|
|
207
|
+
.networkfyi-tool-form { padding:12px 18px; border-bottom:1px solid var(--border); }
|
|
208
|
+
.networkfyi-tool-row { display:flex; gap:6px; align-items:center; margin-bottom:6px; }
|
|
209
|
+
.networkfyi-tool-row:last-child { margin-bottom:0; }
|
|
210
|
+
.networkfyi-tool-input { flex:1; padding:6px 10px; border:1px solid var(--input-border); border-radius:6px; background:var(--input-bg); color:var(--text); font-size:13px; font-family:inherit; outline:none; }
|
|
211
|
+
.networkfyi-tool-input:focus { border-color:var(--input-focus); box-shadow:0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent); }
|
|
212
|
+
.networkfyi-tool-label { font-size:11px; color:var(--muted); min-width:72px; }
|
|
213
|
+
.networkfyi-tool-btn { background:var(--accent); color:#fff; border:none; border-radius:6px; padding:7px 14px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; transition:opacity 0.15s; }
|
|
214
|
+
.networkfyi-tool-btn:hover { opacity:0.9; }
|
|
215
|
+
|
|
216
|
+
/* Inline widget host */
|
|
217
|
+
:host([data-inline]) {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
gap: 4px;
|
|
221
|
+
}
|
|
222
|
+
`}function X(){return`
|
|
223
|
+
/* Clean: subtle top accent border instead of gradient header */
|
|
224
|
+
.networkfyi-header {
|
|
225
|
+
border-top: 3px solid var(--accent);
|
|
226
|
+
border-radius: 8px 8px 0 0;
|
|
227
|
+
padding: 14px 18px;
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: flex-start;
|
|
230
|
+
gap: 12px;
|
|
231
|
+
background: color-mix(in srgb, var(--accent) 5%, var(--surface));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.networkfyi-header-title {
|
|
235
|
+
font-size: 15px;
|
|
236
|
+
font-weight: 700;
|
|
237
|
+
color: var(--text);
|
|
238
|
+
margin: 0 0 4px 0;
|
|
239
|
+
line-height: 1.3;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.networkfyi-header-subtitle {
|
|
243
|
+
font-size: 12px;
|
|
244
|
+
color: var(--muted);
|
|
245
|
+
margin: 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Icon area \u2014 smaller, muted */
|
|
249
|
+
.networkfyi-img {
|
|
250
|
+
width: 44px;
|
|
251
|
+
height: 44px;
|
|
252
|
+
border-radius: 8px;
|
|
253
|
+
background: color-mix(in srgb, var(--accent) 12%, var(--bg));
|
|
254
|
+
flex-shrink: 0;
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
justify-content: center;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
font-size: 20px;
|
|
260
|
+
color: var(--accent);
|
|
261
|
+
font-weight: 700;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.networkfyi-img img {
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
object-fit: cover;
|
|
268
|
+
border-radius: 8px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Body area */
|
|
272
|
+
.networkfyi-body {
|
|
273
|
+
padding: 14px 18px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* Key-value rows */
|
|
277
|
+
.networkfyi-row {
|
|
278
|
+
display: flex;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
align-items: flex-start;
|
|
281
|
+
gap: 12px;
|
|
282
|
+
padding: 6px 0;
|
|
283
|
+
border-bottom: 1px solid var(--border);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.networkfyi-row:last-child {
|
|
287
|
+
border-bottom: none;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.networkfyi-label {
|
|
291
|
+
font-size: 12px;
|
|
292
|
+
font-weight: 500;
|
|
293
|
+
color: var(--muted);
|
|
294
|
+
white-space: nowrap;
|
|
295
|
+
flex-shrink: 0;
|
|
296
|
+
min-width: 30%;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.networkfyi-value {
|
|
300
|
+
font-size: 13px;
|
|
301
|
+
color: var(--text);
|
|
302
|
+
text-align: right;
|
|
303
|
+
word-break: break-word;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* Section title */
|
|
307
|
+
.networkfyi-section-title {
|
|
308
|
+
font-size: 11px;
|
|
309
|
+
font-weight: 600;
|
|
310
|
+
color: var(--muted);
|
|
311
|
+
text-transform: uppercase;
|
|
312
|
+
letter-spacing: 0.06em;
|
|
313
|
+
margin: 0 0 8px 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Tags \u2014 subtle pill badges */
|
|
317
|
+
.networkfyi-tag {
|
|
318
|
+
display: inline-block;
|
|
319
|
+
font-size: 11px;
|
|
320
|
+
font-weight: 500;
|
|
321
|
+
padding: 2px 8px;
|
|
322
|
+
border-radius: 4px;
|
|
323
|
+
background: var(--badge-bg);
|
|
324
|
+
color: var(--badge-text);
|
|
325
|
+
margin: 2px 3px 2px 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* Link */
|
|
329
|
+
.networkfyi-link {
|
|
330
|
+
font-size: 13px;
|
|
331
|
+
font-weight: 500;
|
|
332
|
+
color: var(--link);
|
|
333
|
+
text-decoration: none;
|
|
334
|
+
display: inline-flex;
|
|
335
|
+
align-items: center;
|
|
336
|
+
gap: 4px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.networkfyi-link:hover {
|
|
340
|
+
text-decoration: underline;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.networkfyi-link svg {
|
|
344
|
+
width: 12px;
|
|
345
|
+
height: 12px;
|
|
346
|
+
flex-shrink: 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Footer link row */
|
|
350
|
+
.networkfyi-footer-link {
|
|
351
|
+
display: flex;
|
|
352
|
+
align-items: center;
|
|
353
|
+
justify-content: space-between;
|
|
354
|
+
padding: 10px 18px;
|
|
355
|
+
border-top: 1px solid var(--border);
|
|
356
|
+
gap: 8px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
360
|
+
Card shared: stats row (horizontal flex)
|
|
361
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
362
|
+
.networkfyi-stats-row { display:flex; gap:10px; padding:8px 16px; border-bottom:1px solid var(--border); }
|
|
363
|
+
.networkfyi-stat { text-align:center; flex:1; }
|
|
364
|
+
.networkfyi-stat-value { font-size:16px; font-weight:700; color:var(--accent); }
|
|
365
|
+
.networkfyi-stat-label { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:0.03em; }
|
|
366
|
+
|
|
367
|
+
/* Card shared: stats grid (2x2 boxes) */
|
|
368
|
+
.networkfyi-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:8px 16px; border-bottom:1px solid var(--border); }
|
|
369
|
+
.networkfyi-stat-box { padding:5px 7px; background:var(--surface); border-radius:6px; }
|
|
370
|
+
.networkfyi-stat-box-label { font-size:9px; color:var(--muted); text-transform:uppercase; }
|
|
371
|
+
.networkfyi-stat-box-value { font-size:12px; font-weight:700; color:var(--text); margin-top:1px; }
|
|
372
|
+
|
|
373
|
+
/* Card shared: key-value dotted rows */
|
|
374
|
+
.networkfyi-kv-rows { padding:8px 16px; border-bottom:1px solid var(--border); }
|
|
375
|
+
.networkfyi-kv-row { display:flex; justify-content:space-between; align-items:baseline; padding:3px 0; border-bottom:1px dotted var(--border); }
|
|
376
|
+
.networkfyi-kv-row:last-child { border-bottom:none; }
|
|
377
|
+
.networkfyi-kv-label { font-size:11px; color:var(--muted); }
|
|
378
|
+
.networkfyi-kv-value { font-size:11px; font-weight:600; color:var(--text); }
|
|
379
|
+
|
|
380
|
+
/* Card shared: pill tags */
|
|
381
|
+
.networkfyi-pills { display:flex; flex-wrap:wrap; gap:4px; padding:8px 16px; border-bottom:1px solid var(--border); }
|
|
382
|
+
.networkfyi-pill { padding:2px 7px; border-radius:4px; font-size:11px; font-weight:500; background:var(--badge-bg); color:var(--badge-text); }
|
|
383
|
+
|
|
384
|
+
/* Card shared: section label */
|
|
385
|
+
.networkfyi-section-label { font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--accent); font-weight:600; margin-bottom:3px; }
|
|
386
|
+
|
|
387
|
+
/* Card shared: description */
|
|
388
|
+
.networkfyi-desc { padding:8px 16px; font-size:13px; color:var(--muted); line-height:1.5; border-bottom:1px solid var(--border); }
|
|
389
|
+
|
|
390
|
+
/* Card shared: view link */
|
|
391
|
+
.networkfyi-view-link { display:block; text-align:center; padding:8px 16px; border-bottom:1px solid var(--border); }
|
|
392
|
+
.networkfyi-view-link a { color:var(--link); text-decoration:none; font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:4px; }
|
|
393
|
+
.networkfyi-view-link a:hover { text-decoration:underline; }
|
|
394
|
+
.networkfyi-view-link svg { width:12px; height:12px; }
|
|
395
|
+
|
|
396
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
397
|
+
Domain: code/status display (large number)
|
|
398
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
399
|
+
.networkfyi-code-display { padding:12px 16px; text-align:center; border-bottom:1px solid var(--border); }
|
|
400
|
+
.networkfyi-code-big { font-size:28px; font-weight:700; color:var(--accent); line-height:1; font-family:ui-monospace, 'SF Mono', monospace; }
|
|
401
|
+
.networkfyi-code-name { font-size:12px; color:var(--text); font-weight:600; margin-top:3px; }
|
|
402
|
+
.networkfyi-code-protocol { font-size:10px; color:var(--muted); margin-top:2px; }
|
|
403
|
+
|
|
404
|
+
/* Domain: speed bar visualization */
|
|
405
|
+
.networkfyi-speed-bar-wrap { padding:8px 16px; border-bottom:1px solid var(--border); }
|
|
406
|
+
.networkfyi-speed-bar-track { width:100%; height:6px; background:var(--surface); border-radius:3px; overflow:hidden; }
|
|
407
|
+
.networkfyi-speed-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
|
|
408
|
+
.networkfyi-speed-bar-label { font-size:10px; color:var(--muted); margin-top:3px; display:flex; justify-content:space-between; }
|
|
409
|
+
|
|
410
|
+
/* Domain: connector arrow display */
|
|
411
|
+
.networkfyi-connector-arrow { display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-bottom:1px solid var(--border); font-size:12px; font-weight:600; color:var(--text); }
|
|
412
|
+
.networkfyi-connector-arrow-icon { color:var(--accent); font-size:14px; }
|
|
413
|
+
|
|
414
|
+
/* Domain: compatibility result */
|
|
415
|
+
.networkfyi-compat-result { padding:12px 16px; text-align:center; border-bottom:1px solid var(--border); }
|
|
416
|
+
.networkfyi-compat-status { font-size:13px; font-weight:700; margin-bottom:3px; }
|
|
417
|
+
.networkfyi-compat-detail { font-size:11px; color:var(--muted); }
|
|
418
|
+
|
|
419
|
+
/* Domain: scenario card */
|
|
420
|
+
.networkfyi-scenario-header { padding:10px 16px; border-bottom:1px solid var(--border); }
|
|
421
|
+
.networkfyi-scenario-title { font-size:13px; font-weight:700; color:var(--text); margin:0 0 5px 0; }
|
|
422
|
+
.networkfyi-scenario-meta { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
|
|
423
|
+
|
|
424
|
+
/* Domain: form inputs (compatibility tool) */
|
|
425
|
+
.networkfyi-tool-form { padding:10px 16px; border-bottom:1px solid var(--border); }
|
|
426
|
+
.networkfyi-tool-row { display:flex; gap:6px; align-items:center; margin-bottom:5px; }
|
|
427
|
+
.networkfyi-tool-row:last-child { margin-bottom:0; }
|
|
428
|
+
.networkfyi-tool-input { flex:1; padding:5px 8px; border:1px solid var(--input-border); border-radius:4px; background:var(--input-bg); color:var(--text); font-size:12px; font-family:inherit; outline:none; }
|
|
429
|
+
.networkfyi-tool-input:focus { border-color:var(--input-focus); box-shadow:0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent); }
|
|
430
|
+
.networkfyi-tool-label { font-size:10px; color:var(--muted); min-width:64px; }
|
|
431
|
+
.networkfyi-tool-btn { background:var(--accent); color:#fff; border:none; border-radius:4px; padding:6px 12px; font-size:12px; font-weight:500; cursor:pointer; font-family:inherit; transition:opacity 0.15s; }
|
|
432
|
+
.networkfyi-tool-btn:hover { opacity:0.9; }
|
|
433
|
+
|
|
434
|
+
/* Clean: copy button \u2014 minimal style */
|
|
435
|
+
.networkfyi-copy-btn {
|
|
436
|
+
background: var(--surface);
|
|
437
|
+
color: var(--muted);
|
|
438
|
+
border: 1px solid var(--border);
|
|
439
|
+
border-radius: 4px;
|
|
440
|
+
padding: 3px 8px;
|
|
441
|
+
font-size: 11px;
|
|
442
|
+
cursor: pointer;
|
|
443
|
+
display: inline-flex;
|
|
444
|
+
align-items: center;
|
|
445
|
+
gap: 3px;
|
|
446
|
+
transition: all 0.15s;
|
|
447
|
+
font-family: inherit;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.networkfyi-copy-btn:hover {
|
|
451
|
+
background: var(--copy-bg);
|
|
452
|
+
border-color: var(--input-focus);
|
|
453
|
+
color: var(--text);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.networkfyi-copy-btn svg {
|
|
457
|
+
width: 10px;
|
|
458
|
+
height: 10px;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/* Inline widget host */
|
|
462
|
+
:host([data-inline]) {
|
|
463
|
+
display: inline-flex;
|
|
464
|
+
align-items: center;
|
|
465
|
+
gap: 4px;
|
|
466
|
+
}
|
|
467
|
+
`}function ue(e){switch(e){case"clean":return X();case"modern":default:return J()}}function Z(e,t="modern"){return`
|
|
468
|
+
:host {
|
|
469
|
+
display: block;
|
|
470
|
+
--site-accent: ${e};
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
474
|
+
Size variants
|
|
475
|
+
compact=280px, default=420px, large=720px
|
|
476
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
477
|
+
.networkfyi-widget {
|
|
478
|
+
box-sizing: border-box;
|
|
479
|
+
min-width: 240px;
|
|
480
|
+
max-width: 420px;
|
|
481
|
+
border-radius: 8px;
|
|
482
|
+
overflow: hidden;
|
|
483
|
+
border: 1px solid var(--border);
|
|
484
|
+
background: var(--bg);
|
|
485
|
+
color: var(--text);
|
|
486
|
+
font-size: 14px;
|
|
487
|
+
line-height: 1.6;
|
|
488
|
+
transition: border-color 0.2s;
|
|
489
|
+
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.networkfyi-widget:hover {
|
|
493
|
+
border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.networkfyi-widget[data-size="compact"] {
|
|
497
|
+
max-width: 280px;
|
|
498
|
+
font-size: 13px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.networkfyi-widget[data-size="default"] {
|
|
502
|
+
max-width: 420px;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.networkfyi-widget[data-size="large"] {
|
|
506
|
+
max-width: 720px;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
510
|
+
Light theme (default)
|
|
511
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
512
|
+
.networkfyi-widget[data-theme="light"] {
|
|
513
|
+
--bg: #fff;
|
|
514
|
+
--text: #1e293b;
|
|
515
|
+
--border: #e2e8f0;
|
|
516
|
+
--accent: var(--site-accent);
|
|
517
|
+
--muted: #64748b;
|
|
518
|
+
--surface: #f8fafc;
|
|
519
|
+
--badge-bg: #f1f5f9;
|
|
520
|
+
--badge-text: #374151;
|
|
521
|
+
--link: var(--site-accent);
|
|
522
|
+
--copy-bg: #f3f4f6;
|
|
523
|
+
--copy-hover: #e5e7eb;
|
|
524
|
+
--input-bg: #ffffff;
|
|
525
|
+
--input-border: #d1d5db;
|
|
526
|
+
--input-focus: var(--site-accent);
|
|
527
|
+
--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
531
|
+
Dark theme
|
|
532
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
533
|
+
.networkfyi-widget[data-theme="dark"] {
|
|
534
|
+
--bg: #1a1a1a;
|
|
535
|
+
--text: #f3f4f6;
|
|
536
|
+
--border: #374151;
|
|
537
|
+
--accent: var(--site-accent);
|
|
538
|
+
--muted: #9ca3af;
|
|
539
|
+
--surface: #111827;
|
|
540
|
+
--badge-bg: #374151;
|
|
541
|
+
--badge-text: #d1d5db;
|
|
542
|
+
--link: color-mix(in srgb, var(--site-accent) 80%, #fff);
|
|
543
|
+
--copy-bg: #374151;
|
|
544
|
+
--copy-hover: #4b5563;
|
|
545
|
+
--input-bg: #111111;
|
|
546
|
+
--input-border: #4b5563;
|
|
547
|
+
--input-focus: var(--site-accent);
|
|
548
|
+
--shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
552
|
+
Sepia theme
|
|
553
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
554
|
+
.networkfyi-widget[data-theme="sepia"] {
|
|
555
|
+
--bg: #f5f0e8;
|
|
556
|
+
--text: #3d3529;
|
|
557
|
+
--border: #d4c5a9;
|
|
558
|
+
--accent: var(--site-accent);
|
|
559
|
+
--muted: #8b7d6b;
|
|
560
|
+
--surface: #ede8df;
|
|
561
|
+
--badge-bg: #e8e0d0;
|
|
562
|
+
--badge-text: #5c4f3d;
|
|
563
|
+
--link: color-mix(in srgb, var(--site-accent) 70%, #3d3529);
|
|
564
|
+
--copy-bg: #e8e0d0;
|
|
565
|
+
--copy-hover: #ddd4c0;
|
|
566
|
+
--input-bg: #f5f0e8;
|
|
567
|
+
--input-border: #c4b49a;
|
|
568
|
+
--input-focus: var(--site-accent);
|
|
569
|
+
--shadow: 0 1px 3px rgba(61, 53, 41, 0.12);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.networkfyi-widget *, .networkfyi-widget *::before, .networkfyi-widget *::after {
|
|
573
|
+
box-sizing: border-box;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
577
|
+
Loading state
|
|
578
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
579
|
+
.networkfyi-loading {
|
|
580
|
+
padding: 20px 16px;
|
|
581
|
+
text-align: center;
|
|
582
|
+
color: var(--muted);
|
|
583
|
+
font-size: 13px;
|
|
584
|
+
display: flex;
|
|
585
|
+
align-items: center;
|
|
586
|
+
justify-content: center;
|
|
587
|
+
gap: 8px;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.networkfyi-spinner {
|
|
591
|
+
width: 16px;
|
|
592
|
+
height: 16px;
|
|
593
|
+
border: 2px solid var(--border);
|
|
594
|
+
border-top-color: var(--accent);
|
|
595
|
+
border-radius: 50%;
|
|
596
|
+
animation: networkfyi-spin 0.7s linear infinite;
|
|
597
|
+
display: inline-block;
|
|
598
|
+
flex-shrink: 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
@keyframes networkfyi-spin {
|
|
602
|
+
to { transform: rotate(360deg); }
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
606
|
+
Error state
|
|
607
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
608
|
+
.networkfyi-error {
|
|
609
|
+
padding: 16px;
|
|
610
|
+
color: var(--muted);
|
|
611
|
+
font-size: 13px;
|
|
612
|
+
text-align: center;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.networkfyi-error p {
|
|
616
|
+
margin: 0 0 8px 0;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.networkfyi-error a {
|
|
620
|
+
color: var(--link);
|
|
621
|
+
text-decoration: none;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.networkfyi-error a:hover {
|
|
625
|
+
text-decoration: underline;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
629
|
+
Badge (generic)
|
|
630
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
631
|
+
.networkfyi-badge {
|
|
632
|
+
display: inline-block;
|
|
633
|
+
font-size: 10px;
|
|
634
|
+
font-weight: 600;
|
|
635
|
+
padding: 2px 7px;
|
|
636
|
+
border-radius: 4px;
|
|
637
|
+
background: var(--badge-bg);
|
|
638
|
+
color: var(--badge-text);
|
|
639
|
+
text-transform: uppercase;
|
|
640
|
+
letter-spacing: 0.04em;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
644
|
+
Search inputs
|
|
645
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
646
|
+
.networkfyi-search-wrap {
|
|
647
|
+
padding: 12px 16px;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.networkfyi-search-form {
|
|
651
|
+
display: flex;
|
|
652
|
+
gap: 8px;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.networkfyi-search-input {
|
|
656
|
+
flex: 1;
|
|
657
|
+
padding: 8px 12px;
|
|
658
|
+
border: 1px solid var(--input-border);
|
|
659
|
+
border-radius: 6px;
|
|
660
|
+
background: var(--input-bg);
|
|
661
|
+
color: var(--text);
|
|
662
|
+
font-size: 13px;
|
|
663
|
+
font-family: inherit;
|
|
664
|
+
outline: none;
|
|
665
|
+
transition: border-color 0.15s;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.networkfyi-search-input:focus {
|
|
669
|
+
border-color: var(--input-focus);
|
|
670
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.networkfyi-search-input::placeholder {
|
|
674
|
+
color: var(--muted);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.networkfyi-search-btn {
|
|
678
|
+
background: var(--accent);
|
|
679
|
+
color: #fff;
|
|
680
|
+
border: none;
|
|
681
|
+
border-radius: 6px;
|
|
682
|
+
padding: 8px 14px;
|
|
683
|
+
font-size: 13px;
|
|
684
|
+
font-weight: 500;
|
|
685
|
+
cursor: pointer;
|
|
686
|
+
font-family: inherit;
|
|
687
|
+
transition: opacity 0.15s;
|
|
688
|
+
white-space: nowrap;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.networkfyi-search-btn:hover {
|
|
692
|
+
opacity: 0.9;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.networkfyi-search-results {
|
|
696
|
+
padding: 0 16px 12px;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.networkfyi-result-item {
|
|
700
|
+
padding: 8px 0;
|
|
701
|
+
border-bottom: 1px solid var(--border);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.networkfyi-result-item:last-child {
|
|
705
|
+
border-bottom: none;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.networkfyi-result-title {
|
|
709
|
+
font-size: 13px;
|
|
710
|
+
font-weight: 600;
|
|
711
|
+
color: var(--text);
|
|
712
|
+
margin: 0 0 3px 0;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.networkfyi-result-meta {
|
|
716
|
+
font-size: 11px;
|
|
717
|
+
color: var(--muted);
|
|
718
|
+
display: flex;
|
|
719
|
+
align-items: center;
|
|
720
|
+
gap: 6px;
|
|
721
|
+
flex-wrap: wrap;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
725
|
+
Powered by footer
|
|
726
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
727
|
+
.networkfyi-powered {
|
|
728
|
+
display: block;
|
|
729
|
+
text-align: center;
|
|
730
|
+
padding: 8px 16px;
|
|
731
|
+
font-size: 11px;
|
|
732
|
+
color: var(--muted);
|
|
733
|
+
border-top: 1px solid var(--border);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.networkfyi-powered a {
|
|
737
|
+
color: var(--link);
|
|
738
|
+
text-decoration: none;
|
|
739
|
+
font-weight: 500;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.networkfyi-powered a:hover {
|
|
743
|
+
text-decoration: underline;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
747
|
+
Copy button
|
|
748
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
749
|
+
.networkfyi-copy-btn {
|
|
750
|
+
background: var(--copy-bg);
|
|
751
|
+
color: var(--text);
|
|
752
|
+
border: none;
|
|
753
|
+
border-radius: 5px;
|
|
754
|
+
padding: 4px 9px;
|
|
755
|
+
font-size: 11px;
|
|
756
|
+
cursor: pointer;
|
|
757
|
+
display: inline-flex;
|
|
758
|
+
align-items: center;
|
|
759
|
+
gap: 4px;
|
|
760
|
+
transition: background 0.15s;
|
|
761
|
+
font-family: inherit;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.networkfyi-copy-btn:hover {
|
|
765
|
+
background: var(--copy-hover);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.networkfyi-copy-btn svg {
|
|
769
|
+
width: 11px;
|
|
770
|
+
height: 11px;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
774
|
+
Monospace (for values, codes, IPs)
|
|
775
|
+
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
776
|
+
.networkfyi-mono {
|
|
777
|
+
font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
|
|
778
|
+
font-size: 13px;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
${ue(t)}
|
|
782
|
+
`}function v(e,t){let n=e.dataset.styleVariant||"modern",a=e.attachShadow({mode:"open"}),o=document.createElement("style");return o.textContent=Z(t.accent,n),a.appendChild(o),a}function me(e){let t=e.dataset.theme||"light";return t==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t}function x(e,t,n){let a=me(t),o=t.dataset.size||"default",i=document.createElement("div");return i.className=["networkfyi-widget",n].filter(Boolean).join(" "),i.setAttribute("data-theme",a),i.setAttribute("data-size",o),e.appendChild(i),t.dataset.theme==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>{i.setAttribute("data-theme",s.matches?"dark":"light")}),i}function M(e){e.innerHTML=`
|
|
783
|
+
<div class="networkfyi-loading">
|
|
784
|
+
<span class="networkfyi-spinner"></span>
|
|
785
|
+
Loading\u2026
|
|
786
|
+
</div>
|
|
787
|
+
`}function $(e,t,n){e.innerHTML=`
|
|
788
|
+
<div class="networkfyi-error">
|
|
789
|
+
<p>${t}</p>
|
|
790
|
+
<a href="https://${n.domain}" target="_blank" rel="noopener">
|
|
791
|
+
Visit ${n.name}
|
|
792
|
+
</a>
|
|
793
|
+
</div>
|
|
794
|
+
`}var A='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>';function L(e){return`<span class="networkfyi-powered">Powered by <a href="https://${e.domain}" target="_blank" rel="noopener">${e.name}</a></span>`}function j(e){return`networkfyi_embed_${e}`}function we(e){try{let t=sessionStorage.getItem(j(e));if(!t)return null;let n=JSON.parse(t);return Date.now()-n.ts>3e5?(sessionStorage.removeItem(j(e)),null):n.data}catch(t){return null}}function ye(e,t){try{let n={data:t,ts:Date.now()};sessionStorage.setItem(j(e),JSON.stringify(n))}catch(n){}}async function R(e,t,n){let a=e.endsWith("/")?e:e+"/",o=t.startsWith("/")?t.slice(1):t,i=new URL(o,a);n&&Object.entries(n).forEach(([f,p])=>i.searchParams.set(f,p));let s=i.toString(),c=we(s);if(c!==null)return c;let l=await fetch(s,{headers:{Accept:"application/json"}});if(!l.ok)throw new Error(`API error ${l.status}: ${s}`);let d=await l.json();return ye(s,d),d}function r(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}function S(e,t){return t==null||t===""?"":`<div class="networkfyi-kv-row"><span class="networkfyi-kv-label">${r(e)}</span><span class="networkfyi-kv-value">${r(String(t))}</span></div>`}function F(e,t,n="#fff"){return`<span class="networkfyi-badge" style="background:${t};color:${n}">${r(e)}</span>`}function ee(e,t){var g,m,b,y,w,h,z,C,u;let n=String((b=(m=(g=e.name)!=null?g:e.term)!=null?m:e.slug)!=null?b:""),a=String((y=e.definition)!=null?y:""),o=String((h=(w=e.extended_definition)!=null?w:e.extended_description)!=null?h:""),i=String((C=(z=e.category_name)!=null?z:e.category)!=null?C:""),s=String((u=e.slug)!=null?u:""),c=t.site==="cablefyi"?"terms":"glossary",l=`https://${t.domain}/${c}/${r(s)}/`,d=`https://${t.domain}/glossary/`,f=e.related_terms,p=f&&f.length>0?`<div class="networkfyi-pills">${f.map(k=>`<a class="networkfyi-pill" href="https://${t.domain}/${c}/${r(k.slug)}/" target="_blank" rel="noopener" style="text-decoration:none;color:inherit;">${r(k.name)}</a>`).join("")}</div>`:"";return`
|
|
795
|
+
<div class="networkfyi-header">
|
|
796
|
+
<div>
|
|
797
|
+
<div class="networkfyi-header-title">${r(n)}</div>
|
|
798
|
+
${i?`<span class="networkfyi-badge" style="background:${t.accent};color:#fff;margin-top:4px;display:inline-block;">${r(i)}</span>`:""}
|
|
799
|
+
</div>
|
|
800
|
+
</div>
|
|
801
|
+
<div class="networkfyi-body" style="font-size:0.9rem;line-height:1.5;">
|
|
802
|
+
${r(a)}
|
|
803
|
+
</div>
|
|
804
|
+
${o?`<div style="padding:0 18px 10px;font-size:0.85rem;color:var(--muted);line-height:1.5;">${r(o)}</div>`:""}
|
|
805
|
+
${p}
|
|
806
|
+
<div class="networkfyi-view-link"><a href="${l}" target="_blank" rel="noopener">${r(n)} ${A}</a></div>
|
|
807
|
+
<div class="networkfyi-view-link"><a href="${d}" target="_blank" rel="noopener">Full glossary on ${r(t.name)} ${A}</a></div>
|
|
808
|
+
${L(t)}
|
|
809
|
+
`}function te(e,t){if(!e||!e.length)return`<div class="networkfyi-body">No FAQs available.</div>${L(t)}`;let n=e.map(a=>`
|
|
810
|
+
<details class="networkfyi-faq-item" style="border-bottom:1px solid var(--border);padding:10px 18px;">
|
|
811
|
+
<summary style="cursor:pointer;font-size:0.9rem;font-weight:600;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center;">
|
|
812
|
+
${r(a.question)}
|
|
813
|
+
<span style="flex-shrink:0;margin-left:8px;font-size:0.75rem;color:var(--muted);">+</span>
|
|
814
|
+
</summary>
|
|
815
|
+
<div style="margin-top:8px;font-size:0.85rem;color:var(--muted);line-height:1.5;">
|
|
816
|
+
${r(a.answer)}
|
|
817
|
+
</div>
|
|
818
|
+
</details>
|
|
819
|
+
`).join("");return`
|
|
820
|
+
<div class="networkfyi-header">
|
|
821
|
+
<div>
|
|
822
|
+
<div class="networkfyi-header-title">Frequently Asked Questions</div>
|
|
823
|
+
<div class="networkfyi-header-subtitle">${e.length} questions</div>
|
|
824
|
+
</div>
|
|
825
|
+
</div>
|
|
826
|
+
${n}
|
|
827
|
+
${L(t)}
|
|
828
|
+
`}function re(e,t){var y,w,h,z,C,u;let n=String((y=e.name)!=null?y:""),a=String((w=e.slug)!=null?w:""),o=String((h=e.description)!=null?h:""),i=String((z=e.connector_a)!=null?z:""),s=String((C=e.connector_b)!=null?C:""),c=e.max_data_rate_gbps,l=String((u=e.max_video_resolution)!=null?u:""),d=e.max_power_delivery_watts,f=e.max_recommended_length_m,p=e.supported_standards,g=`https://${t.domain}/cables/${r(a)}/`,m=i&&s?`<div class="networkfyi-connector-arrow">
|
|
829
|
+
<span>${r(i)}</span>
|
|
830
|
+
<span class="networkfyi-connector-arrow-icon">\u2194</span>
|
|
831
|
+
<span>${r(s)}</span>
|
|
832
|
+
</div>`:"",b=p&&p.length>0?`<div class="networkfyi-pills">${p.map(k=>`<span class="networkfyi-pill">${r(k)}</span>`).join("")}</div>`:"";return`
|
|
833
|
+
<div class="networkfyi-header">
|
|
834
|
+
<div class="networkfyi-img">\u{1F50C}</div>
|
|
835
|
+
<div>
|
|
836
|
+
<div class="networkfyi-header-title">${r(n)}</div>
|
|
837
|
+
<div class="networkfyi-header-subtitle">Cable</div>
|
|
838
|
+
</div>
|
|
839
|
+
</div>
|
|
840
|
+
${m}
|
|
841
|
+
<div class="networkfyi-kv-rows">
|
|
842
|
+
${c!=null?S("Max Data Rate",`${c} Gbps`):""}
|
|
843
|
+
${d!=null?S("Max Power",`${d}W`):""}
|
|
844
|
+
${l?S("Max Resolution",l):""}
|
|
845
|
+
${f!=null?S("Max Length",`${f}m`):""}
|
|
846
|
+
</div>
|
|
847
|
+
${o?`<div class="networkfyi-desc">${r(o.length>200?o.slice(0,200)+"...":o)}</div>`:""}
|
|
848
|
+
${b}
|
|
849
|
+
<div class="networkfyi-view-link"><a href="${g}" target="_blank" rel="noopener">View on ${r(t.name)} ${A}</a></div>
|
|
850
|
+
${L(t)}
|
|
851
|
+
`}function N(e){return e>=100&&e<200?"informational":e>=200&&e<300?"success":e>=300&&e<400?"redirection":e>=400&&e<500?"client-error":e>=500&&e<600?"server-error":"unknown"}function W(e){switch(e){case"informational":return"#3B82F6";case"success":return"#10B981";case"redirection":return"#F59E0B";case"client-error":return"#EF4444";case"server-error":return"#7C3AED";default:return"#6B7280"}}function ne(e){switch(e){case"informational":return"Info";case"success":return"Success";case"redirection":return"Redirect";case"client-error":return"Client Error";case"server-error":return"Server Error";default:return"Unknown"}}var ve={cloud:"#3B82F6",isp:"#10B981",cdn:"#F59E0B",enterprise:"#6366F1",hosting:"#EC4899",exchange:"#14B8A6",education:"#8B5CF6",government:"#EF4444"};function B(e){return ve[e.toLowerCase()]||"#6B7280"}function oe(e,t){var g,m,b,y,w,h;let n=e.number,a=String((g=e.name)!=null?g:""),o=String((m=e.org)!=null?m:""),i=String((b=e.country_code)!=null?b:""),s=String((y=e.category)!=null?y:""),c=String((w=e.website)!=null?w:""),l=String((h=e.description)!=null?h:""),d=e.prefix_count,f=`https://${t.domain}/asn/AS${n}/`,p=B(s);return`
|
|
852
|
+
<div class="networkfyi-header">
|
|
853
|
+
<div class="networkfyi-img" style="font-size:16px;">AS</div>
|
|
854
|
+
<div>
|
|
855
|
+
<div class="networkfyi-header-title">AS${r(String(n))}</div>
|
|
856
|
+
<div class="networkfyi-header-subtitle">${r(a||o)}</div>
|
|
857
|
+
</div>
|
|
858
|
+
</div>
|
|
859
|
+
<div class="networkfyi-stats-row">
|
|
860
|
+
<div class="networkfyi-stat">
|
|
861
|
+
<div class="networkfyi-stat-value">${r(String(n))}</div>
|
|
862
|
+
<div class="networkfyi-stat-label">ASN</div>
|
|
863
|
+
</div>
|
|
864
|
+
${d!=null?`<div class="networkfyi-stat">
|
|
865
|
+
<div class="networkfyi-stat-value">${d.toLocaleString()}</div>
|
|
866
|
+
<div class="networkfyi-stat-label">Prefixes</div>
|
|
867
|
+
</div>`:""}
|
|
868
|
+
${i?`<div class="networkfyi-stat">
|
|
869
|
+
<div class="networkfyi-stat-value">${r(i)}</div>
|
|
870
|
+
<div class="networkfyi-stat-label">Country</div>
|
|
871
|
+
</div>`:""}
|
|
872
|
+
</div>
|
|
873
|
+
<div class="networkfyi-kv-rows">
|
|
874
|
+
${o?S("Organization",o):""}
|
|
875
|
+
${s?`<div class="networkfyi-kv-row"><span class="networkfyi-kv-label">Category</span><span class="networkfyi-kv-value">${F(s,p)}</span></div>`:""}
|
|
876
|
+
${c?S("Website",c):""}
|
|
877
|
+
</div>
|
|
878
|
+
${l?`<div class="networkfyi-desc">${r(l.length>200?l.slice(0,200)+"...":l)}</div>`:""}
|
|
879
|
+
<div class="networkfyi-view-link"><a href="${f}" target="_blank" rel="noopener">View on ${r(t.name)} ${A}</a></div>
|
|
880
|
+
${L(t)}
|
|
881
|
+
`}function ie(e,t){var p,g,m,b,y,w;let n=String((p=e.name)!=null?p:""),a=String((g=e.slug)!=null?g:""),o=String((m=e.country_code)!=null?m:""),i=String((b=e.website)!=null?b:""),s=String((y=e.description)!=null?y:""),c=String((w=e.isp_type)!=null?w:""),l=e.asn_count,d=e.ip_block_count,f=`https://${t.domain}/isp/${r(a)}/`;return`
|
|
882
|
+
<div class="networkfyi-header">
|
|
883
|
+
<div class="networkfyi-img">\u{1F310}</div>
|
|
884
|
+
<div>
|
|
885
|
+
<div class="networkfyi-header-title">${r(n)}</div>
|
|
886
|
+
<div class="networkfyi-header-subtitle">${r(c||"ISP")}</div>
|
|
887
|
+
</div>
|
|
888
|
+
</div>
|
|
889
|
+
<div class="networkfyi-stats-row">
|
|
890
|
+
${l!=null?`<div class="networkfyi-stat">
|
|
891
|
+
<div class="networkfyi-stat-value">${l.toLocaleString()}</div>
|
|
892
|
+
<div class="networkfyi-stat-label">ASNs</div>
|
|
893
|
+
</div>`:""}
|
|
894
|
+
${d!=null?`<div class="networkfyi-stat">
|
|
895
|
+
<div class="networkfyi-stat-value">${d.toLocaleString()}</div>
|
|
896
|
+
<div class="networkfyi-stat-label">IP Blocks</div>
|
|
897
|
+
</div>`:""}
|
|
898
|
+
${o?`<div class="networkfyi-stat">
|
|
899
|
+
<div class="networkfyi-stat-value">${r(o)}</div>
|
|
900
|
+
<div class="networkfyi-stat-label">Country</div>
|
|
901
|
+
</div>`:""}
|
|
902
|
+
</div>
|
|
903
|
+
<div class="networkfyi-kv-rows">
|
|
904
|
+
${c?S("Type",c):""}
|
|
905
|
+
${i?S("Website",i):""}
|
|
906
|
+
</div>
|
|
907
|
+
${s?`<div class="networkfyi-desc">${r(s.length>200?s.slice(0,200)+"...":s)}</div>`:""}
|
|
908
|
+
<div class="networkfyi-view-link"><a href="${f}" target="_blank" rel="noopener">View on ${r(t.name)} ${A}</a></div>
|
|
909
|
+
${L(t)}
|
|
910
|
+
`}function se(e,t){var m,b,y,w,h,z,C;let n=String((m=e.slug)!=null?m:""),a=String((b=e.cidr)!=null?b:""),o=String((y=e.network_address)!=null?y:""),i=String((w=e.broadcast_address)!=null?w:""),s=e.prefix_length,c=e.host_count,l=e.version,d=String((h=e.country_code)!=null?h:""),f=e.asn,p=`https://${t.domain}/ip-range/${r(n)}/`,g=l===4?"IPv4":l===6?"IPv6":"";return`
|
|
911
|
+
<div class="networkfyi-header">
|
|
912
|
+
<div class="networkfyi-img" style="font-size:14px;">IP</div>
|
|
913
|
+
<div>
|
|
914
|
+
<div class="networkfyi-header-title networkfyi-mono">${r(a)}</div>
|
|
915
|
+
<div class="networkfyi-header-subtitle">${r(g||"IP Range")}</div>
|
|
916
|
+
</div>
|
|
917
|
+
</div>
|
|
918
|
+
<div class="networkfyi-kv-rows">
|
|
919
|
+
${o?S("Network",o):""}
|
|
920
|
+
${i?S("Broadcast",i):""}
|
|
921
|
+
${s!=null?S("Prefix Length",`/${s}`):""}
|
|
922
|
+
${c!=null?S("Host Count",c.toLocaleString()):""}
|
|
923
|
+
${g?S("Version",g):""}
|
|
924
|
+
${d?S("Country",d):""}
|
|
925
|
+
${f?S("ASN",`AS${String((C=(z=f.number)!=null?z:f.name)!=null?C:"")}`):""}
|
|
926
|
+
</div>
|
|
927
|
+
<div class="networkfyi-view-link"><a href="${p}" target="_blank" rel="noopener">View on ${r(t.name)} ${A}</a></div>
|
|
928
|
+
${L(t)}
|
|
929
|
+
`}function ae(e,t){var w,h,z,C,u,k;let n=e.code,a=String((w=e.name)!=null?w:""),o=String((h=e.slug)!=null?h:""),i=String((z=e.description)!=null?z:""),s=String((C=e.when_you_see_it)!=null?C:""),c=e.protocol,l=e.category,d=e.related_codes,f=c?String((u=c.name)!=null?u:""):"",p=c?String((k=c.slug)!=null?k:""):"",g=N(n),m=W(g),b=ne(g),y=p?`https://${t.domain}/${r(p)}/${r(o)}/`:`https://${t.domain}/codes/${r(o)}/`;return`
|
|
930
|
+
<div class="networkfyi-header">
|
|
931
|
+
<div class="networkfyi-img" style="background:${m};font-size:18px;">${n}</div>
|
|
932
|
+
<div>
|
|
933
|
+
<div class="networkfyi-header-title">${r(a)}</div>
|
|
934
|
+
<div class="networkfyi-header-subtitle">${r(f)} ${F(b,m)}</div>
|
|
935
|
+
</div>
|
|
936
|
+
</div>
|
|
937
|
+
<div class="networkfyi-code-display">
|
|
938
|
+
<div class="networkfyi-code-big" style="color:${m}">${n}</div>
|
|
939
|
+
<div class="networkfyi-code-name">${r(a)}</div>
|
|
940
|
+
${f?`<div class="networkfyi-code-protocol">${r(f)}</div>`:""}
|
|
941
|
+
</div>
|
|
942
|
+
${i?`<div class="networkfyi-desc">${r(i.length>200?i.slice(0,200)+"...":i)}</div>`:""}
|
|
943
|
+
${s?`<div style="padding:10px 18px;border-bottom:1px solid var(--border);">
|
|
944
|
+
<div class="networkfyi-section-label">When You See It</div>
|
|
945
|
+
<div style="font-size:0.85rem;color:var(--muted);line-height:1.5;">${r(s.length>150?s.slice(0,150)+"...":s)}</div>
|
|
946
|
+
</div>`:""}
|
|
947
|
+
${d&&d.length>0?`<div class="networkfyi-pills">${d.slice(0,5).map(E=>{var P;let _=E.code,H=String((P=E.name)!=null?P:""),T=W(N(_));return F(`${_} ${H}`,T)}).join(" ")}</div>`:""}
|
|
948
|
+
<div class="networkfyi-view-link"><a href="${y}" target="_blank" rel="noopener">View on ${r(t.name)} ${A}</a></div>
|
|
949
|
+
${L(t)}
|
|
950
|
+
`}function xe(e,t){switch(e.site){case"cablefyi":return`cable/${t}/`;case"ipfyi":return`asn/${t}/`;case"statuscodefyi":return`code/${t}/`;default:return`${e.entitySlug}/${t}/`}}function q(e,t){var c;let a=(c=e.dataset.slug)!=null?c:"";if(!a){let l=v(e,t),d=x(l,e,"networkfyi-entity-widget");$(d,"Missing data-slug attribute.",t);return}let o=v(e,t),i=x(o,e,"networkfyi-entity-widget");M(i);let s=xe(t,a);R(t.apiBase,s).then(l=>{var f;let d;switch(t.site){case"cablefyi":d=re(l,t);break;case"ipfyi":d=oe(l,t);break;case"statuscodefyi":d=ae(l,t);break;default:{let p=String((f=l.name)!=null?f:a),g=`https://${t.domain}/${t.entitySlug}/${r(a)}/`;d=`
|
|
951
|
+
<div style="padding:16px;">
|
|
952
|
+
<div style="font-size:1rem;font-weight:600;margin-bottom:8px;">${r(p)}</div>
|
|
953
|
+
<a href="${r(g)}" target="_blank" rel="noopener"
|
|
954
|
+
style="color:${t.accent};text-decoration:none;font-size:0.85rem;">
|
|
955
|
+
View on ${r(t.name)} ${A}
|
|
956
|
+
</a>
|
|
957
|
+
</div>
|
|
958
|
+
`;break}}i.innerHTML=d}).catch(()=>{$(i,`Unable to load "${r(a)}". Please try again later.`,t)})}function U(e,t){var c,l;let n=e.dataset,a=(c=n.slugA)!=null?c:"",o=(l=n.slugB)!=null?l:"";if(!a||!o){let d=v(e,t),f=x(d,e,"networkfyi-compare-widget");$(f,"Missing data-slug-a and data-slug-b attributes.",t);return}let i=v(e,t),s=x(i,e,"networkfyi-compare-widget");M(s),R(t.apiBase,"compare/",{slug1:a,slug2:o}).then(d=>{var w,h,z,C,u,k,E,_,H,T,P;let f=String((h=(w=d.name_a)!=null?w:d.slug_a)!=null?h:a),p=String((C=(z=d.name_b)!=null?z:d.slug_b)!=null?C:o),g=d.differences,m=String((u=d.summary)!=null?u:""),b=`https://${t.domain}/compare/?slug1=${encodeURIComponent(a)}&slug2=${encodeURIComponent(o)}`,y="";if(g&&g.length>0){y='<div class="networkfyi-kv-rows">';for(let I of g.slice(0,8)){let D=String((E=(k=I.field)!=null?k:I.label)!=null?E:""),fe=String((H=(_=I.value_a)!=null?_:I.a)!=null?H:""),ge=String((P=(T=I.value_b)!=null?T:I.b)!=null?P:"");y+=`
|
|
959
|
+
<div class="networkfyi-kv-row">
|
|
960
|
+
<span class="networkfyi-kv-label">${r(D)}</span>
|
|
961
|
+
<span class="networkfyi-kv-value">${r(fe)} vs ${r(ge)}</span>
|
|
962
|
+
</div>`}y+="</div>"}s.innerHTML=`
|
|
963
|
+
<div class="networkfyi-header">
|
|
964
|
+
<div>
|
|
965
|
+
<div class="networkfyi-header-title">${r(f)} vs ${r(p)}</div>
|
|
966
|
+
<div class="networkfyi-header-subtitle">Comparison</div>
|
|
967
|
+
</div>
|
|
968
|
+
</div>
|
|
969
|
+
<div class="networkfyi-stats-row">
|
|
970
|
+
<div class="networkfyi-stat">
|
|
971
|
+
<div class="networkfyi-stat-value" style="font-size:14px;">${r(f)}</div>
|
|
972
|
+
<div class="networkfyi-stat-label">A</div>
|
|
973
|
+
</div>
|
|
974
|
+
<div class="networkfyi-stat">
|
|
975
|
+
<div class="networkfyi-stat-value" style="font-size:14px;">${r(p)}</div>
|
|
976
|
+
<div class="networkfyi-stat-label">B</div>
|
|
977
|
+
</div>
|
|
978
|
+
</div>
|
|
979
|
+
${y}
|
|
980
|
+
${m?`<div class="networkfyi-desc">${r(m)}</div>`:""}
|
|
981
|
+
<div class="networkfyi-view-link"><a href="${r(b)}" target="_blank" rel="noopener">Compare on ${r(t.name)} ${A}</a></div>
|
|
982
|
+
${L(t)}
|
|
983
|
+
`}).catch(()=>{$(s,"Unable to load comparison data.",t)})}function de(e,t,n){if(document.querySelector('script[data-networkfyi-snippet="term"]'))return;let a={"@context":"https://schema.org","@type":"DefinedTerm",name:e.name,description:e.definition,inDefinedTermSet:{"@type":"DefinedTermSet",name:`${n} Glossary`,url:`https://${t}/glossary/`}},o=document.createElement("script");o.type="application/ld+json",o.setAttribute("data-networkfyi-snippet","term"),o.textContent=JSON.stringify(a),document.head.appendChild(o)}function le(e,t,n){if(document.querySelector('script[data-networkfyi-snippet="faq"]'))return;let a={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(i=>({"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:i.answer}})),url:`https://${t}/`},o=document.createElement("script");o.type="application/ld+json",o.setAttribute("data-networkfyi-snippet","faq"),o.textContent=JSON.stringify(a),document.head.appendChild(o)}function O(e,t){var c;let a=(c=e.dataset.slug)!=null?c:"";if(!a){let l=v(e,t),d=x(l,e,"networkfyi-glossary-widget");$(d,"Missing data-slug attribute.",t);return}let o=v(e,t),i=x(o,e,"networkfyi-glossary-widget");M(i);let s=`term/${a}/`;R(t.apiBase,s).then(l=>{var d,f,p;if(i.innerHTML=ee(l,t),e.dataset.noSnippet!=="true"){let g=String((f=(d=l.name)!=null?d:l.term)!=null?f:a),m=String((p=l.definition)!=null?p:"");de({name:g,definition:m},t.domain,t.name)}}).catch(()=>{$(i,`Unable to load glossary term "${r(a)}".`,t)})}var be={cable:"Cable",connector:"Connector",standard:"Standard",asn:"ASN",isp:"ISP","ip-range":"IP Range",code:"Status Code",protocol:"Protocol",scenario:"Scenario",spec:"Spec",glossary:"Glossary",term:"Glossary",guide:"Guide",faq:"FAQ"},ke='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="14" height="14"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>';function V(e,t){var C;let a=(C=e.dataset.placeholder)!=null?C:`Search ${t.entityName}...`,o=v(e,t),i=x(o,e,"networkfyi-search-widget"),s=!1,c="",l=[],d=-1,f=null;i.innerHTML=`
|
|
984
|
+
<div class="networkfyi-search-wrap">
|
|
985
|
+
<div class="networkfyi-search-form" style="position:relative;display:flex;align-items:center;">
|
|
986
|
+
<span style="position:absolute;left:10px;color:var(--muted);pointer-events:none;">${ke}</span>
|
|
987
|
+
<input
|
|
988
|
+
class="networkfyi-search-input"
|
|
989
|
+
type="search"
|
|
990
|
+
autocomplete="off"
|
|
991
|
+
spellcheck="false"
|
|
992
|
+
placeholder="${r(a)}"
|
|
993
|
+
aria-label="Search ${r(t.name)}"
|
|
994
|
+
aria-autocomplete="list"
|
|
995
|
+
aria-expanded="false"
|
|
996
|
+
role="combobox"
|
|
997
|
+
style="padding-left:32px;"
|
|
998
|
+
>
|
|
999
|
+
</div>
|
|
1000
|
+
<div class="networkfyi-search-dropdown" role="listbox" hidden
|
|
1001
|
+
style="margin-top:4px;border:1px solid var(--border);border-radius:6px;background:var(--bg);box-shadow:var(--shadow);max-height:280px;overflow-y:auto;"></div>
|
|
1002
|
+
</div>
|
|
1003
|
+
${L(t)}
|
|
1004
|
+
`;let p=i.querySelector(".networkfyi-search-input"),g=i.querySelector(".networkfyi-search-dropdown");function m(){return Array.from(g.querySelectorAll(".networkfyi-result-item"))}function b(u){m().forEach((E,_)=>{_===u?E.style.background=`color-mix(in srgb, ${t.accent} 10%, var(--bg))`:E.style.background=""}),d=u}function y(){s=!0,g.hidden=!1,p.setAttribute("aria-expanded","true")}function w(){s=!1,g.hidden=!0,p.setAttribute("aria-expanded","false"),d=-1}function h(){var k,E,_,H;if(l.length===0){g.innerHTML=`<div style="padding:12px 14px;font-size:0.85rem;color:var(--muted);">No results for <strong>${r(c)}</strong></div>`;return}let u="";for(let T of l){let P=T.type?(k=be[T.type])!=null?k:T.type:null,I=(H=(_=(E=T.description)!=null?E:T.excerpt)!=null?_:T.subtitle)!=null?H:"",D=T.url?T.url.startsWith("http")?T.url:`https://${t.domain}${T.url}`:`https://${t.domain}/${t.entitySlug}/${r(T.slug||"")}/`;u+=`
|
|
1005
|
+
<a class="networkfyi-result-item"
|
|
1006
|
+
href="${r(D)}" target="_blank" rel="noopener" role="option" tabindex="-1"
|
|
1007
|
+
style="display:block;padding:8px 14px;text-decoration:none;color:var(--text);border-bottom:1px solid var(--border);transition:background 0.1s;">
|
|
1008
|
+
<div style="display:flex;align-items:center;justify-content:space-between;gap:8px;">
|
|
1009
|
+
<span style="font-size:0.875rem;font-weight:500;">${r(T.name)}</span>
|
|
1010
|
+
${P?`<span class="networkfyi-badge" style="flex-shrink:0;">${r(P)}</span>`:""}
|
|
1011
|
+
</div>
|
|
1012
|
+
${I?`<div style="font-size:0.75rem;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">${r(I)}</div>`:""}
|
|
1013
|
+
</a>
|
|
1014
|
+
`}g.innerHTML=u}async function z(u){var E;if(!u.trim()){w();return}let k=`${t.apiBase}search/?q=${encodeURIComponent(u)}&limit=10`;try{let _=await fetch(k,{headers:{Accept:"application/json"}});if(!_.ok)throw new Error(`Search failed: ${_.status}`);l=(E=(await _.json()).results)!=null?E:[]}catch(_){l=[]}h(),y(),b(-1)}p.addEventListener("input",()=>{if(c=p.value,f!==null&&clearTimeout(f),!c.trim()){w();return}f=setTimeout(()=>{z(c)},300)}),p.addEventListener("keydown",u=>{if(!s)return;let k=m(),E=k.length;u.key==="ArrowDown"?(u.preventDefault(),b(d<E-1?d+1:0)):u.key==="ArrowUp"?(u.preventDefault(),b(d>0?d-1:E-1)):u.key==="Enter"?(u.preventDefault(),d>=0&&k[d]?k[d].click():window.open(`https://${t.domain}${t.searchPath}?q=${encodeURIComponent(c)}`,"_blank","noopener")):u.key==="Escape"&&(w(),p.blur())}),document.addEventListener("click",u=>{s&&!e.contains(u.target)&&w()}),p.addEventListener("focus",()=>{p.style.borderColor=t.accent,p.style.boxShadow=`0 0 0 2px color-mix(in srgb, ${t.accent} 20%, transparent)`}),p.addEventListener("blur",()=>{p.style.borderColor="",p.style.boxShadow=""})}function Q(e,t){var c;let a=(c=e.dataset.slug)!=null?c:"";if(!a){let l=v(e,t),d=x(l,e,"networkfyi-faq-widget");$(d,"Missing data-slug attribute.",t);return}let o=v(e,t),i=x(o,e,"networkfyi-faq-widget");M(i);let s=`faqs/?topic=${encodeURIComponent(a)}`;R(t.apiBase,s).then(l=>{let d;l.faqs&&Array.isArray(l.faqs)?d=l.faqs:l.results&&Array.isArray(l.results)?d=l.results:l.question&&l.answer?d=[{question:String(l.question),answer:String(l.answer)}]:d=[],i.innerHTML=te(d,t),e.dataset.noSnippet!=="true"&&d.length>0&&le(d,t.domain,t.name)}).catch(()=>{$(i,`Unable to load FAQs for "${r(a)}".`,t)})}function G(e,t){var i;let n=(i=e.dataset.slug)!=null?i:"";if(!n){let s=v(e,t),c=x(s,e,"networkfyi-isp-widget");$(c,"Missing data-slug attribute.",t);return}let a=v(e,t),o=x(a,e,"networkfyi-isp-widget");M(o),R(t.apiBase,`isp/${n}/`).then(s=>{o.innerHTML=ie(s,t)}).catch(()=>{$(o,`Unable to load ISP "${r(n)}".`,t)})}function K(e,t){var i;let n=(i=e.dataset.slug)!=null?i:"";if(!n){let s=v(e,t),c=x(s,e,"networkfyi-ip-range-widget");$(c,"Missing data-slug attribute.",t);return}let a=v(e,t),o=x(a,e,"networkfyi-ip-range-widget");M(o),R(t.apiBase,`ip-range/${n}/`).then(s=>{o.innerHTML=se(s,t)}).catch(()=>{$(o,`Unable to load IP range "${r(n)}".`,t)})}function ce(e,t){var c,l;let n=(c=e.dataset.category)!=null?c:"",a=((l=e.textContent)==null?void 0:l.trim())||n;e.setAttribute("data-inline","");let o=v(e,t),i=x(o,e,"networkfyi-inline");i.setAttribute("data-theme",e.dataset.theme||"light");let s=B(n);i.innerHTML=`
|
|
1015
|
+
<span class="networkfyi-badge" style="background:${s};color:#fff;font-size:11px;padding:2px 8px;">
|
|
1016
|
+
${r(a)}
|
|
1017
|
+
</span>
|
|
1018
|
+
`}function he(e,t,n){let a=e.dataset.styleVariant||"modern";switch(t){case"entity":q(e,n);break;case"compare":U(e,n);break;case"glossary":O(e,n);break;case"search":V(e,n);break;case"faq":Q(e,n);break;case"isp":G(e,n);break;case"ip-range":K(e,n);break;case"asn-badge":ce(e,n);break;default:break}}function $e(e,t){if("IntersectionObserver"in window){let n=new IntersectionObserver(a=>{a.forEach(o=>{o.isIntersecting&&(n.unobserve(e),t())})},{rootMargin:"200px"});n.observe(e)}else t()}function Y(e,t){if(e.shadowRoot)return;let a=t.attribute.replace("data-","").replace(/-([a-z])/g,(i,s)=>s.toUpperCase()),o=e.dataset[a];o&&$e(e,()=>{e.shadowRoot||he(e,o,t)})}function pe(e){document.querySelectorAll(`[${e.attribute}]`).forEach(t=>Y(t,e))}(function(){let t='{"site":"ipfyi","name":"IPFYI","domain":"ipfyi.com","accent":"#334155","attribute":"data-ipfyi","apiBase":"https://ipfyi.com/api/v1/","searchPath":"/search/","entityName":"Networks","entitySlug":"asn"}';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>pe(t)):pe(t),new MutationObserver(a=>{a.forEach(o=>{o.addedNodes.forEach(i=>{var c;if(i.nodeType!==Node.ELEMENT_NODE)return;let s=i;s.hasAttribute(t.attribute)&&Y(s,t),(c=s.querySelectorAll)==null||c.call(s,`[${t.attribute}]`).forEach(l=>Y(l,t))})})}).observe(document.body||document.documentElement,{childList:!0,subtree:!0})})();function Se(e,t,n){let a=[...n,"theme","style-variant","size"];return class extends HTMLElement{static get observedAttributes(){return a}connectedCallback(){this.shadowRoot||(this._syncDataAttrs(),t(this,'{"site":"ipfyi","name":"IPFYI","domain":"ipfyi.com","accent":"#334155","attribute":"data-ipfyi","apiBase":"https://ipfyi.com/api/v1/","searchPath":"/search/","entityName":"Networks","entitySlug":"asn"}'))}attributeChangedCallback(o,i,s){if(i===s||!this.shadowRoot)return;let c=this.shadowRoot;for(;c.firstChild;)c.firstChild.remove();this._syncDataAttrs(),t(this,'{"site":"ipfyi","name":"IPFYI","domain":"ipfyi.com","accent":"#334155","attribute":"data-ipfyi","apiBase":"https://ipfyi.com/api/v1/","searchPath":"/search/","entityName":"Networks","entitySlug":"asn"}')}_syncDataAttrs(){let o='{"site":"ipfyi","name":"IPFYI","domain":"ipfyi.com","accent":"#334155","attribute":"data-ipfyi","apiBase":"https://ipfyi.com/api/v1/","searchPath":"/search/","entityName":"Networks","entitySlug":"asn"}'.attribute.replace("data-","");this.dataset[o]=e;for(let l of n){let d=this.getAttribute(l);d!==null&&(this.dataset[l]=d)}let i=this.getAttribute("theme");i!==null&&(this.dataset.theme=i);let s=this.getAttribute("style-variant");s!==null&&(this.dataset.styleVariant=s);let c=this.getAttribute("size");c!==null&&(this.dataset.size=c)}}}(function(){if(typeof customElements=="undefined")return;let t='{"site":"ipfyi","name":"IPFYI","domain":"ipfyi.com","accent":"#334155","attribute":"data-ipfyi","apiBase":"https://ipfyi.com/api/v1/","searchPath":"/search/","entityName":"Networks","entitySlug":"asn"}'.site,n=[[`${t}-entity`,q,["slug"]],[`${t}-compare`,U,["slug-a","slug-b"]],[`${t}-glossary`,O,["slug"]],[`${t}-search`,V,["placeholder"]],[`${t}-faq`,Q,["slug"]],[`${t}-isp`,G,["slug"]],[`${t}-ip-range`,K,["slug"]]];for(let[a,o,i]of n)if(!customElements.get(a)){let s=a.slice(t.length+1);customElements.define(a,Se(s,o,i))}})();})();
|