2022-02-16 18:55:30 +09:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="refresh" content="4">
|
|
|
|
<style>
|
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
height: 100%;
|
|
|
|
color: #ddd;
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-size: 11pt;
|
|
|
|
}
|
|
|
|
#chat-messages {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 1ch 1ch 0 1ch;
|
|
|
|
min-height: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
.chat-message {
|
|
|
|
padding: 0.5ch 0.75ch;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 4px;
|
|
|
|
transform: rotate(-180deg);
|
|
|
|
}
|
|
|
|
.chat-message:hover {
|
|
|
|
background-color: #434347;
|
|
|
|
}
|
|
|
|
.chat-message__name {
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
font-weight: bold;
|
|
|
|
/* color: attr("data-color"); */
|
2022-02-18 14:16:54 +09:00
|
|
|
cursor: default;
|
2022-02-16 18:55:30 +09:00
|
|
|
}
|
|
|
|
.chat-message__markup {
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
line-height: 1.3125;
|
|
|
|
}
|
2022-02-18 14:16:54 +09:00
|
|
|
.tripcode {
|
|
|
|
padding: 0 5px;
|
|
|
|
border-radius: 7px;
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: 9pt;
|
|
|
|
cursor: default;
|
|
|
|
}
|
2022-02-16 18:55:30 +09:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<ul id="chat-messages">
|
|
|
|
{% for message in messages | reverse %}
|
|
|
|
<li class="chat-message">
|
2022-02-18 10:32:34 +09:00
|
|
|
{% with user = users_by_token[message.token] %}
|
2022-02-18 14:16:54 +09:00
|
|
|
<span class="chat-message__name" style="color:{{ user.color }};" data-id="{{ message.id }}">{{ user.name or get_default_name(user) }}</span>{% if user.tripcode != none %}<span class="for-tripcode"> </span><span class="tripcode for-tripcode" style="background-color:{{ user.tripcode.background_color }};color:{{ user.tripcode.foreground_color }};">{{ user.tripcode.digest }}</span>{% endif %}: <span class="chat-message__markup">{{ message.markup }}</span>
|
2022-02-16 18:55:30 +09:00
|
|
|
{% endwith %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<div id="bottom"></div>
|
|
|
|
</body>
|
|
|
|
</html>
|