-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
chathistory.html
105 lines (103 loc) · 2.45 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
<!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;
}
#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;
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-block;
margin-left: 10px;
}
#export-button {
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
#export-format {
margin-left: 5px;
}
</style>
</head>
<body>
<div id="search-container">
<input type="text" id="search-input" placeholder="Search messages...">
<div class="export-container">
<button id="export-button">Download All</button>
<select id="export-format">
<option value="json">JSON</option>
<option value="tsv">TSV</option>
<option value="html">HTML</option>
</select>
</div>
</div>
<div id="messages-container"></div>
<script type="text/javascript" src="./chathistory.js?v=1"></script>
</body>
</html>