Implemented widget.

This commit is contained in:
retoor 2025-01-02 02:12:27 +00:00
parent ae0fae745a
commit 68ba785e80
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,12 @@
<script>
marked.setOptions({
highlight: function (code, lang) {
const language = hljs.getLanguage(lang) ? lang : 'plaintext';
return hljs.highlight(language, code).value;
}
});
</script>
<chat-widget></chat-widget>
{{if false}}
{{/* to make html structure "likely" complete to prevent IDE warnings */}}

View File

@ -21,6 +21,11 @@
{{template "base/head_script" .}}
{{template "base/terms_script" .}}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css">
<script src="https://alpaca.molodetz.nl/static/chat.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<noscript>
<style>
.dropdown:hover > .menu { display: block; }