-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
513 lines (485 loc) · 30.1 KB
/
index.html
File metadata and controls
513 lines (485 loc) · 30.1 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
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<!-- 动态设置 base href 以支持不同部署环境(子目录部署、自定义域名等) -->
<script>
(function() {
var base = document.createElement('base');
var pathname = window.location.pathname;
var basePath = '/';
// 方法1: 如果 URL 包含 /tools/,则 /tools/ 之前的部分就是 base path
var toolsIndex = pathname.indexOf('/tools/');
if (toolsIndex > 0) {
basePath = pathname.substring(0, toolsIndex + 1);
} else if (toolsIndex === -1) {
// 方法2: 首页情况 - 检测是否在子目录
// 排除已知的根目录路径
var parts = pathname.split('/').filter(Boolean);
if (parts.length > 0) {
var knownRootPaths = ['assets', 'locales', 'tools', 'index.html'];
// 如果第一段不是已知路径,则认为是子目录部署
if (!knownRootPaths.includes(parts[0]) && !parts[0].endsWith('.html')) {
basePath = '/' + parts[0] + '/';
}
}
}
// toolsIndex === 0 的情况:/tools/... 表示 base 是 /
base.href = basePath;
document.head.appendChild(base);
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="REOT - 纯前端逆向工程在线工具箱,提供编码解码、加密解密、哈希计算等功能">
<meta name="keywords" content="逆向工程,在线工具,编码解码,加密解密,Base64,MD5,SHA,AES,RSA">
<meta name="author" content="Evil0ctal">
<title data-i18n="site.title">REOT - 逆向工程在线工具箱</title>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="assets/images/logo.svg">
<link rel="apple-touch-icon" href="assets/images/logo.svg">
<!-- Google Fonts - Tech Startup & Developer -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<!-- Styles -->
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/themes/light.css" id="theme-light">
<link rel="stylesheet" href="assets/css/themes/dark.css" id="theme-dark">
<link rel="stylesheet" href="assets/css/code-editor.css">
</head>
<body>
<div id="app" class="app-container">
<!-- 页头 -->
<header class="app-header" id="header">
<div class="header-left">
<button class="menu-toggle" id="menu-toggle" aria-label="Toggle Menu">
<span class="hamburger"></span>
</button>
<a href="./" class="logo" data-route="/">
<img src="assets/images/logo.svg" alt="REOT Logo" class="logo-image">
<span class="logo-text" data-i18n="site.name">REOT</span>
</a>
</div>
<div class="header-center">
<div class="search-box">
<input type="text"
id="search-input"
class="search-input"
data-i18n-placeholder="common.searchPlaceholder"
placeholder="搜索工具...">
<button class="search-btn" aria-label="Search">
<svg class="icon-search" viewBox="0 0 24 24" width="20" height="20">
<circle cx="11" cy="11" r="8" fill="none" stroke="currentColor" stroke-width="2"/>
<path d="M21 21l-4.35-4.35" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
</button>
</div>
</div>
<div class="header-right">
<button class="theme-toggle" id="theme-toggle" aria-label="Toggle Theme">
<svg class="icon-sun" viewBox="0 0 24 24" width="20" height="20">
<circle cx="12" cy="12" r="5" fill="currentColor"/>
<g stroke="currentColor" stroke-width="2" stroke-linecap="round">
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</g>
</svg>
<svg class="icon-moon" viewBox="0 0 24 24" width="20" height="20" style="display:none;">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" fill="currentColor"/>
</svg>
</button>
<div class="language-selector">
<select id="language-select" class="language-select">
<option value="zh-CN">简体中文</option>
<option value="en-US">English</option>
</select>
</div>
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit"
target="_blank"
rel="noopener noreferrer"
class="github-link"
aria-label="GitHub">
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/>
</svg>
</a>
</div>
</header>
<!-- 侧边栏 -->
<aside class="app-sidebar" id="sidebar">
<nav class="sidebar-nav">
<!-- 分类列表 -->
<div class="nav-category" data-category="encoding">
<div class="category-header">
<span class="category-icon">📝</span>
<span class="category-title" data-i18n="categories.encoding">编码与解码</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="compression">
<div class="category-header">
<span class="category-icon">📦</span>
<span class="category-title" data-i18n="categories.compression">压缩与解压</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="hashing">
<div class="category-header">
<span class="category-icon">🔐</span>
<span class="category-title" data-i18n="categories.hashing">哈希计算</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="hmac">
<div class="category-header">
<span class="category-icon">🔑</span>
<span class="category-title" data-i18n="categories.hmac">HMAC 计算</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="encryption">
<div class="category-header">
<span class="category-icon">🔒</span>
<span class="category-title" data-i18n="categories.encryption">加密与解密</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="formatting">
<div class="category-header">
<span class="category-icon">📋</span>
<span class="category-title" data-i18n="categories.formatting">数据格式化</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="binary">
<div class="category-header">
<span class="category-icon">💾</span>
<span class="category-title" data-i18n="categories.binary">二进制分析</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="protocol">
<div class="category-header">
<span class="category-icon">📡</span>
<span class="category-title" data-i18n="categories.protocol">协议解析</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="network">
<div class="category-header">
<span class="category-icon">🌐</span>
<span class="category-title" data-i18n="categories.network">网络工具</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="generators">
<div class="category-header">
<span class="category-icon">⚡</span>
<span class="category-title" data-i18n="categories.generators">生成器</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="converters">
<div class="category-header">
<span class="category-icon">🔄</span>
<span class="category-title" data-i18n="categories.converters">数值转换</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="text">
<div class="category-header">
<span class="category-icon">📄</span>
<span class="category-title" data-i18n="categories.text">文本处理</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
<div class="nav-category" data-category="reverse">
<div class="category-header">
<span class="category-icon">🔧</span>
<span class="category-title" data-i18n="categories.reverse">逆向专用</span>
<span class="category-arrow">▼</span>
</div>
<ul class="category-tools"></ul>
</div>
</nav>
</aside>
<!-- 主内容区 -->
<main class="app-main" id="main">
<!-- 首页内容 -->
<div class="home-content" id="home-content">
<!-- Hero Section with Gradient Background -->
<section class="hero">
<div class="hero-glow"></div>
<div class="hero-content">
<div class="hero-badge">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 2L2 7l10 5 10-5-10-5z"/>
<path d="M2 17l10 5 10-5"/>
<path d="M2 12l10 5 10-5"/>
</svg>
<span data-i18n="home.badge">纯前端 · 零服务器</span>
</div>
<h1 class="hero-title" data-i18n="home.title">逆向工程在线工具箱</h1>
<p class="hero-subtitle" data-i18n="home.subtitle">纯前端实现,数据不上传,保护您的隐私安全</p>
<div class="hero-actions">
<a href="#all-tools-section" class="hero-btn hero-btn--primary">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7"/>
<rect x="14" y="3" width="7" height="7"/>
<rect x="14" y="14" width="7" height="7"/>
<rect x="3" y="14" width="7" height="7"/>
</svg>
<span data-i18n="home.exploreTools">探索工具</span>
</a>
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit" target="_blank" rel="noopener noreferrer" class="hero-btn hero-btn--secondary">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/>
</svg>
<span>GitHub</span>
</a>
</div>
<!-- GitHub Stats Badges -->
<div class="github-stats">
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit/stargazers" target="_blank" rel="noopener noreferrer" class="github-stat-badge" title="GitHub Stars">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
</svg>
<span>Stars</span>
<span class="github-stat-count" id="github-stars">-</span>
</a>
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit/issues" target="_blank" rel="noopener noreferrer" class="github-stat-badge" title="Open Issues">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/>
<line x1="12" y1="8" x2="12" y2="12"/>
<line x1="12" y1="16" x2="12.01" y2="16"/>
</svg>
<span>Issues</span>
<span class="github-stat-count" id="github-issues">-</span>
</a>
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit/pulls" target="_blank" rel="noopener noreferrer" class="github-stat-badge" title="Pull Requests">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="18" cy="18" r="3"/>
<circle cx="6" cy="6" r="3"/>
<path d="M13 6h3a2 2 0 0 1 2 2v7"/>
<line x1="6" y1="9" x2="6" y2="21"/>
</svg>
<span>PRs</span>
<span class="github-stat-count" id="github-prs">-</span>
</a>
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit/network/members" target="_blank" rel="noopener noreferrer" class="github-stat-badge" title="Forks">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="18" r="3"/>
<circle cx="6" cy="6" r="3"/>
<circle cx="18" cy="6" r="3"/>
<path d="M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9"/>
<line x1="12" y1="12" x2="12" y2="15"/>
</svg>
<span>Forks</span>
<span class="github-stat-count" id="github-forks">-</span>
</a>
</div>
<!-- Version & Changelog Row -->
<div class="github-stats github-stats--secondary">
<a href="https://github.com/Evil0ctal/Reverse-Engineering-Online-Toolkit/tags" target="_blank" rel="noopener noreferrer" class="github-stat-badge github-stat-badge--version" title="Version">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"/>
<line x1="7" y1="7" x2="7.01" y2="7"/>
</svg>
<span id="github-version">-</span>
</a>
<a href="#" id="changelog-link" class="github-stat-badge github-stat-badge--changelog" data-i18n-title="home.changelog">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
<polyline points="14 2 14 8 20 8"/>
<line x1="16" y1="13" x2="8" y2="13"/>
<line x1="16" y1="17" x2="8" y2="17"/>
<polyline points="10 9 9 9 8 9"/>
</svg>
<span data-i18n="home.changelog">更新日志</span>
</a>
</div>
</div>
</section>
<!-- Compact Stats & Features Bar -->
<div class="features-bar">
<div class="feature-badge">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/>
<rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/>
</svg>
<span id="stat-tools">--</span>
<span data-i18n="home.stats.tools">工具</span>
</div>
<div class="feature-badge">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/>
</svg>
<span id="stat-categories">--</span>
<span data-i18n="home.stats.categories">分类</span>
</div>
<div class="feature-badge feature-badge--highlight">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
</svg>
<span data-i18n="home.features.secure.title">隐私安全</span>
</div>
<div class="feature-badge feature-badge--highlight">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>
</svg>
<span data-i18n="home.features.fast.title">即开即用</span>
</div>
<div class="feature-badge feature-badge--highlight">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>
</svg>
<span>0ms</span>
<span data-i18n="home.stats.latency">延迟</span>
</div>
</div>
<!-- Quick Access Section with Customization -->
<section class="quick-access" id="quick-access-section">
<div class="section-header">
<h2 class="section-title" data-i18n="home.quickAccess">快速访问</h2>
<div class="section-actions">
<button class="section-action-btn" id="edit-quick-access" title="编辑快速访问">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
</svg>
<span data-i18n="home.editQuickAccess">编辑</span>
</button>
<button class="section-action-btn" id="reset-quick-access" title="重置为默认" style="display: none;">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="1 4 1 10 7 10"/>
<path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/>
</svg>
<span data-i18n="home.resetQuickAccess">重置</span>
</button>
</div>
</div>
<p class="section-hint" id="quick-access-hint" style="display: none;" data-i18n="home.quickAccessHint">点击工具卡片上的星标来添加或移除快速访问</p>
<div class="tool-grid" id="popular-tools">
<!-- 由 JavaScript 动态填充 -->
</div>
<div class="empty-state" id="quick-access-empty" style="display: none;">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
</svg>
<p data-i18n="home.noQuickAccess">还没有快速访问工具</p>
<span data-i18n="home.addQuickAccessHint">点击下方工具卡片的星标添加</span>
</div>
</section>
<!-- Category Tools Section -->
<section class="category-tools-section" id="category-tools-section">
<div class="section-header">
<h2 class="section-title" data-i18n="home.browseByCategory">按分类浏览</h2>
</div>
<div class="category-cards-grid" id="category-cards">
<!-- 由 JavaScript 动态填充 -->
</div>
</section>
<!-- All Tools Section with Collapse -->
<section class="all-tools" id="all-tools-section">
<div class="section-header section-header--collapsible" id="all-tools-header">
<h2 class="section-title" data-i18n="home.allTools">所有工具</h2>
<button class="collapse-toggle" id="toggle-all-tools">
<span class="tool-count" id="tool-count"></span>
<svg class="collapse-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="6 9 12 15 18 9"/>
</svg>
</button>
</div>
<div class="tool-grid collapsible" id="all-tools">
<!-- 由 JavaScript 动态填充 -->
</div>
</section>
</div>
<!-- 工具内容区(动态加载) -->
<div class="tool-content" id="tool-content" style="display: none;">
<!-- 工具页面将通过 iframe 或动态加载方式显示 -->
</div>
</main>
<!-- 页脚 -->
<footer class="app-footer" id="footer">
<div class="footer-content">
<p class="copyright">
© 2024-2026
<a href="https://github.com/Evil0ctal" target="_blank" rel="noopener noreferrer">Evil0ctal</a>.
<span data-i18n="footer.rights">保留所有权利。</span>
</p>
<p class="license">
<span data-i18n="footer.license">基于</span>
<a href="https://opensource.org/licenses/Apache-2.0" target="_blank" rel="noopener noreferrer">Apache License 2.0</a>
<span data-i18n="footer.openSource">开源</span>
</p>
</div>
</footer>
</div>
<!-- 搜索结果弹出框 -->
<div class="search-results-overlay" id="search-overlay" style="display: none;">
<div class="search-results-container">
<div class="search-results-header">
<h3 data-i18n="common.searchResults">搜索结果</h3>
<button class="close-btn" id="close-search">×</button>
</div>
<div class="search-results-list" id="search-results">
<!-- 搜索结果动态填充 -->
</div>
</div>
</div>
<!-- SPA 重定向处理(支持本地开发和 GitHub Pages) -->
<script>
(function() {
// 检查 URL 查询参数中的 path 重定向(工具页面直接访问时使用)
var urlParams = new URLSearchParams(window.location.search);
var pathParam = urlParams.get('path');
if (pathParam) {
window.__REDIRECT_PATH__ = decodeURIComponent(pathParam);
// 清除 URL 中的查询参数
window.history.replaceState({}, '', window.location.pathname);
return;
}
// 检查工具页面重定向
var redirect = sessionStorage.getItem('spa_redirect');
if (redirect) {
sessionStorage.removeItem('spa_redirect');
window.__REDIRECT_PATH__ = redirect;
return;
}
// 检查 404.html 重定向(支持 GitHub Pages 和自定义域名)
redirect = sessionStorage.getItem('github_pages_redirect');
if (redirect) {
sessionStorage.removeItem('github_pages_redirect');
window.__REDIRECT_PATH__ = redirect;
}
})();
</script>
<!-- Scripts -->
<script src="assets/js/utils.js"></script>
<script src="assets/js/i18n.js"></script>
<script src="assets/js/code-editor.js"></script>
<script src="assets/js/libs/x509.js"></script>
<script src="assets/js/router.js"></script>
<script src="assets/js/tools-registry.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>