|
|
|
@ -15,12 +15,23 @@
|
|
|
|
|
{{ ThemeStyleSheet }}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
{{~ # Syntax highlighting ~}}
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/{{HighlightJsStyleName}}.min.css">
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
document.querySelectorAll('.pre--multiline').forEach((block) => {
|
|
|
|
|
hljs.highlightBlock(block);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{{~ # Local scripts ~}}
|
|
|
|
|
<script>
|
|
|
|
|
function scrollToMessage(event, id) {
|
|
|
|
|
var element = document.getElementById('message-' + id);
|
|
|
|
|
|
|
|
|
|
if (element !== null && element !== undefined) {
|
|
|
|
|
if (element) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
|
|
|
|
|
element.classList.add('chatlog__message--highlighted');
|
|
|
|
@ -36,17 +47,6 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{{~ # Syntax highlighting ~}}
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/{{HighlightJsStyleName}}.min.css">
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
document.querySelectorAll('.pre--multiline').forEach((block) => {
|
|
|
|
|
hljs.highlightBlock(block);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
@ -131,7 +131,11 @@
|
|
|
|
|
{{~ # Embeds ~}}
|
|
|
|
|
{{~ for embed in message.Embeds ~}}
|
|
|
|
|
<div class="chatlog__embed">
|
|
|
|
|
{{~ if embed.Color ~}}
|
|
|
|
|
<div class="chatlog__embed-color-pill" style="background-color: rgba({{ embed.Color.R }},{{ embed.Color.G }},{{ embed.Color.B }},{{ embed.Color.A }})"></div>
|
|
|
|
|
{{~ else ~}}
|
|
|
|
|
<div class="chatlog__embed-color-pill chatlog__embed-color-pill--default"></div>
|
|
|
|
|
{{~ end ~}}
|
|
|
|
|
<div class="chatlog__embed-content-container">
|
|
|
|
|
<div class="chatlog__embed-content">
|
|
|
|
|
<div class="chatlog__embed-text">
|
|
|
|
|