summaryrefslogtreecommitdiff
path: root/irclog/view/index.html
blob: 490e9c33bd89f05a147213939044e9544fbf660f (plain)
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
<!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;
        }
    </style>
</head>
<body>

    <h1>IRC Log Viewer</h1>
    <div id="controls">
        <label for="log-date">选择日期:</label>
        <input type="date" id="log-date" value="">
        <button onclick="setToday()">今天</button> 
        <br>
        <span id="searchlink"><br><button onclick="gotosearch()">搜索</button><br><br></span>
    </div>
    <button onclick="setPreviousDay()">上一天</button>
    <button onclick="setNextDay()">下一天</button>
    <div id="log-container"></div>
    <button onclick="setPreviousDay()">上一天</button>
    <button onclick="setNextDay()">下一天</button>
    <script src="./view4.js"></script>
</body>
</html>