-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathchathistory.html
140 lines (137 loc) · 4.1 KB
/
chathistory.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Message Browser</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
#search-container {
padding: 10px;
background-color: #f0f0f0;
}
#search-input {
width: 100%;
padding: 5px;
font-size: 16px;
margin-bottom: 10px;
}
#filter-options {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
#messages-container {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
}
.message {
display: flex;
align-items: center;
padding: 10px;
border-bottom: 1px solid #e0e0e0;
}
.message:hover {
background-color: #f9f9f9;
}
.avatar {
width: 40px;
height: 40px;
min-height: 40px;
border-radius: 50%;
margin-right: 10px;
}
.message-content {
flex-grow: 1;
}
.user-name {
font-weight: bold;
}
.message-text {
margin-top: 5px;
}
.content-image {
max-height: 100px;
margin-top: 5px;
}
.donation {
color: green;
font-weight: bold;
}
img, svg, video {
max-width: 20px;
max-height: 20px;
}
.avatar {
max-width: 40px;
max-height: 40px;
width: 40px;
}
.export-container {
display: inline-flex;
align-items: center;
gap: 5px;
}
#export-button {
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
select, input[type="date"] {
padding: 4px;
}
#date-filter-container {
display: none;
margin-left: 5px;
}
.filter-label {
font-weight: bold;
margin-right: 5px;
}
</style>
</head>
<body>
<div id="search-container">
<input type="text" id="search-input" placeholder="Search messages...">
<div id="filter-options">
<div class="export-container">
<span class="filter-label">Format:</span>
<select id="export-format">
<option value="json">JSON</option>
<option value="tsv">TSV</option>
<option value="html">HTML</option>
</select>
<span class="filter-label">Time Range:</span>
<select id="export-timeframe">
<option value="all">All Time</option>
<option value="day">Last 24 Hours</option>
<option value="week">Last Week</option>
<option value="month">Last Month</option>
<option value="custom">Custom Range</option>
</select>
<div id="date-filter-container">
<span class="filter-label">From:</span>
<input type="date" id="date-filter-from">
<span class="filter-label">To:</span>
<input type="date" id="date-filter-to">
</div>
<button id="export-button">Download</button>
</div>
</div>
</div>
<div id="messages-container"></div>
<script type="text/javascript" src="./chathistory.js?v=1"></script>
</body>
</html>