summaryrefslogtreecommitdiff
path: root/irclog/search/index.html
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-11-04 02:18:30 +0800
committerMistivia <i@mistivia.com>2025-11-04 02:18:30 +0800
commite1ae9516cc1a2e0ed44932bf76256752f5003ae1 (patch)
treed8ad1b128153d1a861aa09acc2f7446643b5d96d /irclog/search/index.html
parent848f1214153f7b8af2a243ade2799b4d3fc4e2bc (diff)
add search for irclog
Diffstat (limited to 'irclog/search/index.html')
-rw-r--r--irclog/search/index.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/irclog/search/index.html b/irclog/search/index.html
new file mode 100644
index 0000000..066b30d
--- /dev/null
+++ b/irclog/search/index.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
+ <title>IRC Log Viewer</title>
+ <style>
+ body {
+ font-family: Arial, sans-serif;
+ max-width: 1200px;
+ margin: 20px;
+ background-color: #f4f4f4;
+ }
+ #log-container {
+ border: 1px solid #ccc;
+ padding: 15px;
+ background-color: #fff;
+ white-space: pre-wrap;
+ }
+ pre {
+ font-family: Consolas, monospace;
+ margin: 0;
+ padding: 0;
+ overflow-wrap: anywhere;
+ white-space: pre-wrap;
+ }
+ .error {
+ color: red;
+ font-weight: bold;
+ }
+ .loading {
+ color: blue;
+ }
+
+ @media (max-width: 600px) {
+ pre {
+ font-size: 0.7em;
+ }
+ }
+ #searchlink {
+ visibility: hidden;
+ }
+ a:link,
+ a:visited {
+ color: blue;
+ text-decoration: underline;
+ }
+ </style>
+</head>
+<body>
+
+ <h1>IRC日志检索</h1>
+ <div id="controls">
+ <input type="text" id="query" value="">
+ <button onclick="search()">搜索</button>
+ <br>
+ <br>
+ </div>
+ <div id="log-container"></div>
+ <script src="./search.js"></script>
+</body>
+</html>